Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 3.53 KB

README.md

File metadata and controls

83 lines (58 loc) · 3.53 KB

NBUKit

Platform: iOS Version: 2.5.1 License: Apache 2.0 Dependency Status Build Status

UIKit and NSFoundation convenience categories and subclasses.

Uses NBUCore, supports NBULog.
Image Picker code moved to NBUImagePicker.

Demo

A demo project is included in the repository.

Features

Additions

  • Convenience methods to parse NSArray objets, support subbundles in NSBundle and handle file URLs with NSFileManager.
  • Check properties, retrieve common application directories and save/retrieve values from NSUserDefaults and Keychanin with UIApplication.
  • Programatically send a message through the responder chain with UIResponder.
  • Size/origin setter/getter shortcuts, read-only properties to retrieve a UIView's view, navigation or tab controller.
  • UIButton protocol to freely switch between UIButton and UIBarButtonItem objects.
  • Adjust orientation, crop, resize, flatten, write and read UIImage objects.
  • Scroll a UIScrollView to any edge with/without animation.
  • Retrieve/change system UserAgent, fire JavaScript events and get the HTML title from UIWebView objects.
  • Navigation item IBOutlet and force refresh orientation method for UIViewController's.
  • Show/hide UITabBarController's tab bar.
  • Additional properties, dismiss and pop to view controller and to root controller methods for UINavigationController objects.

UIKit Subclasses

  • Block-based NBUActionSheet and NBUAlertView.
  • NBUBadgeView and NBUBadgeSegmentedControl.
  • Block-based NBUMailComposeViewController that can be initialized with a mailto: URL.
  • Interface Builder-focused NBURefreshControl.
  • NBUTabBarController with customizable position and UITabBar.
  • NBUView with commonInit, and view controller-like view will/did appear/disappear methods.
  • NBUViewController with commonInit and supportedInterfaceOrientations writable property.
  • More...

Installation

For now add the following to your CocoaPods' Podfile:

platform :ios, '8.0'
use_frameworks!

pod 'NBUKit'

# Optional for dynamic logging
pod 'NBULog'

# Optional for on-device log console
pod 'LumberjackConsole'

Documentation

http://cocoadocs.org/docsets/NBUKit/

##License

Copyright (c) 2012-2017 CyberAgent Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. 
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.