adapts standard IOS UI callbacks to objective-c blocks