问题
How to test the type of an Objective-c Object ? something similar to is
with TObject? To cast we have wrap
but I don't find how to test
回答1:
I remembered that I'm actually using object_getClass in my own code :-)
This is an example from DW.Notifications.iOS.pas :
if request.trigger.isKindOfClass(objc_getClass('UNPushNotificationTrigger')) then
来源:https://stackoverflow.com/questions/59070640/how-to-test-the-type-of-an-objective-c-object-something-similar-to-is-with-obj