正如标题所说,我需要在使用UIImagePickerController
. 我想.png
在相机上添加非常简单的文件(如空框),但我不知道该怎么做。
我已经检查了这个网页上的大部分教程,但大部分都不懂。对我来说似乎很难,将一个简单.png
的文件添加到相机覆盖应该比这更容易。
(IBAction) getPhoto:(id) sender {
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
if((UIButton *) sender == choosePhotoBtn) {
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
} else {
}
label1.text =@"PHOTO ACTION";
[self presentModalViewController:picker animated:YES];
}
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismissModalViewControllerAnimated:YES];
imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
}
我应该在哪里实现我的覆盖代码?我应该使用哪些课程,我该怎么做?