开发者

Getting information about a class with NSLog

开发者 https://www.devze.com 2023-01-18 13:50 出处:网络
When I first started learning XCode I remember hearing something about how it has cool features to inspect an object and get information about its class. Now I need to use these 开发者_StackOverflow中

When I first started learning XCode I remember hearing something about how it has cool features to inspect an object and get information about its class. Now I need to use these 开发者_StackOverflow中文版cool features. How can I use NSLog to get class information about an object and other cool information about an object.


You should use the XCode Debugger! NSLog isn't meant for such tasks.

If you're a registered Apple Developer there're several free WWDC 2010 Videos that gives you a pretty good introduction into iPhone App Debugging.

And for your information: Apple doesn't allow any NSLog Output in App Store (Production) Apps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号