5
presentModalViewController: Animated jest przestarzała w ios6
Używam następującego kodu dla selektora obrazów. Ale kiedy uruchamiam go w symulatorze, mam wyciek pamięci i otrzymuję ostrzeżenie o presentModalViewcontroller:animatedwycofaniu w iOS6. Jestem też dismissModalViewController:animatedprzestarzały. Używam SDK 6.1. Kod dla ImagePicker: - (void)showAlbum:(id)sender { imagePicker=[[UIImagePickerController alloc]init]; imagePicker.delegate = self; imagePicker.allowsEditing =NO; imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [self presentModalViewController:imagePicker animated:YES]; } - (void)imagePickerControllerDidCancel:(UIImagePickerController …