The Switch button by default is in the OFF state. When the user selects the ON state a modal view will display. This is what I have to invoke the process but its not working. Please help. I have this set up in a nib but I can also do it programatically just want the darn thing to work...Thanks!
MyViewController.h
- (IBAction)offSwitchChange:(id)sender;
@end
MyViewController.m
- (IBAction)offSwitchChange:(id)sender
{
if (self.myKeyPadViewController == nil)
self.myKeyPadViewController = [[[KeyPadViewController alloc] initWithNibName:
NSStringFromClass([KeyPadViewController class]) bundle:nil] autorelease];
[self.navigationController presentModalViewController:self.myKeyPadViewController animated:YES];
}
@end