在ios5.0中使用UIImageViewPicker控件时发生错误

时间:2013-11-03 06:19:45

标签: iphone

我有以下代码片段,用于在设备中使用照片库  它在ios7.0中运行良好

但在ios5.0中,当调用此部分时,我的App版本会出现错误 建筑成功,其他运营也很好 但在调用此部件以使用照片库时,我的应用程序会发布错误

-(void)enterPhotoLib
{

 UIImagePickerController *imagepickerController = [[UIImagePickerController alloc] init];
 [imagepickerController setDelegate:self];
 [imagepickerController setAllowsEditing:YES];
 [imagepickerController setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
 [self presentModalViewController:imagepickerController animated:YES];
}

如果我在这些代码中有任何错误,请回答我 非常感谢你

0 个答案:

没有答案