12 2016 档案

摘要:1. UIImage imageWithContentsOfFile卡顿 [[UIImage alloc] initWithContentsOfFile 卡顿 2.uitableview scroll to top NSIndexPath *indexPath = [NSIndexPath inde 阅读全文
posted @ 2016-12-30 11:40 lianhuaren 阅读(343) 评论(0) 推荐(0)
摘要:1. 有需求cell一行放两个子view,也可以放3个。子view控件都是一样,只有大小区分。需要复用吗? 复用实现:创建时创建3个,拿到数据时是两个就设置两个的frame,是3个就设置3个的frame。 阅读全文
posted @ 2016-12-27 16:38 lianhuaren 阅读(118) 评论(0) 推荐(0)
摘要:1. EAIntroView,界面和模型分离。EAIntroPage数据模型,EAIntroView界面。 https://github.com/ealeksandrov/EAIntroView 阅读全文
posted @ 2016-12-23 09:26 lianhuaren 阅读(119) 评论(0) 推荐(0)
摘要:1. xcodeproj工程损坏时,.m文件没有加入编译。 2. SVN报错:clean the working copy and then retry the operation http://blog.csdn.net/readyflystone/article/details/51986456 阅读全文
posted @ 2016-12-21 09:54 lianhuaren 阅读(391) 评论(0) 推荐(0)
摘要:1. http://blog.jobbole.com/65028/ 2. 答案:输出1之后程序死锁 http://blog.sunnyxx.com/2014/03/06/ios_exam_0_key/ 阅读全文
posted @ 2016-12-19 10:45 lianhuaren 阅读(140) 评论(0) 推荐(0)
摘要:1. http://www.cnblogs.com/scope-beyound/p/3628217.html 2. 其中 TP 即 Thread-Pool 的缩写。与 ACE_WFMO_Reactor 的完全多线程并行处理不同,TP_Reactor 仅实现了部分的并行,这是由于 select 系统调 阅读全文
posted @ 2016-12-16 17:25 lianhuaren 阅读(208) 评论(0) 推荐(0)
摘要:1. //CAF 转换成MP3 (可以) afconvert -f mp4f -d aac -b 128000 /Users/amarishuyi/Desktop/sound1.caf/Users/amarishuyi/Desktop/sound1.mp3 http://www.togaware.c 阅读全文
posted @ 2016-12-15 16:27 lianhuaren 阅读(161) 评论(0) 推荐(0)
摘要:1. 之前公司有个项目,有一个线程接收 tcp连接然后把socket放入队列,10个线程处理socket的数据,但10个线程还是处理不过来,客户端连上又关闭了,服务端处理完数据通过socket发送时,发现socket已经关闭了。 对于生产者-消费者问题,一定要设定缓冲区大小,当缓存区满的时候,生产者 阅读全文
posted @ 2016-12-14 08:54 lianhuaren 阅读(128) 评论(0) 推荐(0)
摘要:1.模版除了传参,还可以自动创建。而传指针只是传参而已。 2.Iterator模式 实现 ACE_Timer_Hash_T, ACE_Timer_Heap_T , ACE_Timer_List_T, ACE_Timer_Wheel_T http://blog.csdn.net/u010700335/ 阅读全文
posted @ 2016-12-13 11:24 lianhuaren 阅读(147) 评论(0) 推荐(0)
摘要:1.vs2005调试 http://blog.csdn.net/u010797208/article/details/40452797 2.macbook ace编译 http://www.jianshu.com/p/adc5938905f0 小坑: 源代码clockid_t重命名 GNUmakef 阅读全文
posted @ 2016-12-11 23:37 lianhuaren 阅读(313) 评论(0) 推荐(0)
摘要:一.一个对象没有被引用,那么在函数块完成时就会被dealloc,这种情况因为对象销毁了,block块也永远不会执行。 二. NSOperationQueue引用 1.NSOperationQueue可以addOperation,这样operation对象就会被引用了,并在operation完成时op 阅读全文
posted @ 2016-12-09 11:51 lianhuaren 阅读(163) 评论(0) 推荐(0)
摘要:1.RefCounted引用计数 http://www.cnblogs.com/dsky/archive/2012/09/06/2673170.html 2.PlistBuddy http://www.cnblogs.com/brycezhang/p/4097487.html http://www. 阅读全文
posted @ 2016-12-08 14:48 lianhuaren 阅读(98) 评论(0) 推荐(0)
摘要:1.linux find export find /Applications/Xcode.app/ -name symbolicatecrash -type f export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer" 2.s 阅读全文
posted @ 2016-12-02 10:13 lianhuaren 阅读(218) 评论(0) 推荐(0)
摘要:一、GCDAsyncSocket的核心就是dispatch_source_set_event_handler 1.accpet回调 2.read,write回调 二,缓存区 1.创建 GCDAsyncReadPacket没有传入buffer,则readpacket没有缓冲区,socket可读时会放入 阅读全文
posted @ 2016-12-01 21:47 lianhuaren 阅读(1291) 评论(0) 推荐(0)