UIImagePickerController
*pickC = [[UIImagePickerController
alloc]
init];
pickC.delegate = self;
//进入 编辑图界面
pickC.allowsEditing = YES;
[self presentViewController:pickC animated:YES completion:^{
}];
pickC.delegate = self;
//进入 编辑图界面
pickC.allowsEditing = YES;
[self presentViewController:pickC animated:YES completion:^{
}];
[pickC
release];
协议<UIImagePickerControllerDelegate,
UINavigationControllerDelegate>
#pragma UIImagePickerController的协议方法
加入本地图片
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info
{
[self.plotoBut setImage:[info objectForKey:@"UIImagePickerControllerOriginalImage"] forState:UIControlStateNormal];
[self dismissViewControllerAnimated:YES completion:^{
}];
[self.textV becomeFirstResponder];
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info
{
[self.plotoBut setImage:[info objectForKey:@"UIImagePickerControllerOriginalImage"] forState:UIControlStateNormal];
[self dismissViewControllerAnimated:YES completion:^{
}];
[self.textV becomeFirstResponder];
}