uinavigationcontroller

Add sub views in Navigation Controller

I have a main view which has 3 labels positioned on the top. At the bottom there are about six buttons. On tapping each of the buttons, a different view is to displayed in the center area. Each of those views have a view controller of its own. In the viewdidload method I set the view frame's y position and height so that it fits in the...

Tab/navigation hybrid like iPod/Music

I'm working on an application that I'd like to use the same hybrid of navigation and tab bars that the iPod/Music application uses to navigate playlists. Basically: Navigation to deal with delving deeper into a particular list tree. A tab bar along the bottom to switch between lists, which appears on most/all subscreens. The tab bar's...

add background image to UITableViewController in Navigation based app

I have a navigation based app where I push TableViewControllers onto the stack. I would like to add a background image to all of my TableViewControllers. Not a color, but an image. I know how I can do this using a Nib file and setting the table view itself to have use [UIColor ClearColor], but I don't want to go through all my TableVi...

A problem with override UINavigationController

now i'm working with cocos2d and i design to add navigationcontroller to my cocos2d application, so i add navigationcontroller to my application when i click it not pass touch or event to cocos2d now i'm try to override UINavigationController by add new new class name is NavigationController and inherit from UINavigationController in i...

UIWebView in a UINavigationController

How can I control the title which appears in the UINavigationController with a web page which appears in a UIWebView? I am trying to get the UINavigationController title to reflect the title of the web page. ...

Programatically resize a UIViewController based on its container

I have a simple UIViewController with just a UIWebView. The UIWebView should take all available space to show the content of an url. I would like to reuse this ViewController in various places. In some cases it will be pushed into a NavigationController, in some it will be shown as a ModalViewController. Sometimes it might be inside a T...

Prevent automatic popToRootViewController on double-tap of UITabBarController

The default behavior of a UITabBarController is to pop the contained UINavigationController to the root view controller when a particular tab is tapped a second time. I have a particular use case where I'm wanting this to not work automatically, and I'm having a hard time figuring out how to prevent this. Has anyone run into this, and i...

Strange delay with Navigation Controller behaviour

I have the following set up in a navigation controller. The root is a list of categories (banks, hotels etc) and each category has a child view below it containing a table view of items (Bank A, Bank B etc). When i select 'Banks' i see my banks (list coming from from web service), but then i go up one level to my root, and select 'Hotel...

iphone tableviewcontroller left/right slide when switching views programmatically?

To explain what I'm trying to do: I have a navigationController with a list of options, clicking one will do the usual push of the selected TableViewController subclass, sliding the screen to the left, displaying the usual "back" button and view title on the top. so far so good. This view is showing content for a specific day. Lets c...

Set programmatically a custom subclass of UINavigationBar in UINavigationController

Does anyone know how can I use my custom subclass of UINavigationBar if I instantiate Navigation Controller programmatically (without IB)? Drag a Navigation Controller in IB show me an under Navigation Bar and using Identity Inspectory I can change class type and set my own subclass of UINavigationBar but programmatically I can't: navi...

Communication between view controllers

Given the section of an application which has a UINavigationController and 2 levels of UITableViews (i.e. a row is selected on the root controller which pushes the second controller onto the navigation stack) I have the following questions: 1) There is a User object which is required by both controllers. What is the best way to communic...

UITableView in UINavigationController gets under Navigation Bar after rotation

This is Portrait: This is Landscape I've tried this on rotation with no success: self.tableView.autoresizesSubviews = YES; self.tableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; ...

How do I replace the back button with another UIBarButtonItem in a navigation controller when editing?

I have a standard UINavigationController setup. One particular view displays an "Edit" button on the right side of the Navigation Bar. When that button is pressed and the view switches to editing mode I would like to replace the "Back" button on the left side with an "Add" button. Of course, when editing is finished (the user presses ...

Recreating the functionallity of the blue “unread dot” on the iPhone Mail app

I am building an RSS reader with a GUI very similar to the built-in mail app. It uses Core Data to store the information once it is downloaded. When a story is downloaded, it has a blue dot to indicate it is new. Once I go back to the main page after reading a story the dot should be gone. It stays there until I scroll or relaunch the ap...

UISegmentedControl Selected Tint Not Showing

The tint that usually shows on a UISegmentedControl on the selected button isn't showing when I set the whole nav bar to black (self.navigationController.navigationBar.tintColor = [UIColor blackColor];). Is this a bug or something I'm missing? ...

Create Navigation Controller based on iPhone View Based Application Project.

Hi .. I create an application base on view based Application project . so i have multi view xib files on my app . on the one of the views i want using Navigation Controller . can you help me step by step to create navigation bar on this view ? let's assume my view name is GhazalViewController . when i add Navigation Controller from lib...

fire back button in UINavigationcontroller with code.

Hey guys, How is it possible to get one level up in my navigationcontroller? The docs didn't help me. [self.navigationController popToRootViewControllerAnimated:YES]; pops to the root(as it says). [self.navigationController dismissModalViewControllerAnimated:YES]; didn't work either. Thanks for any help! ...

iPhone: Save with validation on back navigation

In my iPhone application I have navigation controller, main screen and some edit screens. On edit screen user does some input that has to be validated before I can save it. Ideally I would like to update data automatically on back navigation without additional "Done" button. Can I do some validation and save on back navigation (i.e. when...

Wrong size of UITableView using autoresizingMask

I have a UITableView which is not being resized properly using autoresizeMask (in iPhone 3.0). The UITableView is inside a UIViewController inside a UINavigationController inside a UITabBarController, all of which are being created programatically. The status bar is visible. The code of the UIViewController is basically: - (void)loadV...

Referencing a TableViewController property when it is buried on a NavigationController stack.

Hello, I have a UINavigationController with two UITableViewControllers pushed onto its stack. Is there any way to reference a property on the first TableViewController that is under the second? I would like to do this in the second controller's viewWillAppear method. Thank you for any help you can give.... ...