如何测试 Objective-c 对象的类型?与 Object 类似的东西?
How to test the type of an Objective-c Object ? something similar to is with Object?
如何测试 Objective-c 对象 的类型?类似于 is
和 TObject 的东西?要进行转换,我们有 wrap
但我找不到如何测试
我记得我实际上在自己的代码中使用了 object_getClass:-)
这是来自 DW.Notifications.iOS.pas 的示例:
if request.trigger.isKindOfClass(objc_getClass('UNPushNotificationTrigger')) then
如何测试 Objective-c 对象 的类型?类似于 is
和 TObject 的东西?要进行转换,我们有 wrap
但我找不到如何测试
我记得我实际上在自己的代码中使用了 object_getClass:-)
这是来自 DW.Notifications.iOS.pas 的示例:
if request.trigger.isKindOfClass(objc_getClass('UNPushNotificationTrigger')) then