上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 重载 函数名相同,参数名/参数个数不同 重载函数并不仅仅局限于 构造函数 函数重载是面向对象冲虚设计语言的重要标志 函数重载能够简化程序员的记忆 OC 不支持函数重载,OC 的替代方式是 withXXX... 重写 自雷需要在父类拥有方法的基础上进行扩展,需要 override 关键字 注意 如果重 阅读全文
posted @ 2016-04-04 16:10 小眼奇遇记 阅读(153) 评论(0) 推荐(0) 编辑
摘要: __weak 当对象销毁后weakSelf指向的地址为nil __unsafe_unretained 挡圈对象销毁后,weakSelf执行的地址为不变,而地址对应对象已经销毁,再次访问该对象就崩溃,相当于assign 阅读全文
posted @ 2016-04-04 10:25 小眼奇遇记 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 导航栏有透明度的话应该用三目运算符判断一下导航栏 阅读全文
posted @ 2016-04-04 10:21 小眼奇遇记 阅读(130) 评论(0) 推荐(0) 编辑
摘要: self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 阅读全文
posted @ 2016-03-30 20:16 小眼奇遇记 阅读(443) 评论(0) 推荐(0) 编辑
摘要: TableViewCell去除选中效果 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:ind 阅读全文
posted @ 2016-03-30 17:14 小眼奇遇记 阅读(132) 评论(0) 推荐(0) 编辑
摘要: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause a 阅读全文
posted @ 2016-03-18 16:12 小眼奇遇记 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 可以有两个办法让NSURLConnection在子线程中运行,即将NSURLConnection加入到run loop或者NSOperationQueue中去运行。 前面提到可以将NSTimer手动加入NSRunLoop,Cocoa库也为其它一些类提供了可以手动加入NSRunLoop的方法,这些类有 阅读全文
posted @ 2016-03-18 10:42 小眼奇遇记 阅读(198) 评论(0) 推荐(0) 编辑
摘要: content-type 包含了表单类型和边界字符串信息。 阅读全文
posted @ 2016-03-16 20:00 小眼奇遇记 阅读(191) 评论(0) 推荐(0) 编辑
摘要: NSURLSession是iOS7中新的网络接口,它与咱们熟悉的NSURLConnection是并列的。在程序在前台时,NSURLSession与NSURLConnection可以互为替代工作。注意,如果用户强制将程序关闭,NSURLSession会断掉。 NSURLSession提供的功能: 通过 阅读全文
posted @ 2016-03-12 16:46 小眼奇遇记 阅读(174) 评论(0) 推荐(0) 编辑
摘要: self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"侧栏" style:UIBarButtonItemStylePlain target:self action:@selector(click 阅读全文
posted @ 2016-03-10 22:23 小眼奇遇记 阅读(407) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页