I am trying to build a UITableView which just goes really weird? Here is the line it crashes at:
bookmarksList = [[NSArray alloc] initWithContentsOfFile:[self saveFilePath]];
I have the bookmarksList declaired as an NSArray in the header file, so thats all good. The method saveFilePath is as follows and works for actually saving a fil...
I'm grabbing data from an external file using NSURL with the code below. If i wanted to grab this data from an internal file in my resources folder how would the code be different.
here's the NSURL code:
NSURL dataUrl = [NSURL URLWithString:@"https://sites.google.com/site//*/file.asc"];
NSString *fileString = [NSString stringWithConte...
The plist has the file suffix .xml and is a normal array of dictionaries.
In the app delegate:
#define docDir [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]
-(NSString *)cacheFile:(NSString *)filename sitepath:(NSString *)url {
NSMutableString *retfn=[NSMutableString string];
...