uinavigationcontroller

UINavigationController how to set title

Hi all, I have a Controller/View for a generic list of items, that can be extended for displaying a custom list.. Listing and navigation works fine.. but I can't change the title of UINavigationController. In the generic Controller: - (void)viewDidLoad { [super viewDidLoad]; [self.view addSubview: navigationController.view]; } -...

popToRootViewController - notification

I have a tabBar controller. Tapping the active tab, by default, calls popToRootViewController on that tab's navigation controller. That is what I want, but I also need to do some customization when this happens. The view controller in question has a nav controller, but is not a subclass of UINavigationController. How can I listen for whe...

iPhone: Is there a way of keeping track of touches while changing views with UINavigationController ?

I'm currently working with 2 views on a UINavigationController. I have a Leaves view (Tom Brow's leaves project) to simulate curling effect for pages which only works with images, and my actual view controller with the page and it's contents. What I'm trying to do is, when tapped on certain place, popViewControllerAnimated:NO the actua...

Adding a refresh UIBarButtonItem to a UINavigationController loaded from a NIB

Hi all, I'm a complete iphone/obj-c noob, and this site has proven invaluable for finding my way around the platform. I have a UINavigationController loading in the first tab of a UITabBarController. I'd like add a refresh button on the right side of the UINavigationItem. My dim understanding is that one has to set properties like tit...

access variable of a view controller from a pushed view controller

I am using a navigation view controller to handle two view controllers; one each for the landscape and portrait orientations. Now, I need to set a propery belonging to the view controller A(for vertical) that pushed the view controller B (for horizontal), from the view controller B. Is there any way I can achieve this? Sample codes and e...

Table view gets cut off when rotating a UINavigationController.

My UITableView, actually all my subview, when i rotate the UINavigationController that is their parent. Any Ideas? ...

how to manage a stack of UITableViews without a navigation controller

I am new to iPhone development, and I am working on modifications to an existing iPhone app. The high-level overview of the issue is this. I have a button displaying a pop-up containing a UITableView. I'd like to click on a menu item and display a second UITableView with sub-items, including a back option. If the user clicks back, they...

Pass a variable between lots of UIVIewControllers

Hello, In my iPhone app, there is a setup assistant which helps users to input a lot of data. It's basically a UINavigationController with lots of UIViewControllers in it. Now, at a certain point, I want to access a variable that the user entered in the first UIViewController he saw. I could pass the variable between every UIViewControl...

reference to currently visible uiviewcontroller

AT certain point in my class ABC, I want to display a UIViewController. ABC itself is not a subclass of UIViewController, hence I cant do [self.navigationController pushViewController:myViewController animated:NO] Is there a way to get a reference to the currently visible UIViewController (top of navigation stack) ...

Subviews disappearing from UIViewController

Hello, I have application with multiple UIViewControllers using navigation controller. UIViewController contains tableView, searchbar (that I can show/hide) and toolbar. All of this is added as subviews to its view. All this subviews are created after UIViewController is initialized and their content depend on UIVievController's content...

tintColor of UISegmentedControl doesnt react

Come oon! I am almost looking a day at this! I want to set my tint color of my UISegmentedControl but it doesnt react... NSArray *segControlItems = [NSArray arrayWithObjects: @"L", @"H", @"A", nil]; UISegmentedControl *segControl = [[UISegmentedControl alloc] initWithItems:segControlItems]; segContr...

Show a UINavigationBar back button without pushing a view controller

In the iPad's Photos app, when you tap an album the stack of pictures expands to fill the screen - you're in the same view, it's just rearranged the grid a little. But at the top, a left-arrow-style Back button appears, as if pushViewController had been used - except it fades in neatly, rather than sliding in. When you tap that, it fades...

Navigation Bar + presentModalViewController

Hi, I have a navigation bar based application, and at one specific point in the app I have a button on the nav bar that should present a new view using a flip transition (essentially taking a user from a tableview to a map view). I'm currently using DetailLocationView *detailLocationView = [DetailLocationView alloc] init]; detailLoca...

Change Navigation Controller Animation Type

I would like to change the transition type of a navigation controller from "slide" to "fade". Any ideas how to make the change? TIA, Jim B ...

UINavigationController does not scale my main UITableView, if the NavigationBar titleitem has a height > 44 px

I have a UITabbarController where I show a UITableViewController. Now I have set a special titleView to replace content of the standard Navigation bar: self.navigationItem.titleView = titleView; My titleView is not only 44 px of height (as seems to be the standard), but it has a 70px height. This is properly displayed. The only problem...

iPhone: Main Menu to Navigation Controller And A Table View

Hi Folks, I have two applications that I would like to build into one. The first is a simple table view that drills down to a detail view when a cell is clicked. It works fine. It has a TableView and a Navigation Controller, so I can go back and forth between cells. The problem is I don't want an App that shows a table straight away! I ...

retaincount of ViewController +4 when pushed by NavigationController

I was wondering why the retainCount of a viewController is raised by 4 when pushed onto the stack of a Navigationcontroller e.g. from a tableView. What dependencies are created? ...

iPhone: Move UINavigationBar down?

I'm trying to position the navigation bar below the top of the screen. I've tried the following in viewWillAppear: self.navigationController.view.frame = CGRectMake(0.0, 54.0, 320.0, 426.0); self.navigationController.navigationBar.frame = CGRectMake(0.0, 0.0, 320.0, 44.0); The problem is it only seems to work the very first time the v...

UITabbarController + UINavigationController, detail view with UIToolbar instead of tab bar

Hi, In my Main Window IB file I have a TabBarController and the first controller is a Navigation Controller. When I push my detail view (after pressing a cell in a table view) I want to push my detail view and display a tool bar instead of the tab bar. The problem is that when I try tabBar.hidden = visible; in my detail view contro...

Initialization for ViewController under NavController in TabBarController

I have the relatively common setup of a TabBarController whose tabs contain NavigationControllers which have TableViewControllers as their roots. I'm trying to perform some logic on initialization of one of these TableViewControllers but can't seem to find what init function gets called. My goal is to add a listener in the TableViewCont...