Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UISplitViewController with story board
- NSMutableArray *monsters = [NSMutableArray array];
- [monsters addObject:[[[feature alloc] initWithName:@"iphone3g"
- iconName:@"iphone3g.jpg" featuresofiphone:iphone3gf] autorelease]];
- [monsters addObject:[[[feature alloc] initWithName:@"iphone3gs"
- iconName:@"iphone3gs.jpg" featuresofiphone:iphone3gsf] autorelease]];
- [monsters addObject:[[[feature alloc] initWithName:@"iphone4g" iconName:@"iphone4g.jpg"
- featuresofiphone:iphone4gf] autorelease]];
- MasterViewController *masterDetailViewController = [[MasterViewController alloc]init];
- masterDetailViewController.iphones = iphonesarray;
- UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;
- UINavigationController *navigationController = [splitViewController.viewControllers lastObject];
- splitViewController.delegate = (id)navigationController.topViewController;
- return YES;
- NSMutableArray *monsters = [NSMutableArray array];
- [monsters addObject:[[[feature alloc] initWithName:@"iphone3g"
- iconName:@"iphone3g.jpg" featuresofiphone:iphone3gf] autorelease]];
- [monsters addObject:[[[feature alloc] initWithName:@"iphone3gs"
- iconName:@"iphone3gs.jpg" featuresofiphone:iphone3gsf] autorelease]];
- [monsters addObject:[[[feature alloc] initWithName:@"iphone4g" iconName:@"iphone4g.jpg"
- featuresofiphone:iphone4gf] autorelease]];
- MasterViewController *masterDetailViewController = [[MasterViewController alloc]init];
- masterDetailViewController.iphones = iphonesarray;
- UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;
- UINavigationController *navigationController = [splitViewController.viewControllers lastObject];
- splitViewController.delegate = (id)navigationController.topViewController;
- return YES;
- -(void)viewDidLoad
- {
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
- self.detailViewController = (DetailViewController *)
- [[self.splitViewController.viewControllers lastObject] topViewController];
- [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]
- animated:NO scrollPosition:UITableViewScrollPositionMiddle];
- }
- -(void)viewDidLoad
- {
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
- self.detailViewController = (DetailViewController *)
- [[self.splitViewController.viewControllers lastObject] topViewController];
- [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]
- animated:NO scrollPosition:UITableViewScrollPositionMiddle];
- }
- [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionMiddle];
Add Comment
Please, Sign In to add comment