Screen%20region%202014-09-18%20at%2017.37.07_large

Avishaan Sethi

Fast Logical UIScrollView in Swift

UIScrollView is something that can be very confusing because it uses constraints in a way that they aren't normally used. Because of this there is so much confusion.

Implementing a UIScrollView is actually really easy when you know/do three fundamental things. There is a video I uploaded that walks you through this process UIScrollView Video but incase you forget you can use the following as a reference.

  1. Use a View (let's call it, ContentView) in your ScrollView to keep the layout of . . .

Read More

August 19, 2015

Single(ton) Swiftly

Two design patterns which can be used to implement Singletons in Swift.

The Singleton pattern makes sure only one instance of a given class exists. Usually that single instance is lazily loaded when it is needed. There are a bunch of examples of this built into iOS such as:

NSUserDefaults.standardUserDefaults()
UIApplication.sharedApplication()

I'm not going to tell you when you might need . . .

Read More

Posted in: ios8swift

August 17, 2015

Attributed Strings in Xcode ~6.x with Custom Font

Attributed strings build in the storyboard editor which use a custom font does not render correctly. Here are the steps to get around it.

When setting attributed text in Xcode storyboard editor you will find that any custom font selected will show up in the storyboard, but not when run in the simulator.

Problem

Silvrback blog image

Online people talk about making sure you add your custom fonts to the plist or to make sure you aren't picking a font style that the font . . .

Read More

Posted in: ios8swiftxcode

July 18, 2015

SMS/Text Implementation Examples in iOS8

How various iOS apps implement SMS/Text based sharing. We consider the pros and cons of each.

When a requirement to be able to sms/text users in the address book of the user of an app is necessary there are different implementation methods that we see in various apps.
Here we consider how the user chooses the addresses to include in the sms/text message. We also consider the pros and cons of each option as well as look at a list . . .

Read More

Posted in: ios8requirements

December 03, 2014

Archive