06 2020 档案

摘要:如何开启 首先开启一个线程: 1 @property (nonatomic, strong) NSThread *thread; 2 3 - (IBAction)startAction:(id)sender { 4 NSThread *thread = [[NSThread alloc] initW 阅读全文
posted @ 2020-06-19 15:26 Walsh 阅读(531) 评论(0) 推荐(0)
摘要:1、NSInvocation的作用 封装了 方法调用对象、方法选择器、参数、返回值等,可以给对象发送一个参数大于两个的消息 2、优势 在 iOS 中可以直接调用某个对象的消息的方法有两种1:performSelector: withObject: 这种类型的方法最多只能有两个参数2:NSInvoca 阅读全文
posted @ 2020-06-18 15:31 Walsh 阅读(579) 评论(0) 推荐(0)