Getting information about a class with NSLog
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.
精彩评论