Text after "div class =" itemprop = "text">
In this simulator, but the device files do not seem to be working correctly at work.
Here is the code
- (zero) saveOld {NSArray * savestate = [NSArray arrayWithObjects :. HeadArray, dropQArray, [NSNumber numberWithInt: dropLimit], [NSNumber numberWithInt: dropCount], [NSNumber numberWithInt: score], [NSNumber numberWithInt: level], [NSNumber numberWithInt: maxChain], zero]; NSMutableString * path = [[NSHome directory (mutousCopy] autorelease]; [Route appendstring: @ "/ sevstate"]; BOOL = [: savestate toFile: NSKeyedArchiver archiveRootObject path] saved; NSLog (@ saved state% d, saved); Path = [[NSHome directory (unstable copy]] AutoEx]; [PathEpendString: @ "/ SSVestat"]; Saved = [NSKeyedArchiver archiveRootObject: [NSNumber numberWithBool: 1] toFile: Path]; NSLog (@ saved state% d, saved); }
There is no home directory on the iPhone: D
You should use instead of:
NSString * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, Yes); This will give you the original document directory, after which it will add strings.
Comments
Post a Comment