Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

init

A collection of 1 post

iOS

Swizzling UIView initializer with Autolayout

If you are a fan of autolayout and using it extensively, you can feel the pain of writing self.translatesAutoresizingMaskIntoConstraints = NO; every time UIView is initialized. This is awkward to use when I try to init UIView with following initializer, UIView* v = [[UIView alloc] init]; It is implicit that I

  • Jayesh Kawli
Jayesh Kawli Oct 11, 2015 • 1 min read
Fresh Beginning © 2022
Powered by Ghost