1
按鈕動作不工作時,我在視圖1使用presentModalViewController按鈕不起作用,當我們使用presentModalViewController
:
-
(void)PreseentTheNextView
{
NSLog(@"clicked to add the new view from botom to top");
PreferenceViewController *prefDetails=[[PreferenceViewController alloc] initWithNibName:@"PreferenceViewController" bundle:nil];
[self presentModalViewController:prefDetails animated:YES];
}
我PreferenceViewController
在View 2:
-(IBAction)button1Click
{
NSLog(@"Button 1 Clicked");
}
-(IBAction)button2Click
{
NSLog(@"Button 2 Clicked");
}
-(IBAction)DismissButton
{
NSLog(@"Remove/ Dismiss down the view to previus page ");
}
所有這些按鈕PreferenceViewController的IB設置。
而且這些按鈕動作不工作時,我使用presentModalViewController
如果我使用導航PushViewController工作正常。
但我們的要求是隻從底部呈現視圖頂部