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
- Host: GitHub
- URL: https://github.com/sfmdev/appledebugtool
- Owner: sfmDev
- License: mit
- Created: 2017-05-28T01:54:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T02:29:58.000Z (about 9 years ago)
- Last Synced: 2025-02-27T11:49:56.494Z (over 1 year ago)
- Language: Swift
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# AppleDebugTool
此工具是苹果私有的Debug 调试工具,idea 来自[链接](http://ryanipete.com/blog/ios/swift/objective-c/uidebugginginformationoverlay/)
>警告
> 此工具仅限于 Debug 阶段使用,在上线时最好移除,因为可能调用私有API而导致审核无法通过.
## ScreenShots

## 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.