How to override a function of an Ios ObjC class?


I have this class :

UIViewController = interface(UIResponder)
function supportedInterfaceOrientations: NSUInteger; cdecl;
TUIViewController = class(TOCGenericImport<UIViewControllerClass, UIViewController>) end;

And i need to override the function supportedInterfaceOrientations. Something like this under xcode :

class NavigationController: UIViewController {

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return .portrait


How to do this under delphi tokyo ?

Comments are closed.