I used swift auto layout.
This is the code
overlayView.setTranslatesAutoresizingMaskIntoConstraints(false)
This was worked perfectly in iOS 8. But in xcode 7 it is not working. It is giving the error
Value of type 'UIView' has no member setTranslatesAutoresizingMaskIntoConstraints
It now seems to be:
view.translatesAutoresizingMaskIntoConstraints = false
I think they changed it to be more consistent with the general pattern for properties in Swift in Swift 2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With