Category: iOS

Smarter Animated Row Deselection on iOS

It’s always a good idea to give your users context: at a glance, they should be able to figure out where they are, how they got there, and how to get back where they were before. One subtle but important way to give these cues is with animated deselection. If you’d like, download the sample […]

Read More

IB Free In Practice Logo

IB Free in Practice 1: Managing a Modal

This series of blog posts will provide examples of how we develop Swift applications without IB and demonstrate some general strategies for app architecture. For this first post, I’m going to cover presenting and dismissing a modal view controller over a home view controller. Even though the example is relatively simple, I am going to […]

Read More

NSAttributedString Creation Helpers

NSAttributedString is a great addition to the iOS SDK. Since the release of iOS 6, we are able to use NSAttributedString with UIKit, assigning it to UILabels and  UITextViews. Here is the code for creating this  NSAttributedString: “(middleContent)” (with bold parentheses and italic middle content):

The above example shows that an abundance of code is required to create […]

Read More

Styling Localized Strings with BonMot

Update – November 2016 BonMot, the library mentioned in this post, has received a significant update, and the code samples presented here are no longer valid. Check out the blog post introducing BonMot 4, which includes a link to the migration guide. Original Post: Correct use of localized strings is one of those things, like testing, accessibility, […]

Read More

Linear Interpolation and Fading Hairlines

Linear interpolation is a simple method of finding intermediate values between two endpoints. It has numerous applications in computer graphics, where it is known as lerp, but we are going to use a tidy Swift implementation to add some subtle polish to an iOS app. You can download the source code for the example app […]

Read More

wwdc

WWDC 2016 Rumor Roundup

Apple’s annual Worldwide Developer Conference is just around the corner. It kicks off Monday, June 13th at 10AM with a keynote. The tech industry is buzzing with rumors about potential upgrades to the hardware and software that Apple so fastidiously builds. This means that, here at Raizlabs, we’re getting excited for the announcements to come. […]

Read More

Introducing Anchorage: Readable Auto Layout Code for iOS

Auto Layout is a declarative layout engine introduced in iOS 6 to allow developers to create adaptive UI that looks good on any device. Its release coincided with the arrival of the 4-inch screen, the first with different dimensions since the original iPhone. The importance of an adaptive interface has only increased with the release […]

Read More