uinavigationcontroller

setOrientation problem

I have a really strange orientation issue. I have a sequence of view controllers under a navigation controller. One of them can take any orientation. When I'm leaving the orientation I have to use setOrientation. The funny thing is the rotation takes place as the transition occurs to the next page. This isn't normally a problem exce...

NSOperation performSelectorOnMainThread crashes

Hi! I'm calling a NSOperation from a Subview of a NavigationController. MyOperation *op = [[MyOperation alloc] target:self action:@selector(didFinishOperation)]; The Operation loads some data from a server, parses it and then sends a [target performSelectorOnMainThread:action withObject:nil waitUntilDone:YES]; when the job is done...

UINavigationController is it needed?

Hello! Im a budding iphone developer, and doing my best but i have a query regarding the UINavigationController. I have a tab bar app, with 3 tabs. The 1st tab has five UIButtons, each loading a different "section" of the app, and each section will have a number of views. The other tabs simply display some info. as users select any o...

After pushViewController, how to disable the backBarButtonItem?

After pushViewController, how to disable the backBarButtonItem, that going back will not be possible? tnx :) ...

How to handle navigationController on other class

i have class like this DrillDownAppAppDelegate.h PictureCell.h RootViewController.h SlideShowViewController.h DrillDownAppAppDelegate.m PictureCell.m RootViewController.m SlideShowViewController.m i want to hide my navigation bar,in class SlideShowViewController when i tap on the screen but it doesn't work my code is [self.navigatio...

Child Controller reuse (Navigation Controller setup in Beginning iPhone 3 Development)

My apologies for posting such a book-specific question but by question relates to a particular explanation, which some of the members here may have come across, in "Beginning iPhone 3 Development: Exploring the iPhone SDK by Dave Mark and Jeff LaMarche". I have tried the book's forum some time ago with no response. I am slightly confuse...

Hide navigation bar and toolbar on touch

Does anyone have any info or code on how to can hide a navigation bar and toolbar when the user touches the iphone screen. Basically I have an image gallery and I want to see the images in the whole of the iphone screen. also im trying to implement a button so the user can download the image i had no luck on my search on google. Thanks...

How can I put a progress bar in a UINavigationController's toolbar like the Mail app?

My application connects to the network to retrieve some data and I'd like to show a progress bar in the toolbar of the UINavigationController of my application. What I actually want is very similar to the Mail application:                                        Except I would like to have nothing to the left of the progress bar, and a...

How does the search display controller hide the navigation bar?

Hi there, When you enter the search bar handled by a search display controller, it slides the view up and pushes the navigation bar up with it. This is easy enough to do, however, when you click a search result and a new view is pushed on the navigation controller's stack, the navigation bar slides in from the right with the view! How ...

Memory usage accounting in a navigation controller-based app;

I have a navigation controller-based application that could be active for a relatively long time and can load multiple screens, revisiting some in the course of its life - a business application. When I push a screen I allocate some memory; when I go back (pop it) I need to ensure memory is not lost. Now in Leaks I have a clean slate. N...

Question for Printer connection from iPhone and for more than 5 tabs in UITabBarController

Hi All, I am developing an application where I need to connect to the bluetooth printer via iPhone where I generated a ".txt" file which I need to print. So is there any information available which will help me in this. A sample code will be a great help. Also in the same example I am having 8 tabs, out of which 4 are shown in "More" s...

Can you return to a specified view within a NavigationController?

Is it be possible to return to the first view of a NavigationController? Example: View 1 -> View 2 -> View 3 -> (An action is performed) Return to View 1 ...

properties from a parent view in iPhone Navigation Stack

I can't seem to access parent view properties in a navigation stack. See below //the parent to current view (which is at index 2) UIViewController *parentView = [self.navigationController.viewControllers objectAtIndex:1]; //there is an NSArray propery called games in parentView NSLog(@"%@",[parentView.games]); This code gets the erro...

Navigation & View Controller questions

I'm experimenting with ViewControllers & NavigationControllers in Interface Builder trying to get a better grasp of what's tied to what and why... I'm struggling with a scenario that has confused me. Hopefully someone can set me straight... Say I start with your typical iPhone template View-Based Application and I display a view which i...

iPhone: MKMapView Strange crash

Hi everyone, I'm having an issue with a MKMapView, hope someone can help me. I have a view that embed a MKMapView and a navigationController. I push in my navigationController another viewController then another one again. Then if I go back to the MKMapView and touch the map, the application crash. so MkmapView > View2 > View3 > View2 ...

UITableView cells do not stay selected when pushing a view

I have a UITableView on a view. This UITableView has cells which are made up of a checkbox custom control, a label and a disclosure accessory. When I select a row in the tableview it selects correctly (blue highlight shows 100% correctly). I then created a didSelectRowAtIndexPath delegate to push a detail view controller onto the naviga...

How do I add a button to my navigationController's right side after pushing another view controller in?

So, immediately after pushing a view controller to my tableView, // Override to support row selection in the table view. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here -- // for example, create and push another view controller. AnotherViewCon...

How do I get the RootViewController from a pushed controller?

So, I push a view controller from RootViewController like: [self.navigationController pushViewController:anotherViewController animated:YES] ; BUT, FROM anotherViewController now, I want to access the RootViewController again. I'm trying // (inside anotherViewController now) ///RootViewController *root = (RootViewController*)self....

Programmatically pressing a UITabBar button in Xcode

Sorry for the newbie question. I have a UITabBar in my main window view as well as an array of UINavigationControllers for each Tab. The structure is similar to the iPod app in that the main views can be seen by selecting TabBar items and then the user can drill down further with the NavigationController by pushing views to the stack. ...

How to add 2 buttons into the uinavigationbar on the right side without IB?

Hello, how can i add 2 buttons into the uinavivationbar without IB? The 2 buttons should be align on the right side of the uinavigationbar. I know how i can add one button, but two?? Alex ...