I create a window in which I take custom view. Here is my PROJECT.
Credetials : [email protected], Password : 2
Just sign in through credetials and click on second option in side bar and then click on login.
Here my code to add xib view in my viewcontroller of my main view
- (IBAction)watchClicked:(id)sender {
//id animator = [[ContactUsVC alloc] init];
ContactUsVC* vc = [[ContactUsVC alloc] initWithNibName:@"ContactUsVC" bundle:nil];
vc.view.frame = self.view_main.bounds;
[self.custom_view addSubview:vc.view];
[self.view_main setEnabled:NO];
}
I put a button on ContactUsVC
and when I click app crashed. I dont understand why simple click is not happen.
Here is Error
Exception Name: NSInvalidArgumentException
Description: -[_NSImageAuxiliary btn_click_phone_no:]: unrecognized selector sent to instance 0x6080002c10a0
User Info: (null)
Place breakpoint before this line
ContactUsVC* vc = [[ContactUsVC alloc] initWithNibName:@"ContactUsVC" bundle:nil];
And check whether button's action is executed or not.By crash description it seems Image Button. Have you place any image on button?