Tekkaman

导航

 

2013年4月18日

摘要: 【iOS之UIALogger日志系统】 1、UIALogger是AnimationJS中的日志类,内含8个函数。 2、上半部分函数是一个LOG块,LOG块由logStart发起,由logIssue、logFail或logPass结束。 3、下半部分四个函数用于在logStart块中输出日志。logDebug对应“debug”,logMessage对应“message”,logWarning对应“warning”,logError对应"logError"。 4、LOG块结果级别依次是 pass < warning < error。所以如果一个LOG中同时有这3种类 阅读全文
posted @ 2013-04-18 19:31 Tekkaman 阅读(1320) 评论(0) 推荐(0)
 
摘要: 【iOS之AutomationJS】 1、BrowserJS中没有提供JS互相引用的机制,只能通过HTML元素<script>来互相引用。 2、NodeJS中提供了require机制来互相引用。 3、在iOS AutomationJS中,提供了#import 命令来实现互相引用。 阅读全文
posted @ 2013-04-18 18:00 Tekkaman 阅读(642) 评论(0) 推荐(0)
 
摘要: 【iOS新加速计事件】 1、iOS5.0以前,可以使用UIAcceleration来监听加速计事件。 2、Bug iOS5.0以后,UIAccelerometerDelegate已经被depreacated,如下: deprecated不是说不能说了,而是意味着在将来版本会删除,所以如果不想更新知识的话,就使用UIAccelerometer吧。更保险的方法是使用一个Timer来检查UIAcceleration,即不依赖于此Delegate回调。 3、针对iOS4.0以上版本,推荐使用CMMotionManager来监听加速计事件。涉及到下面几个方法: 4、其实,CMMotion... 阅读全文
posted @ 2013-04-18 17:06 Tekkaman 阅读(2413) 评论(0) 推荐(0)
 
摘要: 【iOS之Export UIAutomation script】To export a script to a file on disk:Open a script in a trace document.Control-click in the content area to display the contextual menu, as shown inFigure 3-5. Attention: Command+S is used to save the whole template. Only use Ctrl+LeftClick will leads to save the js. 阅读全文
posted @ 2013-04-18 11:32 Tekkaman 阅读(404) 评论(0) 推荐(0)