uiviewcontroller

iphone 2.x sdk - reference to a viewController inside another viewController showing up as null

Hi, I'm trying to give a newly created instance of a custom picker view controller a reference to another viewController like so (this is inside of a selector from a ponceViewController instance that is called after a tableView row is tapped)... - (IBAction)rowTapped:(id)sender { TimerPickerViewController *viewController = [[TimerPic...

Displaying a UIViewController/UIView over another view

I'm trying to create a picker controller with a 'Done' button positioned just above it, to display over a form that is in another view. I have created a sub-class of UIViewController and using IB I've added a toolbar and a picker view. This seems fine and by copying the examples in UICatalog I can get it to display the required values a...

Why does popViewController only work every other time

I am totally stumped, here's the situation: My app uses the Core Location framework to get the current location of the user and then pings my server at TrailBehind for interesting places nearby and displays them as a list. No problems. To conserve batteries, I turn off the GPS service after I get my data from the server. If the user ...

Iphone UIButton not working in nested UIViews

This is so damn simple im sure! Im missing something and im exhausted from trying to fix it. hopefully someone can help. The Button in CharacterView.m works but the button nested down in CharacterMale.m does not. I'm not using IB everything is done progmatically. What would cause one button to work and other not? //////////////////////...

Does anyone know a good tutorial for Tab bars?

Does anyone know a good tutorial for Tab bars? My app is currently a "view-based" app. I need a tutorial on how to make it so that my main nib loads the view from other nibs, and when I click different tabs, it loads other nibs. Thanks ...

iPhone Application: Overall Application Hierarchy & Architecture

I have been struggling a little with my first real iPhone application and wanted to get some advice on how this should be structured. I am looking for some best practices in terms of creating UI components and linking them together to create the application flow (create views/controllers programmaticly vs. with Interface Builder, ect......

iPhone - Blank Screen when Switching VIews

I have an application that makes use of drill-down views, tabbars, etc. I'm also making use of the UIImagePicker, as well as Route-Me for mapping support. Normally, the application performs fine. However, I find that if I perform a lot of activities and then switch between views, I end up with a blank screen and my view is not drawn. ...

Reinitialize a view controller - iPhone

I have a multi view application with individual UIViewControllers and xibs. I have one view that is the game view and every time I call it I want it to re-initialize, by that I mean restart at it's initial condition and not in the state I last left it in. Here is the code block I am using to load and remove views: -(void)loadStartVi...

Iphone Landscape mode switching to Portraite mode on loading new controller

My app launches in landscape mode correctly and works great: - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait) return NO; if(interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIIn...

Can someone show me a diagram of how view controllers work?

Can someone show me a diagram of how view controllers work in cocoa (obj-c). I just want to understand because they are confusing me Thanks! ...

Reloading a view when back button is clicked from uinavigationbar

Application shows information about planets, their moons, and etc. It shows a list of planets, let user select a planet and see its details and then bookmark/unbookmark it. I have a view which shows user the details of selected planet, it also contains a add/remove bookmark button. If user clicks that button, that bookmark is added/remov...

Call UIViewController from "subview"

Hello, I have a UIViewController which when it loads it loads up this.. MapViewController *mapController = [[MapViewController alloc] initWithNibName:@"MapView" bundle:nil]; self.mapViewController = mapController; [self.view insertSubview:mapController.view atIndex:0]; [mapController release]; I also have a switch views b...

Exception When Setting the Nib Name field in Interface Builder

Hey Guys, I'm trying to load a view controller from a nib in Interface Builder. My basic setup is this: MainWindow.xib contains: All the usual stuff, the app delegate instance, the Window etc. A UINavigationController which has a UIViewController as it's Root View Controller. The nib name of the UIViewController is set to the name of ...

iPhone - Problem with sending view to back

When I try to send a view to the back, it hides some of the buttons and labels in my view controller. The view I am sending to the back is a UIImageView. Does anyone have an opinion of what might be the problem? ...

iPhone - creating a loading view

When the app is in one view controller, I want to add a view to simulate that data is being loaded when I click my tab bar controller to open another view controller. Example: When I the app is in the recorder-view, I want it to show a loading view (a view with a activity indicator) when I change to the list of recorded files (which can ...

iphone cocoa "error:request for member ____ in something not a structure or union"

this way works: type1ViewController *viewController = [[type1ViewController alloc] initWithNibName:@"Type1View" bundle:nil]; viewController.parentViewController = self; self.type1ViewController = viewController; [self.view insertSubview:viewController.view atIndex:0]; [viewController release]; but this way gives me the error, "request...

How to view property value in debugger

I have a UIViewController and would like to see properties such as myview.view.hidden. In another class where I declare an instance of UIViewController, I can assign and read the property through code but would like to know the value at various points. In the debugger console, I can't do "po myview.view.hidden" or "p myview.view.hidden...

presentModalViewController:animated: crash after dismiss (memory mgmt related?)

I'm currently having an issue with UIViewController's presentModalViewController:animated:. I use the following code to set up and show the modal view controller: UINavigationController *navigationController = [[UINavigationController alloc] init]; AddSerialController *serialController = [[AddSerialController alloc] initWithNibName:...

Adding a subview into view hierarchy

I'd like to have a view appear when the user clicks a button. The hierarchy I have looks like this: MainWindow -UIView --ScrollView ---ScrollView.pages = UIViews ----UIView (from above assignment) ----TextView ----InfoButton pages is an NSMutableArry of pageController objects. These hook to a nib. These nibs are the pages that use...

View Controllers: How to switch between views programmatically?

In short: I want to have two fullscreen views, where I can switch between view A and view B. I know I could just use an Tab Bar Controller, but I dont want to. I want to see how this is done by hand, for learning what's going on under the hood. I have an UIViewController that acts as an root controller: @interface MyRootController : UI...