The code I am using
NSLog(@"before Navigate to second activity");
Signature *temp = [[Signature alloc]initWithNibName:@"Signature" bundle:nil];
[self.navigationController pushViewController:temp animated:YES];
NSLog(@"after Navigate to second activity");
On console,both the log statements are getting printed, but my app is not navigating me to the next View.Please correct me.
if you are not using a
UINavigationControlleron your app you can not callpushViewController, usepresentViewController:animated:completion:instead:for more information check the documentation