pinkstone.co.uk
How to test which class presented a UIViewController
The NSObject class has an interesting method called isKindOfClass. As the name suggests it lets you test what kind of class it belongs to. As everything we use inherits from NSObject, this method i…