-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
//added other code
[self dismissModalViewControllerAnimated:YES];
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"" message:@"Photo added to library" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil];
[alert show];
}
在我的應用程序中顯示「Bad access Error」錯誤後,如果我刪除了Alertbox,那很好。我的代碼有什麼問題?拍照後出現錯誤訪問錯誤
請發表您的完整的錯誤message..that將幫助您和別人來... – Nit 2013-03-01 05:23:07
如果你是在多線程環境..而不是使用performSelectorOnMainThread performSelectorInBackground。 – Dee 2013-03-01 07:37:41
thanks.it工作正常。爲什麼它不與performSelectorInBackground一起使用? – user2067403 2013-03-02 04:07:04