An open API service indexing awesome lists of open source software.

https://github.com/sfmdev/appledebugtool

Apple debugTool from UIKit
https://github.com/sfmdev/appledebugtool

Last synced: about 1 month ago
JSON representation

Apple debugTool from UIKit

Awesome Lists containing this project

README

          

# AppleDebugTool

此工具是苹果私有的Debug 调试工具,idea 来自[链接](http://ryanipete.com/blog/ios/swift/objective-c/uidebugginginformationoverlay/)

>警告
> 此工具仅限于 Debug 阶段使用,在上线时最好移除,因为可能调用私有API而导致审核无法通过.

## ScreenShots

![](./_image/WechatIMG13-2.jpeg)

## Example usage
* 添加 AppleDebugTool 到项目中
* 在 Appdelegate的didFinishLaunchingWithOptions中添加
```
AppleDebugTool.shared.show()
AppleDebugTool.shared.debugToolsPos = .topLeft
```
* 在 Appdelegate 中添加方法:
```
override func touchesBegan(_ touches: Set, with event: UIEvent?) {
let location = ((event?.allTouches! as NSSet!).anyObject() as? UITouch)?.location(in: self.window)
if UIApplication.shared.statusBarFrame.contains(location!) {
AppleDebugTool.shared.debugBtnTapped()
}
}
```
## Realease log
* 17.05.28 -- first commit

## To Do
* Cocoapods 支持
* 移除 touchBegan方法,让使用更加简单

## License

AppleDebugTool is available under the MIT license. See the LICENSE file for more info.