Questions tagged [viewdidlayoutsubviews]
52 questions
0
votes
0 answers
Call viewDidLayoutSubviews in iOS 7
I'm trying to implement a control called SCLAlerView which enhances Alert messages. But I'm facing a problem when iOS 7 is used (it wotks well on iOS 8). On portrait mode, alert view is shown correctly but in landscape mode or when rotates from…

RFG
- 2,880
- 3
- 28
- 44
0
votes
0 answers
Memory error with app termination in viewDidLayoutSubviews
I have setBackgroundImage in viewDidLayoutSubviews. It calls viewDidLayoutSubviews infinitely. As a result memory is increased with app termination. What am I doing wrong? It happens only in iPhone 5s and the same code works fine in iPad Air and…

puneetha koopadira
- 89
- 8
0
votes
0 answers
Frame size is incorrect in viewdidload, viewdidappear
Using iOS8. Frame size of UIViewController's view is incorrect in viewDidLoad and viewDidAppear.
I could get the correct frame size from viewDidLayoutSubviews and perform view updates (I need to invalidate a layout) but than handling rotation with…

Avba
- 14,822
- 20
- 92
- 192
0
votes
1 answer
Xcode - viewDidLayoutSubviews
i have a view inside a viewController, i wanted to start the smaller view outside the viewController in the left, and animate it to the centre when i press a button. so i made it like this:
override func viewDidLayoutSubviews() {
…

Abdou023
- 1,654
- 2
- 24
- 45
-1
votes
0 answers
Diferent sizes in viewDidAppear and viewDidLayoutSubviews
I'm changing the sizes of two buttons in the viewDidLayoutSubviews and they have the same size but when I try the aplication the size had changed, I printed the sizes in the viewDidLayoutSubViews and they have the same size but when I print the size…

Victor
- 9
- 2
-1
votes
1 answer
How to set content width to the size of device/parent width?
The images in my feature scroll show up weirdly in smaller sized phones such as the iPhone 5s, iPhone 6, etc.
EDIT: I'm using UIScrollView to do this. :)
I've tried adding my code into viewDidLayoutSubviews and viewWillLayoutSubviews but it does not…

Ali Wong
- 1
- 6
-1
votes
1 answer
Why the Horizontal line in text fields are conflicting in Landscape mode in ipad in Swift?
I am using this code in Xcode 9, iOS 11.
var boolName: Bool = false
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(true)
if boolName == true {
…

Rahul Chopra
- 187
- 1
- 13