pushviewcontroller

UINavigationController crash because of pushing and poping UIViewControllers

My question is related to my discovery of a reason for UINavigationController to crash. So I will tell you about the discovery first. Please bare with me. The issue: I have a UINavigationController as as subview of UIWindow, a rootViewController class and a custom MyViewController class. The following steps will get a Exc_Bad_Access, 1...

iphone pushviewcontroller to landscape

I've simple iphone application. it has 3 views. first view is portrait view that has 3 buttons. second view has a table view which is also a portrait. In first view, on click of a button second view is shown. on click of a cell in second view, thrid view is shown. but third view is a landscape. I'm using "pushViewController" to navigate ...

How to move from custom to transluscent NavigationBar and back? Display problems!

So, i got this Navigation-based App (with a custom NavigationBar - Category) and I have 2 problems here... @implementation UINavigationBar (Custom) - (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed: @"bg_toolbar.png"]; [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; } @end...

How return a value from view2 to view1 when using navigation bar

Hi All, I am New to the iPhone Development. How can i carry a string value from view2 to view1 when using navigation bar. I have no problem in carrying string values from view1 to view2 to view3 to....by using pushviewcontroller But when i come back to previous views using Back button of navigation bar, I cannot able to hold string v...

Navigation Controller and Bar - Memory Managment

Hi! first of all... i'm italian, so i'm sorry for my bad english! so... this is my app: i'm using a navigation controller: in the first view there are 10 buttons and every button calls a functions like this: [self pushViewController:nameview animated:YES]; to a different uiviewcontroller! So i have 11 uiviewcontroller! Every cont...

How to properly navigate from navigationController to tabBarController with it's own navigationControllers

Hello guys, I have a general design problem with iPhone application. I want to know the main principle how to go from normal view with navigationController to tabBarController with tabs where each tab has it's own navigationController (dont need first navigationController any more). Let me show you how I made this: First I added some ...

UISearchBar keyboard doesn't slide out of view when a cell is selected in iOS 4.

I have a tableView with a UISearchBar. Before upgrading to iOS 4, when a user selected a cell and the new viewController was pushed, the keyboard slid out of view to the left with the table. Now, it just stays put on the screen on top of the new view. If I call [mySearchBar resignFirstResponder]; I can get rid of the keyboard, but the a...

Push a view (part of a tabBarController) onto parent's navigationController

I have a root view having a navigation controller. This root view has got links to other subviews (which obviously get pushed onto its navigation controller stack). One of the subviews contains a tab bar controller of its own. This tab bar has three tabs. Each of these tabs is connected to a view. One of these views has to have a link to...

TableView Does NOT Switch to Detail View When Connected to Tab Bar Controller

Hi, I have created a Tab Bar Application, removed the default FirstView and SecondView and added the following two ViewControllers: JustAnotherView (which is simply a UIViewController with a UIView inside) MyListOfItems (which is a UIViewController with a TableView inside) I have a 3rd ViewController called ListOfItemsDetailViewCont...

Problems releasing memory when popping a viewController using a navigationController

I'm having the following problem. When I pop the view controller pushing the back button, the dealloc method is not getting called. Here is the code I'm using: NSLog(@"coleccionVista retain count0: %i",[coleccionVista retainCount]); coleccionVista = [[coleccionViewController alloc] init]; NSString *nombreColeccion = [colecciones objec...

why do my programically generated buttons NOT attach themselves to the current view?

The code below generates a button and places it on the screen; button = [UIButton allow] initWithFrame:CGRectMake(0.0, 0.0, 20.0, 20.0)]; button.frame = CGRectMake(0.0, 20.0, 10.0, 40.0); button.backgroundColor = [UIColor redColor]; [self.window addSubview:button]; However, when I generate a new screen via "pushViewController:animated"...

PushViewController Not working

Hi, I am trying to learn Objective-C and have run into a problem with pushing a new View controller when a Button is clicked. I have a switch View Controller that is responsible for pushing the settings.nib file when I press the settings toolbar button. Here is the code of the ViewController: // // ViewController.h // iReader // // C...

Programmatically changing viewControllers

From my navigationController I have two paths: navigationController --> ViewControllerA -- ViewControllerB (currently showing). and navigationController --> ViewController1 -->ViewController2. I want to go from ViewControllerB to ViewController2. Here's what I tried: [self.navigationController popToRootViewControllerAnimated:YES]; /...

How to distory the view that added by pushViewController?

Hi, After adding a view by pushViewController method, there will be a back button in the navigation bar to pop out the view. However, seems that iOS won't distory the view after popping it out. When will it be distory? Can we distory it manually when popping out the view? thanks. ...

Changing the navigationBar on pushViewController:

In my tabBar based app I have subclassed the UINavigationBar. Let's say I have three of them: BlueNavBar, BlackNavBar and RedNavBar. It looks something like this: //BlueNavBar.m - (void)drawRect:(CGRect)rect { self.tintColor = [UIColor colorWithRed:65.0f/255.0f green:(156.0f/255.0f) blue:(215.0f/255.0f) alpha...

Strange Exc Bad Access when using Init, PushViewController, Release. Anything wrong with this code?

Maybe I've been looking at this for too long ;) My app has a NavigationController and several ViewControllers. From one of the ViewControllers two levels down (mainViewController), loaded from the rootViewController, I have the code below. After the PushViewController to the dataViewController and back (e.g. back Button pressed), the app...

Can I "curl down" a page on popViewControllerAnimated?

I can "curl up" a view controller with this code: [UIView beginAnimations:@"animation" context:nil]; [self.navigationController pushViewController:page animated:NO]; [UIView setAnimationDuration:1]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO]; [UIView commitAnimations]...

iPhone navigationController is not displayed

Hi all I have a very strange behaviour of my navigation view. What I want is, that from my main view, the user can touch a button, which leads him to the view with the application settings. Here is the code, responsible for the navigation: AppDelegate.h @interface AppDelegate : NSObject { UIWindow *window; ViewController...

pushViewController and Release

I am trying to do like this, with the commented lines it works good, without, when I came back from the "pushed" view my App just crashes... when should I [release]? Or, better, I am doing this correctly? if (indexPath.row == 1) { Credits *cr = [[Credits alloc] initWithNibName:@"Credits" bundle:nil]; [self.navigationCont...

What is the difference between these two ViewController Pushes?

What are the differences and the implications of the differences between the boilerplate push provided by apple <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil]; NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:indexPa...