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