uinavigationcontroller

How can I break the "navigation stack" in a Cocoa Touch App ?

Hi everybody, I'm currently trying to create a navigation based application, pushing views to change the screen content. I'm trying to set up a button which can allow me to "restart" from the first screen, but I can't figure out a way to do that. If I "push" the first view, there will be a "back" button, and I'll just have another piec...

Getting navigation controller to launch one of two different views

I have a program where we are using a navigation controller and need the app to launch to one of two different views. Basically if certain info has previously been entered then we need the app to launch to view A, but if the info has never been entered then we need it to launch to view B. I am having difficulty getting this to work and a...

Getting black screen when loading navigation controller

The following code below is attempting to implement a method where my navigation controller launches to on e of two different views. The problem is that I keep getting a black screen whenever my application launches. #import "SugarCRMReleaseOneAppDelegate.h" #import "SettingsViewController.h" #import "ModuleViewController.h" @implemen...

How to switch page on UINavigationBar on iPhone

Hi, everyone, I want to ask a question about the UI item on the UINavigationBar on the iPhone application. Im my program, there are a navigation bar and UITableView, like the following structure. UIView (DataRootViewController.m) | +- UINavigationBar | +- UITableView And, I want the it display the detail of the data when the user pr...

how to use the UINavigationController to switch the page

Hi, everyone, I want to ask a question about the UINavigationController on iPhone application. I create a UINavigationController and 2 view controller (rootViewController.m and detailViewController.m) .In the rootViewController, it contains the UITableView, when the user click, it will call the detailViewController, but I don't know how...

How to hide/disable only the first uinavigationbar ?

I've been wandering how to hide / remove / disable only the main or first navigation bar in the navigation controller so that I could put an image as a whole background screen but I couldn't find any solution. Did try hide the titleview in viewdidLoad of the main navigation controller but didn't work. Tried using navigationBarHidden bu...

How do I correctly set a UIViewController's navigationController title?

I am trying the following code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Thing *sub = [[subscriptions objectAtIndex:indexPath.row] retain]; StoriesViewController *thing = [[StoriesViewController alloc] initWithThing:sub]; thing.navigationController.title = sub.title; [self.navigat...

navigation will terminate?

Hi, does anyone knows how can i can call a notification similar to - (void)applicationWillTerminate:(NSNotification *)notification which is when app terminate, but what i want is when i drill up a navigation view. thks in advance. ...

How to create this UITableView

Hi, everyone, I want to ask a question about the iPhone application. I am writing a program with the UINavigationController, and I can click the UITableView cell and go to the detail page. However, I don't know how to create the following table view. (I use the didSelectRowAtIndexPath to go to another page) How can I create this kind of...

Saving data when navigating

how can i save the data in from texfield when i navigate back to previous view? i have set the app to save all data to plist when terminate but i when i am navigating up and down view, i need to save the data to some place. any suggestion? save data when "back" button at nav bar is press? but how? save to NSUserDefaults? ...

How to pass NSManagedObjectContext back up to root view in UINavigationController?

I may just be passing data between views completely wrong here, so I am open to completely changing how I pass my data back and forth. My app delegate creates the NSManagedObjectContext and passes that to my main menu using a UINavigationController which makes it the root view: MainMenuViewController *mainMenuViewController = [[MainMen...

accessing the navigation controller from separate delegate class

Hi I am follwing a tutorial from a book and there the delegate and datasource are separated from the controller (MyViewController.m) [self setDataSource:[[MyViewDataSource alloc] [self setDelegate:[[MyViewDelegate alloc] for understanding, I now want to pop a controller from the delegate class (MyViewDelegate.m) - (void)tableView:(...

Best practice for View-Routing in iPhone SDK

Hey, I've run into a little problem while developing a Core Data driven Quiz and be a bit confused about a best practice to solve my problem. I have approximately five templates for the diffrent questions, wich will be loaded in case wich question is displayed. So I check wich template has question 1 and push the new question-template...

how to remove a navigation controller with a view

Hi, I have a tabbar application with a navigation bar. For one of the actions I am instantiating a navigation controller programatically and adding a view with tableview. I want to remove this navigation bar and tableview programatically clicking a button on the new navigation bar. how to do this ? I tried popview but it is not poping ...

Problem in using tab bar controller with navigation controller.

Hi I am working on a navigation based application. I am using navigation controller for this purpose. I want to use tab bar on one of the screens and i am not able to find any way of doing this. As far as i have read, it is not possible to add tab bar controller when you are using navigation controller. Is it right? One solution was to m...

Changing UINavigationController from UItabBarController

Hello!, I have a tabBarController with 4 tabs. In the fist one I need to show an UINavigationController which has a UIView in it. When the user presses a button inside that view I need to display another UINavigationController in tab 1 replacing the old one. Is this possible? I tried using this code with no luck UINavigationController ...

iPhone Dev - need a id from the last view i visited

I need to build a code to track what id i use from an order view, but now i can't get it to work, can somebody paste a sample code to me? i need a TagID from view1 -> view2, so when i'm landing on view2 i can get informations about it and send to users screen. i hove on a little help here :0) ...

UINavigationBar unresponsive after canceling a UITableView search in nav controller in tab bar in a popover

Ok, this is an odd one and I can reproduce it with a new project easily. Here is the setup: I have a UISplitViewController. In the left side I have a UITabBarController. In this tab bar controller I have two UINavigationControllers. In the navigation controllers I have UITableViewControllers. These table views have search bars on them. ...

Any popular Rails tricks for keeping a nav's css selected when flipping through partials?

I have an admin with a nav. The nav toggles between different partials. The nav has several li's, and when one of them is selected, it gets the .selected class that makes it highlighed. Is there anyway to toggle this from the controller? Or any other place that's popular among Rubyists? ...

Back Navigation Button Not Showing up in Pushed View Controller

I have a problem where I can successfully push a new view controller from my root view controller (using the Navigation-based application using Core Data template), but the detail view, which is a separate xib file from the root view controller, doesn't display the back navigation button. I'm certain that I've done all of the proper conn...