iOS-NBUKit
iOS-NBUKit copied to clipboard
UIKit and NSFoundation convenience categories and subclasses.
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
NSArrayobjets, support subbundles inNSBundleand handle file URLs withNSFileManager. - Check properties, retrieve common application directories and save/retrieve values from
NSUserDefaultsandKeychaninwithUIApplication. - 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. UIButtonprotocol to freely switch betweenUIButtonandUIBarButtonItemobjects.- Adjust orientation, crop, resize, flatten, write and read
UIImageobjects. - Scroll a
UIScrollViewto any edge with/without animation. - Retrieve/change system UserAgent, fire JavaScript events and get the HTML title from
UIWebViewobjects. - 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
UINavigationControllerobjects.
UIKit Subclasses
- Block-based
NBUActionSheetandNBUAlertView. NBUBadgeViewandNBUBadgeSegmentedControl.- Block-based
NBUMailComposeViewControllerthat can be initialized with amailto:URL. - Interface Builder-focused
NBURefreshControl. NBUTabBarControllerwith customizable position andUITabBar.NBUViewwith commonInit, and view controller-like view will/did appear/disappear methods.NBUViewControllerwith 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.