¡@

Home 

2014/10/15 ¤U¤È 10:14:32

iphone Programming Glossary: stringsarray

presentModalViewController not working

http://stackoverflow.com/questions/2487541/presentmodalviewcontroller-not-working

Draw underlined / strikethrough text ( MULTILINE STRING )?

http://stackoverflow.com/questions/2652163/draw-underlined-strikethrough-text-multiline-string

fontName UIFont fontWithStyle @ Arial BoldMT andFontSize 13 if FontOverLayUnderLine FontOverLayStrikeThrough NSArray stringsArray textString componentsSeparatedByCharactersInSet NSCharacterSet newlineCharacterSet CGContextSetStrokeColorWithColor c appDel.textDisplayStyle.fillColor.. CGColor CGContextSetLineWidth c 1.0 CGSize stringSize NSString stringToDraw for int i 0 i stringsArray count i stringToDraw stringsArray objectAtIndex i if stringToDraw stringByTrimmingCharactersInSet NSCharacterSet whitespaceCharacterSet.. c 1.0 CGSize stringSize NSString stringToDraw for int i 0 i stringsArray count i stringToDraw stringsArray objectAtIndex i if stringToDraw stringByTrimmingCharactersInSet NSCharacterSet whitespaceCharacterSet isEqualToString @..

Should I use NSUserDefaults or a plist to store data?

http://stackoverflow.com/questions/7058858/should-i-use-nsuserdefaults-or-a-plist-to-store-data

pretty fast and easy to do though it's supposed to store only user settings. To write them to the userdefaults NSArray stringsArray NSArray alloc arrayWithObjects string1 string2 string3 nil NSUserDefaults standardUserDefaults setObject stringsArray forKey.. stringsArray NSArray alloc arrayWithObjects string1 string2 string3 nil NSUserDefaults standardUserDefaults setObject stringsArray forKey @ MyStrings NSUserDefaults standardUserDefaults synchronize To read the from the userdefaults NSArray stringsArray.. forKey @ MyStrings NSUserDefaults standardUserDefaults synchronize To read the from the userdefaults NSArray stringsArray NSUserDefaults standardUserDefaults objectForKey @ MyStrings Plist If your strings are going to be modified you will need..