转载自:http://www.cocoachina.com/applenews/devnews/2014/0107/7667.html09年的一篇文章,比较深入地阐述了KVO的内部实现。KVO是实现Cocoa Bindings的基础,它提供了一种方法,当某个属性改变时,相应的objects会被通知到... Read More
posted @ 2014-11-10 20:54 夏了′夏天 Views(124) Comments(0) Diggs(0) Edit
+ (UIImage*)createImageWithColor:(UIColor*)color{ CGRectrect=CGRectMake(0.0f,0.0f,1.0f,1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRefcont... Read More
posted @ 2014-11-10 19:08 夏了′夏天 Views(130) Comments(0) Diggs(0) Edit