Latest 0.1
Homepage https://github.com/cianiandreadev/ACStatusBar
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, MapKit
Authors

[![CI Status](http://img.shields.io/travis/Andrea Ciani/ACStatusBar.svg?style=flat)](https://travis-ci.org/Andrea Ciani/ACStatusBar)
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Screenshots

Screenshot 1
Screenshot 2

What is it

ACStatusBar is a Objective-C status bar for iOS >8. It focus on simplicity and compatibility.

It is compatible with all iPhone and iPad, all orientations by using constrains. ACStatusBar has two status:

  • The normal status (with blur effect)
  • The highlighted status (with customisable color)

Requirements

This StatusBar doesn’t require particular frameworks except the Apple Foundation and UIKit.

How to use it

You can use both Interface Builder (by subclassing a UIVisualEffectView ) or with the standard initWithFrame method.

Once you have your istance you can set basic parameters such as the placeholder string or the auxiliary button title (see the demo application)

An example is the following

    NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc]initWithString:@"This is a " attributes:nil];
    NSDictionary *attributes = @{[UIFont boldSystemFontOfSize:8]:NSFontAttributeName,[UIColor lightGrayColor]:NSForegroundColorAttributeName};
    [placeholder appendAttributedString:[[NSAttributedString alloc]initWithString:@"placeholder" attributes:attributes]];
    self.ibInfoBar.placeholderString = placeholder;

    [self.ibInfoBar.auxiliaryButton setTitle:@"Push me" forState:UIControlStateNormal];
    [self.ibInfoBar setAuxiliaryButtonColor:[UIColor greenColor]];

    self.ibInfoBar.auxiliaryButtonPressed = ^{
        NSLog(@"Button pressed");
    };

Installation

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

pod "ACStatusBar"

Author

Andrea Ciani, www.cianiandrea.it

License

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

Latest podspec

{
    "name": "ACStatusBar",
    "version": "0.1",
    "summary": "ACStatusBar is a Objective-C status bar for iOS >8",
    "description": "                       ACStatusBar is a Objective-C status bar for iOS >8. It focus on simplicity and compatibility. It is compatible with all iPhone and iPad, all orientations by using constrains.nn                       * Markdown format.n                       * Don't worry about the indent, we strip it!n",
    "homepage": "https://github.com/cianiandreadev/ACStatusBar",
    "license": "MIT",
    "authors": {
        "Andrea Ciani": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cianiandreadev/ACStatusBar.git",
        "tag": "0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "ACStatusBar": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "MapKit"
    ]
}

Pin It on Pinterest

Share This