What is Selector in Xamarin.iOS?

Technology CommunityCategory: XamarinWhat is Selector in Xamarin.iOS?
VietMX Staff asked 3 years ago

Xamarin.iOS applications run within the Mono execution environment, and use full Ahead of Time (AOT) compilation to compile C# code to ARM assembly language. This runs side-by-side with the Objective-C Runtime. Both runtime environments run on top of a UNIX-like kernel, specifically XNU, and expose various APIs to the user code allowing developers to access the underlying native or managed system.

The Objective-C language is based upon selectors. A selector is a message which is sent to an object or class. With Objective-C this is done via the objc_msgSend functions. Xamarin.iOS maps instance selectors to instance methods, and class selectors to static methods.