Hi,,
The basics of the IOS.
The basics of the IOS.
When we create an empty project
ViewController1
*obj = [[ViewController1
alloc]init];
UINavigationController
*navobj = [[UINavigationController
alloc]initWithRootViewController:obj];
[self.window
setRootViewController:navobj];
[self.window
makeKeyAndVisible];
return
YES;
TO navigate other class
-
(IBAction)buttontonavigate:(id)sender
{
ViewController2
*obj2 = [[ViewController2
alloc]init];
[self.navigationController
pushViewController:obj2
animated:YES];
}
No comments:
Post a Comment