摘要:
一、NINetworkImageView是Nimbus下载图片的类,类是这么描述的:OverviewA network-enabled image view that consumes minimal amounts of memory.Intelligently crops and resizes images for optimal memory use and uses threads to avoid processing images on the UI thread.消耗很少的内存使用网络图片.使用线程以避免在UI线程上下载处理,并智能,调整优化内存的使用图像。真的很好用,一步加载 阅读全文
2012年5月29日 #
摘要:
一、动态添加Button动态添加Button的效果就是点击之后,生成一个按钮,并为按钮添加点击的方法。1、在xib文件上拖拽添加一个button,标题为:添加button。2、按住ctrl键拖拽到addbuttonViewController.m文件空白处,生成IBAction,填充代码后如下:- (IBAction)addButton:(id)sender { CGRect frame = CGRectMake(90, 200, 200, 60); UIButton *someAddButton = [UIButton buttonWithType:UIButtonTypeR... 阅读全文