【发布时间】:2018-12-21 23:11:12
【问题描述】:
我有这门课:
UIViewController = interface(UIResponder)
['{F7A5E372-3F4A-4F25-A2F9-C91D7CB5FC09}']
....
function supportedInterfaceOrientations: NSUInteger; cdecl;
....
end;
TUIViewController = class(TOCGenericImport<UIViewControllerClass, UIViewController>) end;
而且我需要重写函数supportedInterfaceOrientations。在 xcode 下是这样的:
class NavigationController: UIViewController {
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return .portrait
}
}
delphi tokyo下怎么做?
【问题讨论】:
-
UIViewController 是一个接口,而不是一个类。
-
对不起 Dsm,我的错误,我更新了问题...
-
你不重写接口函数,你只是实现它们。
标签: delphi firemonkey