随笔分类 -  IOS面试

摘要:1.socket 阻塞,非阻塞(select) http://blog.csdn.net/piaojun_pj/article/details/5991968/ http://blog.chinaunix.net/uid-26000296-id-3755268.htmlhttp://blog.chi 阅读全文
posted @ 2016-06-07 15:10 bluefi 阅读(225) 评论(0) 推荐(0)
摘要://冒泡 int* maopao(int a[], int n) { int temp = 0; for (int i = 0; i<n-1; i++) { for (int j = 0; j<n-1-i; j++) { if (a[j] > a[j+1]) { temp = a[j]; a[j] 阅读全文
posted @ 2016-04-25 16:14 bluefi 阅读(334) 评论(0) 推荐(1)
摘要:1.在object-c运行时替换私有类的方法runtime完全解读2.运行时给一个对象增加方法//C方法形式定义被增加的方法void helloLog(id self, SEL _cmd){ NSLog(@"helloLog");}//OC方法形式定义被增加方法- (void)helloLog{ ... 阅读全文
posted @ 2015-03-04 17:29 bluefi 阅读(150) 评论(0) 推荐(0)
摘要:简历:STAR法则 1.使用序列化,复制一个view,此方法能完整复制所有subview及关联属性对象,深拷贝。 NSData *copyView = [NSKeyedArchiver archivedDataWithRootObject:self.view]; UIView *newView = 阅读全文
posted @ 2015-03-04 09:37 bluefi 阅读(256) 评论(0) 推荐(0)