objective c - How to group set of controllers in xcode -



objective c - How to group set of controllers in xcode -

i new iphone developer experiences in web development , , seek build tabs in controller , in html utilize div grouping set of controllers can hide or display through javascript , how can accomplish same thing in xcode ( interface builder ) ?

i think should utilize tabbar controller. seek implement code this:

mytabbarcontroller = [[uitabbarcontroller alloc] init]; newsfeedcontroller *newsfeedcontroller = [[newsfeedcontroller alloc] initwithfacebook:facebook]; uinavigationcontroller *navigationcontrollerhome = [[uinavigationcontroller alloc] initwithrootviewcontroller:newsfeedcontroller]; [newsfeedcontroller release]; aboutcontroller *aboutcontroller = [[aboutcontroller alloc] init]; uinavigationcontroller *navigationcontrollerabout = [[uinavigationcontroller alloc] initwithrootviewcontroller:aboutcontroller]; [aboutcontroller release]; mytabbarcontroller.viewcontrollers = [nsarray arraywithobjects:navigationcontrollerhome, navigationcontrollerabout, nil]; [self.window addsubview:mytabbarcontroller.view];

the newsfeedcontroller , aboutcontroller appear in tabs

objective-c ios xcode

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -