在iphone应用程序中登录调试信息的最佳方法是什么?

编程入门 行业动态 更新时间:2024-10-12 14:26:48
本文介绍了在iphone应用程序中登录调试信息的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 有没有一些标准的方法,或有人写的东西,允许您记录一个消息,并将其显示在iPhone屏幕上的小滚动部分或iPhone模拟器中的单独窗口中?

更新:对于像我这样不知道的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应用程序中登录调试信息的最佳方法是什么?

本文发布于:2023-11-07 10:30:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566217.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   方法   信息   iphone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!