Supports accessory view. Update code with some block support, and use NSFoundationVersionNumber for iOS 7 specific checks.