uinavigationcontroller

Up/down arrows in nav bar of detail view to page through objects in parent table.

I have created an up/down arrow segmented control button on the right side of the navigation bar in my detail view. In a table based application, how can I use these up/down arrows to move through cells in the parent table? The apple "NavBar" sample code has an example of this but the controls are not functional. The iBird program has...

should we need to release viewcontroller's object after pushing into navigation controller?

here is sample code. if(MyPageViewControllerObj==nil) { MyPageViewController *vController = [[MyPageViewController alloc] initWithNibName:@"MyPageView" bundle:[NSBundle mainBundle]]; self.MyPageViewControllerObj=vController; [vController release]; noOfWrongAnswers=0; noOfRightAnswers=0; } MyPageViewControllerObj.sessionid=s...

Selective Autorotation within a UINavigationController and UITabBarController

Greetings! Here's the scenario. Starting with a navigation controller (and no tab bar is present - it is hidden from a previous view controller push), I init a new view controller and push it onto the nav controller stack. This new VC contains a lonesome UIView into which I programmatically add a UIScrollView with the same frame. (I wan...

Tabbar not able to access Navigationcontroller

I have a navigationController app. I push a tabbar onto the view. Tabs are working title is changed, perfect. Now one of my tabs has a list and I try to link out to a child page within the tabbar: NextViewController *nextController = [[NextViewController alloc] initWithNibName:@"ProfileDetailController" bundle:nil]; [self.navigationCon...

IPhone Dev: setHidesBackButton hides the button but leave it working..!

Hi everyone... I don´t know if it was supposing to happen, but when I set: [self.navigationItem setHidesBackButton:YES animated:NO]; or self.navigationItem.hidesBackButton=YES; it works, the button is hidden... BUT if I press the area where the button was supposed to be, the "invisible" button works..! This is correct..? If I reall...

UINavigationController, UITableView and not showing the next view

I am having a problem with a table and showing another view when the user touches a table cell. I am using a UITabBarController for the main view to show different views. I then use a UINavigationController when the user selects a UITableView view to display the next view from the table cell selection. My problem is this: when they ...

How can I show a custom image in navigation bar back button instead of default buttons which are shown by nav bar itself

On navigating to any view in an app which has navigation controller implemented, it shows a back button to go to the previous view. Is there a way I can use custom image instead of the default one? ...

Setting action for back button in navigation controller

I'm trying to overwrite the default action of the back button in a navigation controller. I've provided a target an action on the custom button. The odd thing is when assigning it though the backbutton attribute it doesn't pay attention to them and it just pops the current view and goes back to the root: UIBarButtonItem *backButton = [...

How to add a right button to a UINavigationController?

I am trying to add a refresh button to the top bar of a navigation controller with no success. Here is the header: @interface PropertyViewController : UINavigationController { } Here is how I am trying to add it: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (self = [super initWithNibName...

iPhone crashes when I "properly" release pushed view controllers

I have a navigation controller based application and I'm running into a strange issue where a few of my view controller pushes are causing crashes upon "popping" the view controller. I've narrowed it down to the line of code that releases the view controller after pushing it on the navigation controller's stack. My code looks like this...

UINavigationItem setHidesBackButton:YES won't prevent from going back

Hi All! It's odd, I know, but even if you stated hidesBackButton to YES for the UINavigationItem associated with your view, you will be able to go back just touching the area that was meant to be a back button. Sharing my solution... (more to come) ...

Force loading/unloading a view

How can I setup a view controller to refresh the fields in the view only it is pushed on a navigation controller and releases the objects when it is popped from navigation controller views. My goal is that for a view controller: Refresh display only when it is pushed on the navigation controller stack releases data when it is popped f...

How do I calculate the optimal titleView width?

I am using navigation with a custom UIView subclass that becomes my titleView. I want to ensure this is the full available width. Logically from my UIViewController's viewWillAppear:, this should be: CGFloat width = self.width - self.navigationItem.leftBarButtonItem.width - someConstant; (I don't have a right item here.) This would ...

Can't Change UILabel.text more than once when switching to a detail view.

I have a navController and tableViewController set up such that selecting a table row will push a detail view on the navController's stack and display detailed information about the row selected. In the detail view I use a single UILabel to display the info, and I set the value of the label's text property in viewDidLoad of the detail v...

UITabBarController UINavigationController Design Advice

This is more of a philosophical question than anything, so give me your thoughts. The iPhone SDK documentation specifies that you may have a tab bar controller contain a navigation controller, but you can't have a navigation controller contain a tab bar controller. It seems that there are times when you might want to organize views with...

UIActionSheet and popViewControllerAnimated

Hi folks, this is my first post and i would appreciate any help you would be kind enough to offer. I have varied coding experience but all on windows based machines and have been thrown in at the deep-end with objective-c and cocoa touch. My program has a UITabBarController to access different formatted tableViews of a series of data re...

How do i refresh a table when returning from a lower level in UINavigation Controller?

I have a table navigation controller with a tree of options, when i nest down to lower levels and then return, how can i make the table react to the changes that were made at a lower level? How can i detect returning focus to a level to get the table to reload itself? ...

Scrollable UINavigationBar similar to Mobile Safari

My application uses a UINavigationController and the final view (detail view) lets you view an external website within the application using a UIWebView. I'd like to free up some additional screen real estate when the user is viewing a webpage and wanted to emulate how Safari on iPhone works where their URL bar at the top scrolls up and...

Calling a modal window from within a custom UITableViewCell

I have a UITableView and inside it I create a custom UITableViewCell in the follwoing way: ItemCellController *cell = (ItemCellController *)[tableView dequeueReusableCellWithIdentifier:ContentListsCellIdentifier]; ... cell = [[[ItemCellController alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ContentListsCellIdentifier...

Problem adding a rootViewController to UINavigationController

I am having a problem with the following code: MyViewController *aController = [[MyViewController alloc] initWithNibName:@"MyView" bundle:nil]; self.myController = aController; myController.title = @"List"; [aController release]; UINavigationController *bController = [[UINavigationController alloc] initWithRootViewController:myContro...