更新:对于像我这样不知道的noobs,请使用下面描述的NSLog方法,并确保选择Run-> Console显示控制台。
仍然想知道是否有人写了一个简单的记录器,显示在iphone本身....
解决方案Objective-C(更正确的,真正的)方法是
NSLog );但标准的C方法也可以工作
printf(message);
Is there some standard way or has anyone written something that allows you to log a message and have it be displayed either in a small scrolling section on the iphone screen or in a separate window in the iphone simulator?
Update: For noobs like me and don't know, use the NSLog methods as decribed below and make sure you select Run->Console to display the console.
Would still like to know if anyone has written a simple logger that displays on the iphone itself....
解决方案The Objective-C (more correct, really) method is
NSLog(@"message");But the standard C method will work also
printf("message");
更多推荐
在iphone应用程序中登录调试信息的最佳方法是什么?
发布评论