Due to the many screen sizes in the mobile world, staying relative to screen size is crucial. Hard-coding margins and sizes based on points can be short-sighted. In this post, we will subclass NSLayoutConstraint to achieve percentage-based margins.
Less code and less memory while performing the same task at hand is truly where the art comes in. In this post, I’d like to highlight some of the various pitfalls that lead to memory leaks, which inevitably result in crashes. I will also cover some tools and remedies to resolve these issues.
In this post, I’d like to show you how to create a Swift framework for iOS, watchOS, and tvOS and get them distributed via Carthage and CocoaPods. It’s a technique I use to share frameworks across all my apps and with the community.
It is convenient to keep your settings or default values in a `.plist` file or settings bundle for your project. In this post, we will explore how to attach an extension off the NSBundle class this make it super easy to read those values.
Unit testing has a stigma of slowing you down while you’re trying to rock some code. The truth is unit testing doesn’t have to be so dry. Once you start flipping the script, unit testing can be an opportunity for refactoring, refreshing, and finding bugs. Besides, who wouldn’t want to see a bunch of green checkmarks next to their code?: A beauty […]
In this podcast, I speak to world-renown, Jesse Liberty, about developing on the Apple Watch platform and Swift.
Nature’s Nurture enjoys a quarter-million web hits and have a half a million Facebook fans, I built a mobile app that has taken things to the next level! From a better user experience, to getting higher ranked in Google by providing mobile app indexing features. The iOS app uses Core Data and Android uses Realm database. All their blog posts were […]
There are various ways to persist data in the Apple ecosystem. They range from simple to complex. In this post, learn how easy it is to use App Groups and NSUserDefaults to share data between Apple Watch WatchKit and iPhone iOS using Swift.
CocoaPods are the de facto way of sharing and distributing iOS and OS X code. It manages third-party dependencies in a easy, fast, and safe way. There are thousands of CocoaPods available, but almost all of them are in Objective-C. Today I’d like to show you how to create a CocoaPods in Swift.
Displaying a list of records to users is one of the most common needs for any application. We see this from grids on the web, to table list views on iPhones, and now the trend should continue in Apple Watch. In this post, I’d like to show you how to add a table to your Apple Watch app.