- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Navigate From One xib to another:
#import “AnotherActivity.h”
AnotherActivity *obj =[[AnotherActivity alloc]initWithNibName:@"AnotherActivity" bundle:nil];
[self.navigationController pushViewController:obj animated:YES];
Set Any xib as startup, e.g.: LoginViewController:
In, AppDelegate.h
#import "LoginViewController.h"
@property (strong, nonatomic)LoginViewController *logvc;
@property (strong, nonatomic)UINavigationController *navvc;
In, AppDelegate.m
_logvc= [[LoginViewController alloc]initWithNibName:@"LoginViewController" bundle:nil];
_navvc = [[UINavigationController alloc] initWithRootViewController:
_logvc];
[self.window setRootViewController:_navvc];
[self.window makeKeyAndVisible];
Comments
Post a Comment