Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Switch Views in Tab Bar Applications XCODE
is a discussion within theOS Apps and Development
forums, a part of theComputer Modding Software
section;I would like to Switch Views in a Tab Bar app, not by klicking on the tab bar, but with a regular button like in the screenshot: Ive tried it
...-
05-26-2011, 02:03 PM #1
-
05-28-2011, 06:14 AM #2
nobody? please, i really need help!
-
12-19-2011, 12:38 PM #3
define view controller one by one, and then save all into NSArray, like this...
and then on button click set self.viewController = [viewController objectAtIndexfeedViewController *feed = [[feedViewController alloc] initWithNibName:@"feedViewController" bundle:nil];
instagramViewController *insta = [[instagramViewController alloc] initWithNibName:@"instagramViewController" bundle:nil];
twitViewController *twit = [[twitViewController alloc] initWithNibName:@"twitViewController" bundle:nil];
pimpViewController *pimp = [[pimpViewController alloc] initWithNibName:@"pimpViewController" bundle:nil];
viewControllers = [[NSArray alloc] initWithObjects:feed, insta, twit, pimp,nil]; //define NSArray in header
]; //where viewcontroller you want to use
so [self.view addSubview:[[viewController objectAtIndex
] view]];




LinkBack URL
About LinkBacks
Reply With Quote