Questions tagged [loadview]

90 questions
3
votes
1 answer

The frame size of the view is not changing on rotation when the view is created with loadView

I have UIViewController without a xib, and I'm using loadView to build my UI that creates and adds two scroll views. The thing is, the main view frame size is not changing when rotation happens. I mean, I'm setting initial frame size for the main…
Centurion
  • 14,106
  • 31
  • 105
  • 197
3
votes
1 answer

Modal UINavigationController Background Loading After Animation for PresentModalViewController

I am having trouble with the background in my modal UIViewController displaying before the animation begins. I have a simple UINavigationController which loads a UIViewController. I then present the UINavigationController via a…
3
votes
3 answers

Will loadView be called if there is a nib file?

If I override the loadView method, loadView will be called whether there is a nib file. If I don't override loadView and there is a nib file, will it be called ?
Terry
  • 43
  • 8
3
votes
1 answer

viewDidLoad vs. loadView for custom container controllers

I'm writing a custom container controller that programmatically instantiates a child view controller and several views. Also, the child view controller programmatically instantiates a view that I then manually add to the container's view hierarchy…
earksiinni
  • 407
  • 3
  • 13
3
votes
1 answer

How write a new file in codeigniter?

First I want to load a view file into a variable, then I need to create a new file by writing the data to new file.ie,Like creating a copy of a view file. $vPath =…
shihabudheen
  • 696
  • 8
  • 26
2
votes
0 answers

SplitView Ipad - Segue to Detail View keeps opening views

I have an app with a SplitViewController. On the MasterDetail I have that whenever you push a cell, it performs a push segue to load a new view in the Detail View. The problem is, if I press the cell 10 times, it opens ten times the detail view and…
2
votes
2 answers

loadView Vs init method

Please let me know at what times init and loadView method gets called. To my knowledge init method gets called only once when view is initialized and loadView is called anytime view is loaded. So, even if you are pushing a new view in the view stack…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
2
votes
2 answers

Where to add the UISegmentedController; loadView, initWithNibName: bundle:, or viewDidLoad?

I'm just getting started with Objective-C programming and I'm a little bit confused about where to declare a UISegmentedController instance as a "subview" of my viewController root view. I've been experimenting with the code and it seems to work…
iCode101
  • 395
  • 2
  • 17
2
votes
2 answers

iOS: Recommended pattern for loadView

If I have a complicated view hierarchy in a UIViewController, when would it be appropriate to factor out the main view into its own class, even though it's not re-usable elsewhere? And if I were to do that, what would the proper event handling…
xtravar
  • 1,321
  • 11
  • 24
2
votes
0 answers

Un-override loadView for storyboard project

My iOS 5 project uses storyboards. I have a view whose view controller inherits from a class that in turn inherits from UIViewController. This class belongs to a framework that was written for non-storyboard projects, i.e. it initialises the view…
lucianf
  • 547
  • 7
  • 17
2
votes
3 answers

How to display a progress bar during loading another table view with a table view

I have a table view cell , during click it , another table view will open , you can select something as the value of the table view cell. The issue here is the data in the second table view is big and it will take long time to load. So after I…
user1330526
  • 151
  • 1
  • 3
  • 10
1
vote
3 answers

Difference between viewDidLoad and loadView?

Two objective-c methods, -(void) viewDidLoad and -(void)loadView are methods called upon execution of a program but whats the different between them?
Airon Zagarella
  • 707
  • 2
  • 11
  • 17
1
vote
1 answer

NSMutableArray not being filled before it needs to be loaded

I'm attempting to set up a simple Mac-based 2D tiling engine, using a 2D NSMutableArray for mapping purposes. I am using a subclass of NSViewController with a reference to the map object (which contains said array) and passing drawing requests for…
user1170089
1
vote
1 answer

Get tab bar items in xcode to show in image original color as soon as the view is loaded

Morning ya'll. I've designed a tab bar and managed to customise it with custom tab bar items but i can't figure out how you get the tab bar items to load in their original picture color when view is loaded. My code looks like this: class GamePage:…
Vmaiuga
  • 23
  • 4
1
vote
1 answer

How to separate view from viewcontroller using storyboard swift?

Practicing MVC pattern and want to separate view from viewcontroller using storyboard. in main.storyboard I have a viewcontroller, and there are some uilabels in rootview. to separate view code from viewcontroller, I selected view from…
alphonse
  • 687
  • 1
  • 6
  • 16