How to fix performance problems when using NSDateFormatter

Unfortunately the majority of web services return dates in the ISO-8601 format and not in time interval. So to parse the date we end up using NSDateFormatter which is extremely slow at doing that.

But there is a way for you to improve date parsing performance, you can use the SQLite library to make the conversion. You may have to write a few more lines to get the same result, but the performance gain is totally worth it.

Let's take

Read more

iOS app versioning with git tag

Wouldn't it be great if your iOS or OS X projects just take their version and build number automatically from git? Well, it can!

Using a script in your build phase, you can run a shell script to determine the version number and inject this into the Info.plist of a build.

It will change your plist based on the last git tag that you have. If that is the current SHA it will show the version as 0.9.

Read more