Support iOS 6

I saw no reason for this to be iOS 7 only, so I extended this to be usable in iOS 6.