Correct usage of deployment target.
Different way for checking current version as well as ignoring deprecation warnings for iOS 6 only stuff.