python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why does the selector, @objc, function add a subview, of my button image (as a UIImageView), in my UIButton?
I first declare the button
let balloon = UIButton()
A background image then gets added to the balloon
balloon.setBackgroundImage(UIImage(named:"balloon.jpg"), for: .normal)
An image view ...
Spencer
Votes: 0
Answers: 1
Swift - Layout problem with scrollview and safe area
I have a problem with a scrollable layout
I have two UiViewController :
One on the top with a green background (TopVC) and the other is red (the initial VC) which are perfectly scrollable
When I start...

Victor
Votes: 0
Answers: 0
How to scale margin based on screen sizes with auto layout?
Imagine I have a UIImageView with a certain aspect ratio constraint (this handles the height/bottom constraint), pinned to superview's top, leading, trailing with 5pt in a 100pt width screen in XIB/st...
CyberMew
Votes: 0
Answers: 2
Container view width decreases after adding safe area constraints
I have a ViewController and a container view testcontrollerViewController inside of it. I noticed that after I'm adding constraints to that container view in the storyboard (all the edges match the sa...

PigeonPO
Votes: 0
Answers: 1