Hiya guys, just thought I'd post this question here since I think I've exercised all options.
- Ok I have a Tab Bar app with a NavBar as well
- In one of my views that's loaded from a separate nib file
- I place a button in there that will launch the mail app
- In that nib's associated .h file I setup a simple
and wired that in IB
- in the .m file I placed the corresponding code
- everything succeeds in the build but when I click the button on my device and the simulator, it crashes with an UNCAUGHT_EXCEPTION and I can't for the life of me figure out what I'm doing wrong. Everything works correctly in a test I did with just a viewController, so I'm suspecting that the loaded nib can't execute this action due to it being a subclass?
Some help please
Cheers!
- Ok I have a Tab Bar app with a NavBar as well
- In one of my views that's loaded from a separate nib file
- I place a button in there that will launch the mail app
- In that nib's associated .h file I setup a simple
Code:
- (IBAction)emailClick:(id)sender;
- in the .m file I placed the corresponding code
Code:
NSURL *url = [[NSURL alloc]
initWithString:@"mailto:whoisit@whatisit.com?subject=subject&body=body"];
[[UIApplication sharedApplication]openURL:url];
- everything succeeds in the build but when I click the button on my device and the simulator, it crashes with an UNCAUGHT_EXCEPTION and I can't for the life of me figure out what I'm doing wrong. Everything works correctly in a test I did with just a viewController, so I'm suspecting that the loaded nib can't execute this action due to it being a subclass?
Some help please
Cheers!