uinavigationcontroller

Stuck on using uinavigationcontroller

I am creating a navigation project on IPhone SDK. In briefly, my project can do a log in action. After I click a log-in button to log in. It crashes.... I Found that it failed in DisclaimerController *disclaimerController = [[DisclaimerController alloc] initWithNibName:@"DisclaimerPage" bundle:nil]; UIViewController *targetViewControll...

Where to put Root Controller?

Hi I'm getting better and better with doing things for the iPhone in xcode, but here I have ran into a dead end. I'm trying to build an app with two views: the main one and one for settings. I want to be able to switch between the two of them. Since I need every pixel in the main view I have built a switchView class that simply switch ...

Displaying an ABPeoplePickerNavigatorController within an existing UINavigationController

I have an app where I've a UINavigationController in a popover that displays some information. The root item contains a button showing a related Contact. I'd like to press the contact button and display the ABPeoplePickerNavigationController. I've got this code to do it: ABPeoplePickerNavigationController *contactController = [[ABPeople...

Why am I getting a different instance of a ViewController than the one I pushed onto the navigationController?

Why would I be getting a different instance of HistoryViewController than the one I instantiated and pushed onto the navigationController? The different instance created doesn't have any of the properties I've set. ProfileHomeViewController.m HistoryViewController *historyViewController = nil; historyViewController = [[HistoryViewCon...

How to enforce landscape orientation for child view, but not parent view?

I have a UINavigationController (Parent) that is pushing a UIViewController (Child). I understand that both need to support: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return YES; //(interfaceOrientation == UIInterfaceOrientationPortrait)...

UIToolbar in a popover

Is it possible to show toolbar items in a UIViewController inside a popover? I'm doing this in the viewDidLoad method of my view controller: UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:nil action:nil]; [self setToolbarItems:[NSArray arrayWithObject:addButton]]; ...

actions buttons not being displayed when adding contact

I have TabBar iPhone application that has a UINavigationController that contains a ViewController that has a ABUnknownPersonViewController.view as a subview. When I click on "Create New Contact" or "Add to existing contact", I can see the button items in the animation coming up the screen, but they seem to get hidden beneath the naviga...

Adding UINavigationController to a Custom ViewController who is a sub view itself

Hi all, I'm writing an iPad app, and I have the following screen situation: MainAppWindow MainView & MainViewController (Full Screen) SubView1 & SubView1Controller (250x300) inside of MainView DetailsView1 (Root View) <-- Managed by UINavigationController DetailsView2 (Next View) <-- Managed by UINavigat...

tab bar with navigation controller on each tab item - orientation problems

Hi. i have one tab bar controller with 4 navigation controller connection 4 tab bar items. I made the following changes in the following controllers - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } All view controllers. All navigation controllers. 1 tabbar controller. ...

Can you have two Navigation Controllers in subviews of a Main UIViewController?

The following image explains what I'm trying to do: http://img337.imageshack.us/img337/1475/multinav.png This is for an iPad app. Is it possible? And if so, can someone post the skeleton code to do it? Thanks in advance ...

How to make faster pushing a UIViewController into a UINavigationController

I have a multiple view based application, the problem is that when I push one UIViewController the device (only when I test it on a real device) freezes for a second or two, I don't know why is this happening since the pushed UIViewController has only one UITextField & a button. This only happens when the view is pushed the first time, a...

iPhone Navigation Stack Pushing and a Popping

I have an Application. I wish to push View controllers A, B, C, D and E in various arbitrary orders. A is the Home page, so you could say it is the root, Super VC. But any scenario could occur: A->B->C->B->C->D->A->B->C ... etc. Is the UINavigationController the existing answer to my problems? Keep in mind, my View controllers are c...

[IPhone SDK] Stuck on Two views apps.

I want to create log in app. In log in process I create a UINavigationController to do navigation. After log in, I want to jump to a UITabBarController window. Therefore I added a UINavigationController *navigationController; and set it as a primary view. And UINavigationController *navigationController; to handle stuffs after log in. ...

Question regarding to iphone navigation bar

Good day everyone, currently I'm doing a simple project which uses the navigation controller default template. Now I'm done with my current XIB (navigation template), I have created second XIB and I have added a navigation controller on it. Let say: It is a hierarchy table view, first the user choose one of the option available on the ...

Retain UIViewController or not in navigation stack

Hi, I have a scenario that I'm not sure whether to retain a view controller or not. Say I had ViewControllerOne. When a button was pressed, ViewControllerOne would push ViewControllerTwo in the navigation stack. ViewControllerTwo needs a reference to ViewControllerOne because it needs to access an ivar in that view controller. The quest...

UINavigationController Offset

Hey, I have a UINavigationController which appears at an offset of 20px. This is the exact problem I'm having: http://forums.macrumors.com/showthread.php?t=761616 But I can't seem to figure out what the right way to solve it is. Thanks, ...

iPhone: Is it possible to have an 'info'-button in all views in my app?

Hi, As mentioned in the title, how do I implement such a functionality? I am using the code below, (in my viewDidLoad), to get the button on my Navigation Controller of my main view. UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight]; [infoButton addTarget:self action:@selector(viewWillAppear:) forControlEvents:UI...

How to tell if view has appeared via popping or not?

Using a UINavigationViewController, how do I find out how a view has appeared? The view has either appeared in a straightforward manner, as the first view in the UINavigationController stack. Or it has appeared because a second view has been popped and the first view has revealed itself again. How do you find out which of these happened...

Get to the view controller that pushed the visible view controller

I have an app that has a UINavigationController that pushes a UITabBarController into view. This UITabBarController has four tabs, one of which shows a custom UIViewController, an instance of EventInformationViewController. A button in this custom view controller in turn pushes another custom view controller EventRatingAddViewController ...

UINavigationController not popping UINavigationBar items on iPad

I'm having a very strange problem with the UINavigationController. I found a very similar question here: http://stackoverflow.com/questions/1542040/uinavigationcontroller-not-popping-uinavigationbar-items but the solution there had to do with the fact that the guy had added a category to NSMutableArray, and I'm not doing anything like t...