Here is an excellent guide to implement a Model View:
http://useyourloaf.com/blog/2010/5/3/ipad-modal-view-controllers.html
http://useyourloaf.com/blog/2010/5/3/ipad-modal-view-controllers.html
Hi, my name is Jhon Jario Roa and this is my blog. Here you'll find a little bit of java, python, javascript, linux, birt, jasper, objective C, extJS and other stuff. You also are gonna find some solutions that worked for me.
NSEnumerator *enumerator = [myDict keyEnumerator];
id key;
// extra parens to suppress warning about using = instead of ==
while((key = [enumerator nextObject]))
NSLog(@"key=%@ value=%@", key, [myDict objectForKey:key]); source:http://stackoverflow.com/questions/1284429/is-there-a-way-to-iterate-over-an-dictionary
extern double const kTimeout; // fineextern NSString* const kImageType; // compile error"Foundation/Foundation.h"Source:http://stackoverflow.com/questions/990906/iphone-error-expected-asm-or-attribute-before-foo /Method writes a string to a text file
-(void) writeToTextFile{
//get the documents directory:
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
//make a file name to write the data to using the documents directory:
NSString *fileName = [NSString stringWithFormat:@"%@/textfile.txt",
documentsDirectory];
//create content - four lines of text
NSString *content = @"One\nTwo\nThree\nFour\nFive";
//save content to the documents directory
[content writeToFile:fileName
atomically:NO
encoding:NSStringEncodingConversionAllowLossy
error:nil];
} //Method retrieves content from documents directory and
//displays it in an alert
-(void) displayContent{
//get the documents directory:
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
//make a file name to write the data to using the documents directory:
NSString *fileName = [NSString stringWithFormat:@"%@/textfile.txt",
documentsDirectory];
NSString *content = [[NSString alloc] initWithContentsOfFile:fileName
usedEncoding:nil
error:nil];
NSLog(@"content: %@" , content) [content release];
} Source: http://howtomakeiphoneapps.com/2009/06/reading-and-writing-text-files-in-iphone-os-3-0/[spinner stopAnimating];
NSString *name = (NSString *)ABRecordCopyValue(person
, kABPersonFirstNameProperty);
but the great thing I found was an Amazing Tutorial :
Tutorial: Extract Address Book Address Values on iPhone OS