应用程序在ipad设备上崩溃 .Hai ios开发人员,我是ios的新手。 由我开发的单个应用程序,在模拟器上工作正常。在开始阶段在ipad上工作正常突然,应用程序将崩溃。发生了什么问题,实际上我的客户在伦敦检查该应用程序,所以我不知道出了什么问题。所以任何人都可以帮助我做什么。怎么了。 和uiimagepicker也使用。 。 。 我在uiimagepickercontroller中的编码是
- (void)popoverControllerDidDismissPopover:(UIPopoverController *)aPopoverController
{
imagePickerController = nil;
aPopoverController=nil;
subOptionPopOver=nil;
}
- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
[subOptionPopOver dismissPopoverAnimated:YES];
NSData *imageData;
UIImage* image1;
if ([imagepick isEqualToString:@"YES"]) {
imageData = UIImageJPEGRepresentation([info objectForKey:UIImagePickerControllerOriginalImage], 0.1);
image1 = [[UIImage alloc] initWithData:imageData ];
UIImageWriteToSavedPhotosAlbum(image1, self,@selector(image:didFinishSavingWithError:contextInfo:), nil);
}
else{
imageData = UIImageJPEGRepresentation([info objectForKey:UIImagePickerControllerOriginalImage], 0.1);
image1 = [[UIImage alloc] initWithData:imageData ];
}
if (thumbimage1.image==NULL ) {
thumbimage1.image=image1;
thumb_clear_btn1.hidden=NO;
[mary addObject:image1];
}
else{
if (thumbimage2.image==NULL) {
thumbimage2.image=image1;
thumb_clear_btn2.hidden=NO;
[mary addObject:image1];
}
else{
if (thumbimage3.image==NULL) {
thumbimage3.image=image1;
thumb_clear_btn3.hidden=NO;
[mary addObject:image1];
}else{
if (thumbimage4.image==NULL) {
thumbimage4.image=image1;
thumb_clear_btn4.hidden=NO;
[mary addObject:image1];
}else{
thumbimage5.image=image1;
thumb_clear_btn5.hidden=NO;
[mary addObject:image1];
} }
}
}
ary_image_upload=mary;
}