All Projects → Liaoworking → Ghconsole

Liaoworking / Ghconsole

Licence: mit
An elegant and easy way to show a console in your app. 一种优雅简单的方式在app中显示控制台。

Projects that are alternatives of or similar to Ghconsole

Jiramobilekit
JIRA Mobile Kit a framework for raising bugs within your app including screenshots easily. JIRA Bug Raising written in Swift. iOS JIRA SDK Swift 3-4
Stars: ✭ 33 (-91.97%)
Mutual labels:  iphone, cocoapods
Hackers
Hackers is an elegant iOS app for reading Hacker News written in Swift.
Stars: ✭ 513 (+24.82%)
Mutual labels:  iphone, cocoapods
Open Source Ios Apps
📱 Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+6913.63%)
Mutual labels:  iphone, cocoapods
Datepicker
A Date Picker with Calendar for iPhone and iPad Apps.
Stars: ✭ 103 (-74.94%)
Mutual labels:  iphone, cocoapods
Bblocationmanager
A Location Manager for easily implementing location services & geofencing in iOS. Ready for iOS 11.
Stars: ✭ 107 (-73.97%)
Mutual labels:  iphone, cocoapods
Ios
OwnTracks' iPhone App
Stars: ✭ 222 (-45.99%)
Mutual labels:  iphone, cocoapods
Device
Light weight tool for detecting the current device and screen size written in swift.
Stars: ✭ 1,503 (+265.69%)
Mutual labels:  iphone, cocoapods
Chipagecontrol
A set of cool animated page controls written in Swift to replace boring UIPageControl. Mady by @ChiliLabs - https://chililabs.io
Stars: ✭ 2,909 (+607.79%)
Mutual labels:  iphone, cocoapods
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (-4.87%)
Mutual labels:  cocoapods
Autoinch
优雅的iPhone全尺寸/等比例精准适配工具
Stars: ✭ 395 (-3.89%)
Mutual labels:  iphone
Taggerkit
🏷 TaggerKit helps you to quickly implement tags in your UIKit apps, so you can go on and test your idea without having to worry about logic and custom collection layouts.
Stars: ✭ 390 (-5.11%)
Mutual labels:  cocoapods
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-4.87%)
Mutual labels:  cocoapods
Imagebutter
Makes dealing with images buttery smooth.
Stars: ✭ 395 (-3.89%)
Mutual labels:  cocoapods
Iosdropdown
Drop Down Menu for iOS With Search And Other Awesome Customisation
Stars: ✭ 390 (-5.11%)
Mutual labels:  cocoapods
Viperit
Viper Framework for iOS using Swift
Stars: ✭ 404 (-1.7%)
Mutual labels:  cocoapods
Gugujiankong
Ionic App for website online monitor / website test speed / website SEO
Stars: ✭ 386 (-6.08%)
Mutual labels:  iphone
Pysearch
🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
Stars: ✭ 3,816 (+828.47%)
Mutual labels:  cocoapods
Gradientcircularprogress
Customizable progress indicator library in Swift
Stars: ✭ 407 (-0.97%)
Mutual labels:  cocoapods
Alis
Arch Linux Install Script (or alis) installs unattended, automated and customized Arch Linux system.
Stars: ✭ 400 (-2.68%)
Mutual labels:  console
Acknowlist
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.
Stars: ✭ 392 (-4.62%)
Mutual labels:  cocoapods

Alt text

GHConsole

中文版本请参看这里

An easy and wireless way to get what you had logged and wanted to see in your App.

GHConsole/Swift

Swift Version Swift Version Plaform License MIT

Alt text

Installation

Simply add GHConsole folder with files to your project.

Usage example

Simply start GHConsole in your App. GHConsole view will be added above the key window as a view.

You can find example projects here

Start Log on GHConsole

You just only initialize GHConsole in your appDelegate.m When your App are launching. Objective-C usage

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
   [[GHConsole sharedConsole]startPrintLog];
    return YES;
}

Swift usage

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        GHConsole.sharedConsole.startPrintLog()
        return true
    }

And then, you can use GGLog( ) like NSLog( )

Objective-C usage

GGLog(@"This is some log I just want to show in GHConsole");



  NSDictionary *parameterDict = @{@"paraKey1":@"paraValue1",
                                    @"paraKey2":@"paraValue2",
                                    @"paraKey3":@"paraValue2"
                                    }
GGLog(@"%@",parametersDict);

//if you  want to see the responsJSon from the API, you can just use GGLog( ) like NSLog( ) here.
GGLog(@"%@",responsJSON);

Swift usage

GGLog("This is a log I just want to show in GHConsole")
        
let parameterDict = ["paraKey1":"paraValue1","paraKey2":"paraValue2","paraKey3":"paraValue3"] as [String:Any]
GGLog("\(parameterDict)")
        
//if you  want to see the responsJSon from the API, you can just use GGLog( ) like NSLog( ) here.
GGLog("if you  want to see the responsJSon from the API, you can just use GGLog( ) like NSLog( ) here!")

When you double tap The GHConsole in your app and then the appearance of it just like this. Alt text

Stop Logging

Call when you're done with GHConsole.

Objective-C usage

[GHConsole shareConsole]stop];

Swift usage

GHConsole.sharedConsole.stopPrinting()

if you don't want to see the GHConsole,you just need to annotate it.

//[[GHConsole sharedConsole]startPrintLog];

Performance

GHConsole is based on printf in C. Better performance to NSLog.

The time consuming of printing a string for 10000 times

Alt text

Testing Environment: iPhone 6

System Version: iOS 11.2.5

Unit of Time : ms

Features

  • GHConsole is at an inconspicuous position in your app.Multiple gesture was added in GHConsole. double tap to make it Full Screen and back.

  • This framework only contains two files

    GHConsole.h

    GHConsole.m

  • Easy to use and uninstall.

  • you can see the number of the line for your GGLog( ) and function name clearly in GHConslole.

  • A clear button on GHConsole can remove some useless log.

  • A save button and load button can save the log, and read the log you have saved. It's easy to check the problem in your apps.

  • At release mode, there will be no more any log output in your console.

  • absolutely thread safe.

Configuration

Sorry. The GHConsole is too easy to have any configuration. If you have any good idea or demand you can tell me at my github or email.

Requirements

  • iOS 7.0+

Contributors List:

zhoushaowen - https://github.com/zhoushaowen

Kane - https://github.com/KaneLanF

Meta

Liao Guanghui - Blog - FB

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].