我是iphone sdk的新手,当我设置图片picker.tag = value(100)然后它会产生错误,所以任何人都可以帮我解决这个问题
` imagepicker=[[UIImagePickerController alloc]init];
imagepicker.delegate=self;
imagepicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagepicker animated:YES];`
答案 0 :(得分:3)
imagepicker=[[UIImagePickerController alloc]init];
imagepicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagepicker animated:YES];
imagepicker.view.tag = 100;
答案 1 :(得分:2)
tag
是UIView
的属性。 UIImagePickerController
是UIViewController
的子类。它没有tag
属性。