loadview

loadview ONLY when I get my GPS location.

I have been stuck on this for days, and was wondering if anyone had any clues? Should be simple, but it has me stuck! I get my location, then continue. But I want to stay IN THAT METHOD - LOOPING - until I get a valid location. Then loadview. THANKS for any tips! I am using the standard: - (id)init { if (self = [super init]) {...

iPhone Dev - UIView frame and loadView

I'm learning to develop for iPhone (programmatically, I don't like IB). I only use IB for the frames of things, so I design in IB but only use it to check each control's frame. Something I've gotten very confused about is the frame of a UIView. First of all, if you do not implement loadView in a view controller, it automatically creates ...

Replacing a UIViewController root view with my own view

I'm trying to replace a UIViewController root view with a subclassed UIView. In the iPhone SDK's UIViewController Class Reference, within it's Overview section, this is stated: You use each instance of UIViewController to manage a full-screen view. For a simple view controller, this entails managing the view hierarchy responsible fo...

self.view = aViewController.view vs [aViewController loadView] -

Hello everyone, I am trying to understand the behavior of view controllers when switching from one to another (displaying different views) A part form the addSubiew statements which seem to work, I can't find an explanation to what happens with the two statements: self.view = someViewController.view; [someViewController loadView]; In...

How to recreate UIViewController stack?

I'm writing a 'load' feature for my current iPhone app. Practically what I want to do is get the user back where s/he left off. To do so I want to recreate all the UIViewControllers appeared before. My problem is the UIViewControllers won't appear if I simply call [[self navigationController] pushViewController:newController animated:Y...

iPhone - Make loadView entries fill up parent view?

I have a loadView call that basically places one view at the top (like a header) and one at the bottom (like a footer). It's possible via a passed in parameter to not have a header or a footer, to hide them later, or to resize the view. I have all this working, but it's very susceptible to breaking because the views can go in various pla...

loadView is called each time .view notation is used

I have a view called MyViewController, that I initialize from a xib file. Its loadView method looks like this: - (void) loadView { [super loadView]; // some initializations } I create it from some other view controller like this -(void) createMyViewController { MyViewController *aController = [[MyViewController alloc...

loadView is called when get a message like "Received memory warning level 1"

hi, all: I am developing an App for iphone. Now i create a ViewController subClass which is named WriteViewController, and i create the view of WriteViewController by override loadView() function. The view of WriteViewController is an instance of WriteView. In WriteView, I have a instance of UIImage which holds an image object. I set t...

loadView vs xib - iPhone

I want to know if there is any advantage in using loadView method instead of xib for a ViewController. Are there any advantages in terms of memory management or speed ? ...

Programmatically layout iPhone UIView?

I am using the iPhone toolchain on Linux and so I have no Interface Builder. So how could I layout my view in my ViewController subclass? For example, I want a UITextView in the middle of the screen? Should I do this in the loadView or viewDidLoad. Do I also have to set the view for the ViewController subclass to itself? ...