https://github.com/Cosmo/TinyConsole
TinyConsoleA tiny log console to display information while using your iOS app.
Written in Swift 3.
一个小型日志控制台,论文,可在使用iOS应用程序时显示信息。
UsageCreate a TinyConsoleController-Instance and pass your App-ViewController as a rootViewController parameter.
TinyConsoleController(rootViewController: MyMainViewController())ActionsTinyConsole.shared.print(text: 'hello') TinyConsole.shared.addMarker() TinyConsole.shared.clear()Gestures 操作步骤Swipe from Left to Right: Add marker
从左到右滑动:“添加标记”
2 Finger Tap: Add custom log entry
2个手指点击:“添加自定义日志条目”
3 Finger Tap: Show Action Sheet to Clear Console and Send Mail
3手指点击:显示操作菜单为`清除控制台'和'发送邮件'
Shake to toggle the console view. If you’re using the Simulator, press ⌃ ctrl-⌘ cmd-z.
Implementation ExampleInstead of
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { self.window = UIWindow(frame: UIScreen.main.bounds) self.window?.rootViewController = MainViewController() self.window?.makeKeyAndVisible() return true }write
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { self.window = UIWindow(frame: UIScreen.main.bounds) self.window?.rootViewController = TinyConsoleController(rootViewController: MainViewController()) self.window?.makeKeyAndVisible() return true }or checkout the example project included in this repository.
DemoInstallationCarthageAdd this to your Cartfile:
github 'Cosmo/TinyConsole'ManuallyJust drag the source files into your project.
Hierarchy 项目结构层次ContactDevran "Cosmo" Uenal
Twitter: @maccosmo
,开题报告