メモ。
// objectという名前のクラス不明のオブジェクトがあるとき
NSString * className = NSStringFromClass([object class]);
NSLog(@"クラス名は %@", className);
参照元こちら。
http://program.station.ez-net.jp/special/handbook/objective-c/id/instanse.asp
More than 5 years have passed since last update.
メモ。
// objectという名前のクラス不明のオブジェクトがあるとき
NSString * className = NSStringFromClass([object class]);
NSLog(@"クラス名は %@", className);
参照元こちら。
http://program.station.ez-net.jp/special/handbook/objective-c/id/instanse.asp
Register as a new user and use Qiita more conveniently