iphone Programming Glossary: inv
SEL performSelector and arguments http://stackoverflow.com/questions/2716143/sel-performselector-and-arguments void myMethodForNumber NSNumber number self myMethod number intValue to unbox the NSNumber . If you really want to invoke a method that takes non object arguments directly for example you don't have control of the callee source and don't want.. you don't have control of the callee source and don't want to add a category you can use NSInvocation NSInvocation inv NSInvocation invocationWithMethodSignature parent methodSignatureForSelector sel inv setSelector sel inv setTarget parent.. control of the callee source and don't want to add a category you can use NSInvocation NSInvocation inv NSInvocation invocationWithMethodSignature parent methodSignatureForSelector sel inv setSelector sel inv setTarget parent inv setArgument..
Using performSelector:withObject:afterDelay: with non-object parameters http://stackoverflow.com/questions/5210733/using-performselectorwithobjectafterdelay-with-non-object-parameters performSelector withObject afterDelay with non object parameters I want to invoke setEditing animated on a table view with a slight delay. Normally I'd use performSelector withObject afterDelay but pSwOaD.. See this code taken from this answer and I've changed it slightly to match your question BOOL yes YES NSInvocation inv NSInvocation invocationWithMethodSignature self.tableView methodSignatureForSelector @selector setEditing Animated inv setSelector.. taken from this answer and I've changed it slightly to match your question BOOL yes YES NSInvocation inv NSInvocation invocationWithMethodSignature self.tableView methodSignatureForSelector @selector setEditing Animated inv setSelector @selector..
|