uinavigationcontroller - Embedding a navigation controller in a container - Objective C -


how embed navigation controller in container view? when place container first shows viewcontroller embed container, want change viewcontroller navigation view , set rootviewcontroller , other views

basically add viewcontroller uinavigationcontroller , set uinavigationcontroller rootviewcontroller. hope helps:

viewcontroller *vc = [[viewcontroller alloc] init]; uinavigationcontroller *nvc = [[uinavigationcontroller alloc] initwithrootviewcontroller:vc]; self.window.rootviewcontroller = nvc; 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -