且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何测试Objective-c对象的类型?与对象类似的东西吗?

更新时间:2023-11-28 23:38:46

我记得我实际上在自己的代码中使用object_getClass:-)

I remembered that I'm actually using object_getClass in my own code :-)

这是来自 DW的示例.Notifications.iOS.pas :

if request.trigger.isKindOfClass(objc_getClass('UNPushNotificationTrigger')) then