by Dj Sison | May 9, 2016 | iOS Development, Sample Code, Swift
Singleton Singletons are useful when you want data in memory to persist throughout the lifetime of the application. Usually, it is better to pass around the relevant data to each of your controller for easier unit testing and debugging. But sometimes, you just need a...
by Dj Sison | May 9, 2016 | iOS Development, Sample Code
Sample Codes List This page lists the sample code posts from this blog. Feel free to copy-paste them in your projects! Swift...
by Dj Sison | May 2, 2016 | iOS Development
First, the similarities. Both OverFullScreen and OverCurrentContext have the “Over” in their names, meaning that both modal presentation styles will not remove the views underneath the newly presented views. This is useful when you want to show a modal...
by Dj Sison | May 1, 2016 | iOS Development
AVMakeRectWithAspectRatioInsideRect I have recently discovered this method through a work colleague. I have been manually computing the size that fits a CGRect but maintains aspect ratio before, but this method will easily replace that. This is one of the benefits of...