1

I have a UIView and when I tried updating its subviews alphas and frames I could't succeed. I checked the views window property and found its nil. What should I do fix it?

I have already tried all the: -layoutSubviews, -layoutSublayers, -setNeedsDisplay, -bringSubviewToFront:, etc. Not working.

ashvardanian
  • 424
  • 1
  • 6
  • 17

1 Answers1

0

Ensure that when you declare it you are creating a UIView.

@IBOutlet var youUIView: UIView! = UIView()
Tr0yJ
  • 3,274
  • 1
  • 22
  • 30