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
Post a Comment