摘要:
iOS开发UI篇—UIScrollView控件实现图片缩放功能一、缩放1.简单说明:有些时候,我们可能要对某些内容进行手势缩放,如下图所示UIScrollView不仅能滚动显示大量内容,还能对其内容进行缩放处理。也就是说,要完成缩放功能的话,只需要将需要缩放的内容添加到UIScrollView中2.... 阅读全文
摘要:
// 颜色转换为背景图片+ (UIImage *)imageWithColor:(UIColor *)color { CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size);... 阅读全文
摘要:
- (void)viewDidLoad{ [superviewDidLoad];// Do any additional setup after loading the view, typically from a nib. UIImageView*imageView = [[UIImageVie... 阅读全文