Class extensions for some UIKit classes on iOS to support blocks instead of delegation.