iOS 5 support is reason behind checking if UIImage responds to UIImage [imageWithData:scale:](imageWithData:scale:). That method was added in iOS 6.