iOS UIKit - How to create a modify a custom UIView programmatically [Solved]

I was wondering if some can help me out with this one.

This is the Stackoverflow link of the problem

Thanks!

Personally I never use .frame and CGRect to set dimensions of things. I always use NSLayoutConstraints

1 Like

Thanks anyway! Someone came out with the solution in stackoverflow. :blush:

Can you post it here? It may help someone else