Archive | iOS

Swift – Google Analytics

I really wanted a simple way to add Google Analytics to my iOS (swift) app without subclassing the way they recommend. Swift makes this easy with Extensions. All you have to do add GA to your swift app (I highly recommend using cocoapods) and add this extension to your code base. Extensions are essentially a […]

Continue Reading 0
kickstarter

Creating the bouncy/zoom image effect in the KickStarter iOS app

The KickStarter iOS app is pretty awesome. In particular, I like the bounce/zoom effect they have when you pull down on a UITableView. Turns out, it’s pretty easy to replicate. Since UITableView inherits from UIScrollView, we can simply implement the scrollViewDidScroll delegate method and detect when a scroll happens. From there, we just scale the […]

Continue Reading 2

iOS tip: Center UILabel in tableFooterView

If you’re building an app that supports portrait and landscape you will probably run into an issue with keeping things centered after device rotation. Below is a quick example of adding a UILabel to a UITableView’s footer and keeping it centered regardless of device rotation. The trick is to use autoresizingMask which does all the […]

Continue Reading 3
SDWebImages-Tut-0

SDWebImage fixed width cell images

While looking for a easy solution to load uitableview images remotely, I came across a great library called SDWebImage. It’s very simple to use and provides a lot of flexibility for loading and caching images in your iOS project. As I started to use it, I ran into a issue when loading inconsistant thumbnail image […]

Continue Reading 16

Powered by WordPress. Designed by Woo Themes