Skip to content

himaratsu/StatusBarKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StatusBarKit

Version License Platform

Customize your status bar like iOS 9.

「◀︎Back to Safari」 and 「apple.com▶︎」

Usage

import StatusBarKit
override func viewDidLoad() {
    super.viewDidLoad()

    let parameter = StatusViewParameter()
    parameter.leftItem = StatusViewItem(title: "◀︎Back to Safari") {
        UIApplication.sharedApplication().openURL(NSURL(string: "http://yahoo.co.jp")!)
    }
    parameter.rightItem = StatusViewItem(title: "apple.com▶︎") {
        UIApplication.sharedApplication().openURL(NSURL(string: "http://apple.com")!)
    }
    parameter.backgroundColor = navigationController?.navigationBar.barTintColor
    parameter.textColor = UIColor.whiteColor()
        
    StatusViewManager.show(parameter)
}

Try StatusBarKit

To try StatusBarKit, open Terminal.app and enter the following command:

pod try StatusBarKit

Installation

CocoaPods

StatusBarKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "StatusBarKit"

Manually

Just add the Pod/Classes folder to your project.

Requirements

  • iOS 8 and later

License

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