1

我是 iphone sdk 的新手,当我设置 imagepicker.tag=vaule(100) 时会产生错误,所以任何人都可以帮我解决这个问题

   `  imagepicker=[[UIImagePickerController alloc]init];
    imagepicker.delegate=self;
    imagepicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
    [self presentModalViewController:imagepicker animated:YES];`
4

2 回答 2

3
imagepicker=[[UIImagePickerController alloc]init];
imagepicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagepicker animated:YES];
imagepicker.view.tag = 100;
于 2012-06-13T10:28:41.090 回答
2

tag是 的一个属性UIViewUIImagePickerController是 的子类UIViewController。它没有tag属性。

于 2012-06-13T10:22:32.417 回答