ios swift development


NSLayoutConstraint-4.Autolayout both ipad and iphone


Hide/Show description

This tutorial show you how to set multiple value for multiple device's sizes(iphone and ipad). You can apply to as many devices as detailed. There are some steps as follows: 1. Make extension in UIDevice class to create some static functions: check current device is iPhone or iPad 2. Add extension function in UIDevice to getValue depending on input device types(iPhone or iPad) 3. Call these extension functions wherever relating to nslayoutconstraint. SUBSCRIBE TO CHANNEL: https://www.youtube.com/c/NguyenDucHoang Twitter: https://twitter.com/NguyenD97601913 Facebook: https://www.facebook.com/nguyen.duc.hoang.bk