Fresh Beginning
  • Home
  • Portfolio
  • My Clothing Shop
  • Etsy Clothing Store
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
  • Contact Me
Subscribe

Method Swizzling

A collection of 2 posts
Swift

Method Swizzling in Swift

Before I start verbalizing this post, I will repeat what other great developers have constantly repeated. Please beware while swizzling a method. If it's your own method you're swizzling, you should be fine. But if it's system method, make sure to call an original implementation from the swizzled method and
Jun 6, 2016 1 min read
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
Oct 11, 2015 1 min read
Fresh Beginning © 2025
Powered by Ghost