模仿微信更改头像,图片局部放大,模仿代码如下
//
// ViewController.m
// 截取图片的任一部分
//
// Created by dengyanzhou on 15/2/2.
// Copyright (c) 2015年 mobby. All rights reserved.
//
#import "ViewController.h"
@interface ViewController (){
UIImageView *showImageView;
UIImageView *imageView;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[superviewDidLoad];
self.view.backgroundColor = [UIColorgrayColor];
//女孩图片
imageView = [[UIImageViewalloc]initWithFrame:CGRectMake(70, 50