Questions tagged [loadview]

90 questions
0
votes
2 answers

-(void) loadView with NSMutableArray

- (void)loadView { [super loadView]; arrayOfImages = [[NSMutableArray alloc]initWithObjects:@"11.jpg",@"22.jpg",@"33.jpg", nil]; UIImageView *awesomeView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0,…
Jenny
  • 351
  • 3
  • 19
0
votes
1 answer

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…
shinjin
  • 2,858
  • 5
  • 29
  • 44
0
votes
1 answer

Execute loadView for iPhone only in Universal application

I am currently porting iPhone app to iPad application. Now in few screens of iPhone app all the UI is done via code with Visual Format Language. Now in iPad since UI is different I can simply do it via Interface Builder. Now how can I my app execute…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
0
votes
1 answer

OSX: loadView doesn't execute

I've done some iOS coding but right now I'm trying to write a Mac App. This link: viewDidLoad in NSViewController? says that the OSX equivalent of viewDidLoad is loadView. I want to call an initalizing method as soon as the view appears, but…
0
votes
1 answer

Read a xib and spit the equivalent loadView

Is there any tool that will read a xib file and spit the corresponding loadView method? I want to create the views with a xib, but then convert it to Objective C code and use that from then on.
cfischer
  • 24,452
  • 37
  • 131
  • 214
0
votes
1 answer

iOS Unable to simultaneously satisfy constraints in loadView

I'm getting the Unable to simultaneously satisfy constraints error. I don't get the error when the viewcontroller establishes itself using viewDidLoad but it does get the error when using loadView... Why is this happening? I thought the only…
Sethypie
  • 549
  • 6
  • 21
0
votes
2 answers

view frame in -loadView

A view in a view controller created using a nib has its frame at {0, 64, 320, 416}, origin starting right below the nav bar. In -loadView without a nib however, the view with the same frame is 44 pt off despite having the same frame (origin=(x=0,…
Morrowless
  • 6,856
  • 11
  • 51
  • 81
0
votes
1 answer

UIImagePickerController in TabBarController

I am trying to implement the imagepickercontroller inside a UITabBarController. So far, so good.... In my ViewController, where I initiate the imagePickerController and then place in my TabBarViewController tabbar array, I implemented the…
0
votes
1 answer

how to load new content in linear layout android using fragment?

As we load Webview in fragment like this: private WebView viewer = null; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { viewer = (WebView) inflater …
0
votes
2 answers

how to change current displaying uiview without using segues?

i want to change display to an UIViewController which has view controller at storyboard from an UIViewController class which hasn't got view controller at storyboard. There is no segue at storyboard for this...
emy
  • 664
  • 1
  • 9
  • 22
0
votes
2 answers

How to load all tab view controllers on application start?

Basically when i start my application I show tab view controller, and it shows first tab, and loads only first tab. I would like at the same time to preload rest of the view controllers. I have found this post - Load All TabBar Views But I am…
MegaManX
  • 8,766
  • 12
  • 51
  • 83
0
votes
1 answer

if a view controller got unloaded due to low memory pressure, will loadView be called again once it's is about to be shown again?

I understand that the viewDidUnload will be called when the app is under low memory pressure, then when the related view/controller is about to be "active" again, will the loadView be called?
tom
  • 14,273
  • 19
  • 65
  • 124
0
votes
1 answer

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. …
Edward Potter
  • 3,760
  • 4
  • 28
  • 39
-1
votes
1 answer

loadView() throwing EXC_BAD_ACCESS memory error

I am pushing a ViewController onto the stack when a row is selected from a tableview: if let cell = tableView.cellForRowAtIndexPath(indexPath){ let genre = cell.textLabel?.text ?? SelectGenreTableViewController.genres[0]; // nil coalsing…
dancingbush
  • 2,131
  • 5
  • 30
  • 66
-2
votes
2 answers

UIViewController lifecycle function loadview() frame question

I have been mainly working with storyboard until I recently moving to only creating controller with code. I followed our coding standard to create some subview in the loadView() function, inside which, the first line is super.loadView(). From what I…
Developer Sheldon
  • 2,140
  • 1
  • 11
  • 17
1 2 3 4 5
6