Uibutton touchupinside action breaks program in storyboard app
I am trying to create a custom Picker view ,connected the touchupinside
event to my PickerViewViewController.h class as funcion
- (IBAction)Done:(id)sender;
added funcion in .m
- (IBAction)Done:(id)sender {
NSLog(@"Done");
}
Added the view to my main view as
PickerViewViewController *pic=[self.storyboard
instantiateViewControllerWithIdentifier:@"Pickerview"];
[self.view addSubview:pic.view];
but when i click done button it crashes ,i had done it before using XIB
easily ,help?
No comments:
Post a Comment