Tag: uinavigationcontroller

Custom UINavigationController UIToolbar subclass

I need to work with a subclassed UIToolbar in the UINavigationController. I know this can be done via Interface Builder but I need it to be done programatically. The docs state that the UINavigationController toolbar property is readonly so I’m at a bit of a loss as to how I proceed. Related: Custom UINavigationController UIToolbar […]

UITabBarController application and pushViewController fail

I have created a TabBarController app with three ViewControllers inside UINavigationControllers, A, B and C. I have created everything programmatically. Now I want to push some ViewControllers inside one of those TabBar items. For Example if I am in ViewController B and I press one button I want to make a pushViewController to ViewController: D […]

Getting correct color of status bar in ios

Okay I am having some trouble coloring my status bar. I have a pretty simple app that moves between two views. I tried coloring the status bars of the navigation controller with this code [[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0x067AB5)]; But it did not work until I removed the “navigation controller’s” status bars and dragged status bars into […]

How do I preserve the frame of a UIScrollView upon entering foreground?

This question discusses how to create gaps between views in a UIScrollView. The agreed method is to increase the width of UIScrollView’s frame to create gaps between the views which will be scrolled past. However when the scroll view is a subview of a UINavigationController an issue arises. The UINavigationController changes the frame of the […]

UINavigationController alternatives

I’m developing an app that resembles the structure of a ‘Choose your own adventure’ book, with lots of multimedia content (photos and videos mainly). Each ‘page’ is a ViewController in which the user has to complete a puzzle or another task in order to go to the next one. I’m creating a UINavigationController and I’m […]

How do you Show tabbar after Signup or login iOS7

Basically I have a tab based app which involves log in/ sign up from a landing page first before you can see the tabbar,I have literally been on this for about 3 hours with no solutions yet ! so its more like: LandingCtrl(tabBarNotvisible)-> LoginCtrl(tabBarNotvisible)-> profile(tabBarvisible) This is what i tried: appdelegate.m – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary […]

Why won't self.navigationController pushViewController work?

I have a UIViewController-> UINavigationBar + UITableView Just a bit more explanation I made it through UIBuilder.. 1: Created a New UIViewController with XIB-file 2: Using UIBuiler i put a UINavigationController 3: Then i put UITableView underneath the navigationBar so it gave me.. A: UIViewController-> UINavigationBar + UITableView Now i am loading the data in […]

change backbutton with custom image and textcolor

I want to change the backbutton appearance for my backbutton in my navigation bar. For that I have this piece of code. UIImage *backButtonImage = [UIImage imageNamed:@”backbutton.png”]; UIButton *backbutton = [UIButton buttonWithType:UIButtonTypeCustom]; backbutton.backgroundColor = [UIColor colorWithPatternImage:backButtonImage]; backbutton.titleLabel.text = @”back”; backbutton.titleLabel.textColor= [UIColor colorWithRed:50/255.0 green:158/255.0 blue:218/255.0 alpha:1.0]; backbutton.frame = CGRectMake(0, 0, backButtonImage.size.width, backButtonImage.size.height); UIBarButtonItem * back = […]

Tweak UI Navigation on iOS 11

I have a problem with a navigation bar in iOS 11. I use this code: [UINavigationBar appearance].prefersLargeTitles = YES; …to set a new style for my app. It works well untill a user pull to refresh on the table view; then it breaks. This is before pull-to-refresh: …and this is _after: Note: I use the […]

How to call viewWillDisappear method in Tabbar Application having navigations also

I have created 5 Tabs in my application. In Tab1 i have UITableView. On didSelectRowAtIndexPath i am navigating to another UIView in which I am showing my all 5 Tabs. And I also play song in that navigated view. Now when I click Back button in navigation and i again go to my original view, […]