Make example compile and run on iOS 5.x

I made the example compile for iOS 5.x but there are some horrible problems with it (it springs back to the top when you try to scroll down).