viewdidload Questions

5

Solved

Is it possible to load all cells of an UITableView when the view is loaded so that they are not loaded when I'm scrolling? (I would show a loading screen while doing this) Please, it's the only wa...
Geisel asked 4/9, 2012 at 17:49

3

Solved

I've read several posts on this issue but none of them solved my problem. I'm coding an app where I have to click on a button ("Prepare") to go to the following ViewController. When the button is...
Shutdown asked 2/9, 2017 at 21:6

7

Solved

. Hello, I am trying to add a UIButton and other items to my UIViewController programmatically and from what I have read and seen in other SO questions I should be on the right track with this co...
Battue asked 25/5, 2012 at 0:47

6

I was under the impression that viewDidLoad will be called AFTER prepareForSegue finishes. This is even how Hegarty teaches his Stanford class (as recently as Feb 2013). However, for the first tim...
Gaylagayle asked 28/2, 2013 at 23:20

4

Solved

Reading several tutorials and books on iOS development I often encounter terms : UIViewController life cycle and UIView life cycle. I'm interested: is there an actual difference between these two t...
Antitoxin asked 25/2, 2015 at 17:20

6

My viewDidLoad in a view controller is called twice. Once by [UIViewController View] and a second time by [UINib instanciateWithOwner:Options]. Why is this happening? Can it be prevented?

12

Solved

Anyone know why this root View Controller's viewDidLoad is being called twice at launch? It's driving me nuts! here's the stack trace from first time through viewDidLoad: #0 0x0000276a in -[RootV...
Catling asked 3/7, 2009 at 23:31

6

Solved

I have an iOS app in which I need to know when a new view is completely visible on-screen; that is, when Autolayout has finished its calculations and the view has finished drawing. ViewDidAppear s...
Beget asked 9/5, 2014 at 1:32

2

Solved

I need to understand when UIView appears on the screen, so I need an analogue of the viewDidAppear method. I found a UIView lifecycle: willMoveToSuperview invalidateIntrinsicContentSize didMoveT...
Lobscouse asked 17/12, 2018 at 6:6

3

Solved

I'm building an app (in XCode 8.2.1) where some objects are displayed on a 2D board, and when the user taps one of these objects some info should be displayed about it as a styled modal info box. M...
Sazerac asked 3/1, 2017 at 21:57

4

Solved

Problem Summary My mainVC --> second VC transtion appears to run twice. However, what's odd is that the second VC's viewDidLoad only runs once. This is the only transition in my project that has t...
Trodden asked 29/8, 2015 at 16:49

3

Solved

As simple as it might be, I still find my self struggling with the correct solution. I'm trying to understand what is the correct way to find the REAL UIView(or any other subview) frame inside vie...
Eager asked 15/9, 2017 at 1:30

2

Solved

I`m trying to perform a segue if its the first time the app is loading. I can see my print message in the debugger, but the Perform Segue is not working. I don't get any errors. Can somebody ...
Randallrandan asked 12/8, 2017 at 18:54

9

Solved

I currently have a UIActivityIndicator appearing on screen for a second or two. I would like to set grey out the background as this appears on screen but I am not sure how to do this... Here's how...
Marimaria asked 3/11, 2011 at 21:36

2

I have tried to set the searchBar as a tableHeaderView inside of the viewDidLoad: override func viewDidLoad() { super.viewDidLoad() // SearchController initializiation self.searchController ...
Swollen asked 7/4, 2017 at 2:38

3

Solved

I was wondering if anyone knows why when you set the frame of a subview in viewDidLoad and viewWillAppear the changes do not take affect on the screen, but if you set it in viewDidAppear they do? ...
Fayum asked 26/10, 2012 at 0:16

3

Solved

I have three views (view 1 checks a server connection, view 2 shows the main content, view3 shows the support page) and I created them in the storyboard without coding. On starting my iOS app the v...

4

I am trying to push a ViewController programmatically into a navigation controller, And I'm using my storyboard to create it. here is my code : + (void) pushViewController:(NSString *) identifier...
Hanuman asked 5/5, 2014 at 13:57

4

Solved

I have always been a bit unclear on the type of tasks that should be assigned to viewDidLoad vs. viewWillAppear: in a UIViewController subclass. e.g. I am doing an app where I have a UIViewContro...
Proselyte asked 16/10, 2009 at 18:9

4

Solved

I have two window app and while I present first window I would like the view in second window to load and prepare content for later in background. I've tried to use method loadView but Apple says ...
Demurral asked 3/10, 2012 at 7:21

4

Solved

Is it safe to assume that an attribute, namely fetchedResultsController, of chatViewController, an instance of a subclass of UITableViewController, is always nil when viewDidLoad is called, assumin...
Ablebodied asked 16/10, 2010 at 17:24

3

Solved

EDIT: Here is whole code example for Xcode 6.4 I have simple iOS application without storyboards. I set rootViewController for UIWindow in AppDelegate.swift like this: func application(applicatio...
Keese asked 18/7, 2015 at 9:58

6

I'm using this library in my app for banners. I am trying to get the Link by parsing the JSON. The Images are are not showing in the slideshow view. If I press the slideshow view, after that ever...
Effeminize asked 13/2, 2016 at 18:16

3

Solved

The top three answers can solve my questions. It is hard to pick which one is the best. So, I just pick the one who is the first to answer my question. Sorry for amateur and iOSEnthusiatic. Thank y...
Norbertonorbie asked 24/1, 2016 at 4:38

4

I am using navigation controller. I have pushed two viewcontroller to navigation stack. When I am coming back to viewcontroller1 from viewcontroller2 using back button of navigation bar then viewdi...
Intertwist asked 18/11, 2015 at 11:7

© 2022 - 2024 — McMap. All rights reserved.