github下載地址:https://github.com/nicklockwood/iConsole
偶然看到的一個iOS及時log日志查看工具,通過該工具,我們可以在任何想看日志的時候,通過手勢呼出log日志頁,查看app的crash信息或者其他信息。另外,也可以通過查看代碼的實現方式,學習在window中,響應手勢,這樣不管我們進入什麼頁面,都能呼出iConsole的頁面。
希望通過此工具,對各位與iOS有關的朋友提供幫助。
iConsole is a simple, pluggable class to enable more useful in-app logging for your iPhone apps. It enables you to check error and crash logs within a built application without needing to connect to the Xcode debugger. It also allows non-technical beta testers of your applications to submit log information to you easily.
iConsole also serves another purpose: Using the command interface it provides an easy way to add debugging commands and let you toggle application features on and off at runtime in a way that can be easily disabled in the final release of your app, and doesn't require you to build additional throwaway user interface components.