Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ca-archived/ios-nbucore
Convenience macros, functions and API availability checks for iOS projects.
https://github.com/ca-archived/ios-nbucore
ios macros objective-c
Last synced: 3 months ago
JSON representation
Convenience macros, functions and API availability checks for iOS projects.
- Host: GitHub
- URL: https://github.com/ca-archived/ios-nbucore
- Owner: ca-archived
- License: apache-2.0
- Created: 2012-12-07T02:06:45.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T15:57:57.000Z (over 7 years ago)
- Last Synced: 2024-10-19T08:28:18.244Z (4 months ago)
- Topics: ios, macros, objective-c
- Language: Objective-C
- Homepage: http://cyberagent.github.io/iOS-NBUCore
- Size: 11.6 MB
- Stars: 115
- Watchers: 16
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NBUCore
=======[![Platform: iOS](https://img.shields.io/cocoapods/p/NBUCore.svg?style=flat)](http://cocoadocs.org/docsets/NBUCore/)
[![Version: 2.1.0](https://img.shields.io/cocoapods/v/NBUCore.svg?style=flat)](http://cocoadocs.org/docsets/NBUCore/)
[![License: Apache 2.0](https://img.shields.io/cocoapods/l/NBUCore.svg?style=flat)](http://cocoadocs.org/docsets/NBUCore/)
[![Dependency Status](https://www.versioneye.com/objective-c/NBUCore/badge.svg?style=flat)](https://www.versioneye.com/objective-c/NBUCore)
[![Build Status](http://img.shields.io/travis/CyberAgent/iOS-NBUCore/master.svg?style=flat)](https://travis-ci.org/CyberAgent/iOS-NBUCore)Convenience macros, functions and API availability checks for iOS projects.
_[NBULog](https://github.com/CyberAgent/NBULog) and [NBUKit](https://github.com/CyberAgent/iOS-NBUKit)'s Additions used to be part of NBUCore._
## Features
### Macros and Functions
Macros to detect system versions, device idioms, widescreen devices, etc.
Functions to handle/transform `UIInterfaceOrientation`s/`UIDeviceOrientation`s, etc.
### Availability
Temporarily make Xcode warn you when using new API calls that may crash on older devices.
```obj-c
// E.g. check for API that may crash on iOS 9.x devices.
#define __IPHONE_OS_VERSION_SOFT_MAX_REQUIRED __IPHONE_9_0
#import```
## Installation
Simply add `pod 'NBUCore'` to your [CocoaPods](http://cocoapods.org)' [Podfile](http://guides.cocoapods.org/syntax/podfile.html).
## Documentation
http://cocoadocs.org/docsets/NBUCore/
## 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 athttp://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.