viewwillappear Questions

2

Solved

I have an UIStackView set up on the title view of the navigation bar in my app. It simply shows the icon of the app to the left of the title. In iOS 15 and earlier, this displayed fine. Right now, ...

9

Solved

I have a UIViewController that I am loading from inside another view controller and then adding its view to a UIScrollView. self.statisticsController = [self.storyboard instantiateViewControllerWi...

6

I have a standard SingleViewApplication project. ViewController.swift import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additio...
Spicy asked 19/8, 2014 at 20:8

7

Solved

I'm writing an app and I need to change the view if the user is looking at the app while talking on the phone. I've implemented the following method: - (void)viewWillAppear:(BOOL)animated { [sup...
Bearcat asked 11/3, 2011 at 20:25

3

Solved

viewWillAppear is called on UIViewController when a view is about to be shown on screen. Is it possible to get similar callback on UIView?
Party asked 2/5, 2012 at 12:49

7

I'm adding a child view controller to a parent view controller, and everything works as expected, except that child view controller isn't having its usual callbacks triggered. eg, things like viewW...
Daysidayspring asked 24/12, 2013 at 2:15

4

Solved

In my tab-bar I have four viewcontrollers, and what happens in one can affect the view of the other, so I may need to reload some elements in the viewcontroller when it becomes visible. Normally I'...

8

tl;dr: Can I cause the detailTextLabel to have its size updated by the auto layout system in iOS on a value change? Has anyone else had issues with the detailText label within an UITableViewCell si...
Virchow asked 23/9, 2014 at 4:53

4

Solved

I am facing a weird bug, that happens only on iOS 10. I have a application with several screens, and each screen colors the navigationBar in viewWillAppear. So when you go to the next screen, it w...
Mucoviscidosis asked 15/9, 2016 at 12:30

3

Say I have UIViewController A and B. User navigates from A to B with a push segue. Than user presses back button and comes to A. Now viewWillAppear of A is called. Can I know in the code here tha...
Aspiration asked 8/1, 2014 at 20:30

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

2

Solved

Is there any way to perform something like ViewWillAppear on UITableViewCell? UITableViewDelegate methods (like willDisplayCell) only works when cells appear by scrolling. In my situation, I need...
Dichloride asked 9/2, 2016 at 4:48

5

Solved

As an overview, I'm having issues with a UINavigationController inside of a UITabBarController calling viewWillAppear whenever a view is popped from the stack. From the delegate, a UITabBarContro...

2

I have noticed a change in how iOS 9 loads/displays views compared to previous versions of iOS. Here's an output of self.view.frame in iOS 8.4 viewDidLoad {{0, 0}, {320, 504}} viewWillAppear {{0, ...
Houselights asked 24/9, 2015 at 16:14

3

Solved

I am unable to find a way to distinguish between popping from the Nav controller stack and entering the view controller from the UITabBarController. I want to call a method in ViewWillAppear only ...

4

I have an application which has more than one view. When I return to the foreground from the background, I want to determine which view I am in presently. How would I do that? [EDIT] I understand...
Legpull asked 21/9, 2011 at 11:21

2

Solved

Are there any guidelines for using these methods in the right manner? In particular, I would like to know what type of code I could use inside them. For example, if I have to call a method that re...

3

Solved

Is there a BOOL or some other way of knowing if viewDidLoad: has been called? I need to change a view property every time my view has entered active, but if the view hasn't ever been loaded, I don...
Rakehell asked 18/10, 2013 at 21:3

2

Solved

I have always thought that calling [super viewWillAppear:animated] is mandatory. But today I came across a piece of code from Apple's example application called CoreDataBooks and here's viewWillApp...

5

Solved

I've got a question regarding the two mentioned methods, since in my tests I don´t make clear the order they are called. I thought that, firstly, viewDidLoad is called when the viewController is lo...
Norvol asked 28/6, 2013 at 10:2

2

Solved

I get used to put either of viewWillAppear and viewDidLoad, it's OK until know. However I'm thinking there should be some rules that guide when to put into viewWillAppear and when to put into viewD...
Guillemot asked 23/1, 2013 at 4:7

4

Solved

In iOS 5.1 and iOS 5.0 it works, but in iOS 6.0 the keyboard does not show. - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; UITextField *textField = self.emailAddressTex...
Angelicangelica asked 20/11, 2012 at 18:46

2

Solved

In iOS 4.x or lower, viewDidAppear and viewWillAppear, viewDidDisappear and viewWillDisappear, such ViewController's delegate methods are not getting called. The same methods work fine with the iOS...
Marmoreal asked 11/11, 2011 at 3:19

1

Solved

Possible Duplicate: UIViewController returns invalid frame? While debugging i've noticed that in viewDidLoad call my view frame is origin=(x=0, y=20) size=(width=320, height=460) whic...
Deal asked 19/12, 2012 at 17:19

4

Solved

Situation I have a fairly simple app with 2 "layouts" using SharedPreferences. Main.xml Settings.xml Main has a textView that uses getString from SharedPreferences. Also a button to open Sett...
Halfcaste asked 7/12, 2011 at 18:53

© 2022 - 2024 — McMap. All rights reserved.