Try this method for get event of alert button
Change you appdelegate this method :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
viewController=[[SignInViewController alloc] init];
UINavigationController *navigationcontroller=[[UINavigationController alloc] initWithRootViewController:viewController];
[self.window setRootViewController:navigationcontroller];
//self.window.rootViewController = self.viewController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
// add this in your signinviewcontroller.
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0 )
{
viewControllerinst = [[InstructionBIDViewController alloc] initWithNibName:@"InstructionBIDViewController" bundle:nil];
[self.navigationController pushViewController:viewControllerinst animated:YES];
}
}
i hope this code useful for you.