¡@

Home 

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

iphone Programming Glossary: str1

Arguments in @selector

http://stackoverflow.com/questions/1349740/arguments-in-selector

NSInvocation invocation NSInvocation invocationWithMethodSignature signature invocation setSelector selector NSString str1 @ someString NSString str2 @ someOtherString The invocation object must retain its arguments str1 retain str2 retain Set.. selector NSString str1 @ someString NSString str2 @ someOtherString The invocation object must retain its arguments str1 retain str2 retain Set the arguments invocation setTarget targetInstance invocation setArgument str1 atIndex 2 invocation.. its arguments str1 retain str2 retain Set the arguments invocation setTarget targetInstance invocation setArgument str1 atIndex 2 invocation setArgument str2 atIndex 3 NSTimer scheduledTimerWithTimeInterval 0.1 invocation invocation repeats..

NSMutableString as retain/copy

http://stackoverflow.com/questions/4995254/nsmutablestring-as-retain-copy

of NSMutableString's in my app almost 10 11 all defined as ivar property @property nonatomic retain NSMutableString str1 I read somewhere that it is better to use copy for strings. Is that true If yes can I just replace retain to copy in my.. of NSMutableString's in my app almost 10 11 all defined as ivar property @property nonatomic retain NSMutableString str1 I read somewhere that it is better to use copy for strings. Is that true yes copying NSString not talking about NSMutableString.. ivar is now an NSString using default synthesized setter implementation. @property nonatomic retain NSMutableString str1 ` or @property nonatomic copy NSMutableString str1 ` when declaring @property nonatomic retain NSMutableString str1 ` you..