Awesome
NBUKit
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 inNSBundle
and handle file URLs withNSFileManager
. - Check properties, retrieve common application directories and save/retrieve values from
NSUserDefaults
andKeychanin
withUIApplication
. - 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 betweenUIButton
andUIBarButtonItem
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
andNBUAlertView
. NBUBadgeView
andNBUBadgeSegmentedControl
.- Block-based
NBUMailComposeViewController
that can be initialized with amailto:
URL. - Interface Builder-focused
NBURefreshControl
. NBUTabBarController
with customizable position andUITabBar
.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.