码迷,mamicode.com
首页 >  
搜索关键字:performselector    ( 150个结果
Object-C 中的Selector 概念
selector可以叫做选择器,其实指的就是对象的方法,也可以理解为C语言里面的函数指针,在面向对象里面的对应概念。@selector(xxxx)的作用是找到名字为xxxx的方法。一般用于[a performSelector:@selector(b)];就是说去调用a对象的b方法,和[a b];的意...
分类:其他好文   时间:2014-11-18 23:10:09    阅读次数:208
iOS 打印 UI结构
NSLog(@"------------%@",[[UIApplication sharedApplication].keyWindow performSelector:@selector(recursiveDescription)]);由于recursiveDescription是Apple的私有...
分类:移动开发   时间:2014-10-29 19:15:52    阅读次数:117
performSelector
http://blog.csdn.net/baxiaxx/article/details/7878338一、- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)dela...
分类:其他好文   时间:2014-10-17 13:22:18    阅读次数:107
NSObject中的performSelector:withObject用法简介
-(id)performSelector:(SEL)aSelector withObject:(id)anObjectDescription[说明]Sends a message to the receiver with an object as the argument. (required)[将...
分类:其他好文   时间:2014-10-10 16:28:10    阅读次数:146
NSObject的performSelector: withObject: withObject:使用简介
-(id)performSelector:(SEL)aSelector withObject:(id)anObject withObject:(id)anotherObjectDescription[说明]Sends a message to the receiver with two object...
分类:其他好文   时间:2014-10-10 16:00:50    阅读次数:223
NSObject中的performSelector用法简介
-(id)performSelector:(SEL)aSelectorDescription[说明]Sends a specified message to the receiver and returns the result of the message. (required)[发送指定消息的接...
分类:其他好文   时间:2014-10-10 13:29:34    阅读次数:288
MJ - 0916 - 多线程2
》延时执行// sleepForTimeInterval,不建议使用,会阻塞线程-(void)delay1{ [NSThreadsleepForTimeInterval:3];}// performSelector,常用,一旦定制好任务后,线程会继续执行,到时间后再执行相应的代码-(void)de....
分类:编程语言   时间:2014-10-02 15:24:23    阅读次数:210
iOS真机模拟内存警告
[[UIApplicationsharedApplication]performSelector:@selector(_performMemoryWarning)];
分类:移动开发   时间:2014-09-22 10:42:32    阅读次数:308
NSInvocation
main.mint main(int argc, const char * argv[]){ @autoreleasepool { /* 在ios直接调用某个对象的消息是方法有两种: 一:performselector:withOb...
分类:其他好文   时间:2014-09-12 15:00:43    阅读次数:205
多用GCD,少用performSelect系列方法
例如,要延后执行某项任务,可以有下面两种实现方式,而我们应该优先考虑第二种:// Using performSelect: withObject: afterDelay:[self performSelector: @selector(dosomething) withObject:nil ...
分类:其他好文   时间:2014-09-09 22:46:39    阅读次数:184
150条   上一页 1 ... 11 12 13 14 15 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!