uinavigationcontroller

UINavigationController popToRootViewController, and then immediately push a new view

Hi there, I have a tabBarController with two tabs, first of which contains an instance of NavigatorController. The navigatorController is initiated with a custom viewController "peersViewController" that list all the network peers on a tableView. Upon selecting a peer, an instance of "FilesListViewController" (which list files in th...

How to present a modal view controller with fixed UIToolbar?

I am trying to set up a Modal View Controller, that that lies below a fixed toolbar. therefore the toolbar is supposed to stay on top while the modal view rolls in. the Safari-App does that for example, when hitting the bookmarks-button. the toolbar stays, the buttons change.. I tried a couple of things like pushing the toolbar to the ...

UINavigationBar title and a right button

Hi, I have a navigation controller and in it a view controller: -NavigationController1 --MyViewController And as well I have another navigation controller - NavigationController2. I want to call MyViewController from another view controller - ViewController2, that was pushed into NavigationController2. -NavigationController2 -...

UINavigationController and autorotation.

I have a UIViewController that returns YES in shouldAutorotateToInterfaceOrientation: for UIDeviceOrientationPortrait and NO for everything else. With that view on the top of the stack, I use pushViewController:animated: to push a new UIViewController. The new controller returns YES for anything in shouldAutorotateToInterfaceOrientation:...

UIWebView going blank when navigating back to the view

Hi I have an app that loads a UIWebView. And that works well. It is possible for the user to click a link in the web view which then creates a new view controller/web view to load the link, which also works well. What isn't working so well, is that sometimes (1/4 maybe) when I come back to the initial web view, the view is blank white....

Problem with loading UITableView in Navigation-based App

In Navigation-based App, when i try to load another view which has got implemented UITableView using initWithNibName: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIViewController *detailsViewController = [[UIViewController alloc] initWithNibName:@"bloop2ViewController" bundle:nil]; ...

Autorotate view inside UITabBarController and UINavigationController

My main view controller is a UITabBarController, with 4 UINavigationControllers as the tab bar items. Each navigation bar is a couple of different views that get pushed onto it's stack. I have a single view that I want autorotated, but I can't get willAnimateFirstHalfOfRotationToInterfaceOrientation to be called within that view contro...

Rotating view with nav controller on iPhone

Hi, my application has a tab bar containing nav controllers. When I rotate, to landscape, I'm switching to a different view by pushing the landscape view onto the nav controller stack as follows: - (void) orientationDidChange: (NSNotification *) notification { if (self.tabBarController.selectedViewController == self.navigationC...

iPhone autorotation only on specific screens in under a navigation controller

This is just an example of the basic problem I'm having, so don't worry if this situation sounds a bit pointless ;) Let's say I have an app that's mainly a UINavigationController just two levels deep. The top level is a table with a list of image filenames, and the second level has just a UIImageView showing the image for the filename ...

How to create a good looking iPhone navigation controller in landscape mode?

I'm writing an iPhone app in landscape mode. I need to use NavigationControllers in it and they appear just fine. The problem is, the contents of each UIViewController that I push into the NavigationController are grouped tables. These grouped tables don't look very well in landscape mode, they take all the space and buttons look weird, ...

Autorotate with a UINavigationController

I am a little unclear on how to rotate views that are sitting on a UINavigationController. I have overridden the UINavigationController object with one of my own that overrides: (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { return YES; } I have one view on the stack on the control...

iPhone: Weird space at the top of UINavigationController

I'm having a strange problem with adding a UINavigationController to my iPhone application. I add the controller as follows: myViewController *viewController = [[myViewController alloc] initWithNibName:@"myView" bundle:nil]; myNavigationViewController *navigationController = [[myNavigationViewController alloc] initWithRootViewControlle...

Using sleep within iPhone apps (esp. with UINavigationController)

Hi, I'm pretty new to iPhone development but I'm close to releasing my first app (related to a website I run). The app requires a very large database and as such I've decided to store only the most commonly used data locally, retrieving the other data via a JSON web service call from the database my website runs off. Whilst performing O...

Why doesn't initWithRootViewController retain the viewController Class that is passed into it?

I have a custom viewController called SourceListViewController, and I'm adding it into a UINavigationController, the view of which is then added to the window of the iphone App. After passing the SourceListViewController to UINavigationController, I release the sourceListViewController. SourceListViewController *sourceListVC = [[Sourc...

Can I increase the animation speed of presentModalViewController?

I'm writing a drawing application that shows a tools view controller when the user clicks an item in a toolbar. However, several of my beta testers have reported that the tools palate opens too slowly. I'm using the standard presentModalViewController:animated: call to display the tools, and I've tried wrapping it in a code block like th...

UITabBarController, UINavigationController and autorotate

i have problem with autorotate on iphone i set up in all classes - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } but it is not respond ;/ Sample code is: http://b6.s3.p.quickshareit.com/files/testautorotatec...

UINavigationController - same viewController

I have an app where I'm trying to recursively load views. So I have one view (theViewController) that is able to drill down into another view of the same type (theViewController). I have the recursion working fine and the back buttons work just fine. But I'm trying to implement a function that does some work and then unloads the curre...

Bug in MKMapView?

When I open MapView with navigationcontroller in a new view, then not waiting till map loads, and then clicking on the back button - I an exception is thrown. Can anyone confirm this? What is a work-around? ...

uiview animation used to work on iphone sdk 2.2 and now it doesn't on sdk 3.0

hello! I have an animation block that worked fine when runnung the app on iphone OS 2.2. Now I compile the same code for iphone OS 3.0 and it doesn't work. UIViewAnimationTransition trans = UIViewAnimationTransitionFlipFromLeft; [UIView beginAnimations: nil context: NULL]; UIView *forview = [[self view] superview]; [UIView setAnimati...

UIBarButtonItem crashes iphone app when button is clicked

UIBarButtonItem *rButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:NULL]; rButton.action = @selector(refreshAction); self.navigationItem.rightBarButtonItem = rButton; [rButton release]; The above code works fine to create a button and add it to the navigation bar, but...