Best way is to check this condition that way 
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1)