- Home /
 
 
               Question by 
               dj10dj100 · Mar 22, 2012 at 05:53 PM · 
                iosplayerprefssaveread  
              
 
              iOS PlayerPrefs issue, Working on Desktop Not on iOS device (5.1)
Hi all,
I've been working with saving some information in PlayerPrefs, all has been going swimmingly until I've built it onto my iPad. What I've been trying to do is save a float and read from it. This is working in the desktop version and not the iOS build, I've read it should be supported, I'm just wondering if this is something to do with iOS 5.1? I'm currently using iOS pro. Here is my code (that works off the device) Any help would be greatly received!
 function save(){    
     //save data
 
     if(time < textstring){
     
     PlayerPrefs.SetFloat("levelTime",time);
     //save the time
 
     textstring = PlayerPrefs.GetFloat("levelTime");
     //get the time that is saved
 
     PlayerPrefs.Save();
     //store the data and call the save function to minimize data-loss if application crashes.
     
     debugText.text = "PB -" + textstring.ToString();
     }
 
               }
Thanks all
               Comment
              
 
               
              Your answer