2015年12月4日

iOS 尝试用 block 闭包 去代替delegate 实现方法

摘要: 通常都是这样创建alert 再加一个代理// 创建一个UIAlertView并显示出来UIAlertView *alertview = [[UIAlertView alloc] initWithTitle:aTitle message:msg delegate:self cancelButtonTi... 阅读全文

posted @ 2015-12-04 17:01 ACM_Someone like you 阅读(477) 评论(0) 推荐(0) 编辑

iOS 发大招 otherButtonTitles:(nullable NSString *)otherButtonTitles, ... 写法 && 编写通用类的时候关于可变参数的处理

摘要: 开始 我 以为 这个 alertView 里面 ...的写法 应该 是一个 普通的数组 然 并没有分享一篇好文http://www.tekuba.net/program/290/IOS实现传递不定长的多个参数的方法是使用va_list。va_list是C语言提供的处理变长参数的一种方法。在调用的时候... 阅读全文

posted @ 2015-12-04 16:22 ACM_Someone like you 阅读(1278) 评论(0) 推荐(0) 编辑

导航