У меня есть кнопка в моем интерфейсе, объявленная в файле .h
@interface UserProfileVC : UIViewController <UIImagePickerControllerDelegate>{
IBOutlet UIButton *camera;
}
@property (nonatomic,retain) IBOutlet UIButton *camera;
-(IBAction)cameraPress:(id)sender;
И в моем файле .m у меня есть:
-(IBAction)cameraPress:(id)sender{
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
// [picker setDelegate:self];
[picker setAllowsEditing:YES];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:picker animated:YES];
[picker release];
}
Но у меня такая ошибка:
*** -[UserProfileVC performSelector:withObject:withObject:]: message sent to deallocated instance 0x7bc2a40
Кто-нибудь может мне помочь? Я не могу понять, в чем ошибка. Спасибо
2012-06-09 14:41:08.556 SQL[612:11603] INIT 0x7dac3f0 2012-06-09 14:41:08.557 SQL[612:11603] INIT 0x7da87c0 2012-06-09 14:41:10.475 SQL[612:11603] *** -[UserProfileVC performSelector:withObject:withObject:]: message sent to deallocated instance 0x7dac3f0
- person PsyKoWebMari   schedule 09.06.2012-[UserProfileVC performSelector:withObject:withObject:]
Измените свой вопрос соответствующим образом. - person hp iOS Coder   schedule 11.06.2012-(void)showDetails:(id)sender{ NSLog(@"Annotation Click"); details= [[UserProfileVC alloc] initWithNibName: @"Details" bundle:nil ]; details.Nome=note.title; addNavigationController = [[UINavigationController alloc] initWithRootViewController:details]; [self.navigationController presentModalViewController:addNavigationController animated:YES]; }
- person PsyKoWebMari   schedule 12.06.2012