ios - UINavigationController and UITabBarController relations is same as UIViewController? -



ios - UINavigationController and UITabBarController relations is same as UIViewController? -

i started newly larn xcode , using xcode 5.1

i got ready slide-out navigation bar form source:

https://github.com/john-lluch/swrevealviewcontroller

in code required pass uiviewcontroller parameter this:

frontviewcontroller *frontviewcontroller = [[frontviewcontroller alloc] init]; uinavigationcontroller *frontnavigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:frontviewcontroller];

when result:

this appdelegate.m code well:

#import "appdelegate.h" #import "swrevealviewcontroller.h" #import "rearviewcontroller.h" #import "customanimationcontroller.h" #import "frontviewcontroller.h" @interface appdelegate()<swrevealviewcontrollerdelegate> @end @implementation appdelegate @synthesize window = _window; @synthesize viewcontroller = _viewcontroller; - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { uiwindow *window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; self.window = window; rearviewcontroller *rearviewcontroller = [[rearviewcontroller alloc] init]; frontviewcontroller *frontviewcontroller = [[frontviewcontroller alloc] init]; uinavigationcontroller *frontnavigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:frontviewcontroller]; uinavigationcontroller *rearnavigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:rearviewcontroller]; swrevealviewcontroller *revealcontroller = [[swrevealviewcontroller alloc] initwithrearviewcontroller:rearnavigationcontroller frontviewcontroller:frontnavigationcontroller]; revealcontroller.delegate = self; //revealcontroller.bouncebackonoverdraw=no; //revealcontroller.stabledragonoverdraw=yes; //self.viewcontroller = revealcont; self.viewcontroller = revealcontroller; self.window.rootviewcontroller = self.viewcontroller; [self.window makekeyandvisible]; homecoming yes; }

and frontviewcontroller.h:

#import <uikit/uikit.h> @interface frontviewcontroller : uitabbarcontroller @end

is problem tha navigation bar cannot handle tabbarcontroller ?

edited: frontviewcontroller ui.

you embedding frontviewcontroller uitabbarcontroller within uinavigationcontroller,which apple doesn't allow. apple says no this. can this tutorial. , after it, seek embed swrevealviewcontroller.

the tutorial shows how impliment uitabcontroller , uinavigationcontroller, doesn't show actual reply questions.

what want accomplish not allow per apple rules. either can embed swrevealviewcontroller within uitabcontroller or can remove uitabcontroller , create custom tabbar using uiview , uibuttons , alter tab views on uibutton's -(ibaction).

ios iphone objective-c xcode uinavigationcontroller

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -