Suivez-Nous sur TwitterTrouvez-Nous sur Facebook
English
  • iPhone Development Tutorial - 36 - Loading the Files
    Envoyer cette vidéo à vos ami(e)s
    Obtenir le code d'intégration de la vidéo
    Envoyer cette vidéo par:
    Suivez-Nous sur TwitterTrouvez-Nous sur Facebook


    Envoyée le mercredi 07 juillet 2010 20:55:33
    par thenewboston
    Vue 18834 fois
    4.7 / 5
    12345
    54 vote(s)

    Buy my app!!!
    http://itunes.apple.com/us/app/testyourbrainpower/id377656444?mt=8

    My forum http://thenewboston.com/forum/

    Ask me all questions there as well as view source code for the tutorials!



    facebook
  • Écrire votre commentaire ici...
  • tangrway

    chcken bounce!!!
    dimanche 06 mai 2012 05:47:45
  • Tupinambiss

    "chicken bounce....chicken bounce.....check it out... our bacon is still there" These are awesome XD
    mercredi 07 septembre 2011 01:55:22
  • loc87437529

    anyone see a smiley face at 05:48 bottom right conner?
    lundi 18 juillet 2011 08:22:53
  • brandonthaddeus

    Email me at brandoncthompson7@yahoo.com and put the subject as "Pre-Paid Legal" to hear about the company I am with now and they have been around for 40 years and millions of people are making serious money with us. I have proof and tools of how to make it work and I also have contacts that have been VERY successful with this company. thank you, Brandon.
    mardi 17 mai 2011 14:29:35
  • euphoral

    @PanzrKunst thanks for pointing out that you needed that extra '/' in the file path format. I found that it would work fine in the simulator without it, but I needed to add it in order for it to work on my actual phone.
    mercredi 02 mars 2011 23:12:17
  • Ivultorky

    If you run this on a device without multi-tasking (I'm using ipod touch 2nd gen) the origional code works fine (with exception to adding the / for the file path) otherwise i'm not sure which method is called if you double tap the menu button and terminate the application that way.
    mardi 08 février 2011 07:15:00
  • PanzrKunst

    @SilveZX NSError *errorReading; NSString *fileContents = [NSString stringWithContentsOfFile:filePath encoding:NSUnicodeStringEncoding error:&errorReading]; if (fileContents == nil) {  NSLog(@"Error reading file '%@\n%@'", filePath, [errorReading localizedFailureReason]); } else { textField1.text = fileContents; }
    jeudi 27 janvier 2011 06:55:49
  • PanzrKunst

    Second bug: There is a slash missing then you initialize the file path. It should be '[docsFolder stringByAppendingFormat:@"/myFile.plist"]' Third bug: reading the file content as you do didn't work in my setup. I used 'NSString *fileContents = [NSString stringWithContentsOfFile:filePath encoding:NSUnicodeStringEncoding error:&errorReading]' instead. But this wasn't enough: if the file is a pList, it's still read incorrectly that way. Don't use any extension, or maybe "txt", but not "plist"
    mercredi 12 janvier 2011 16:37:49
  • tongsanba

    nope, you must quit iPhone simulator and run it again
    samedi 20 novembre 2010 06:44:10
  • linkfan22

    Bucky all you did to demonstrate this was making the app enter the background instead of actually closing it out and opening it back up.
    samedi 23 octobre 2010 19:26:01
  • LJimbox

    I am having the same results are you are. I think 4.0 saves users states automatically now but Im trying ti figure out how exactly to save info for when the application is completely terminated so I can save highscores
    lundi 16 août 2010 13:35:12
  • ScienceTutorials

    Bucy's IQ is 10000000000000 He is soo smart!
    lundi 02 août 2010 22:54:45
  • iZenic

    wow THANKS bucky
    lundi 26 juillet 2010 15:11:00
PUBLICITÉ
Suppléments
Réseaux sociaux
Nuage de tags