UIKit-TechD 0.0.1

UIKit-TechD 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2015

Maintained by Robin Hsu.



  • By
  • Robin Hsu

UIKit-TechD (Categories)

Categories for iOS's UIKit framework.

UIDevice+TechD

you can use this category to easy get platform name and other information of platform of iDevice.

[UIDevice devicePlatform];

[UIDevice isIPhone6Plus];

// ...

Install

download these files or use CocoaPods.

Pods

platform :ios, '7.0'
pod "UIKit-TechD", "~> 0.0.1"

Usage

UIDevice+TechD

  • Because these code always get the device's platform name is 'simulator' during the development, that target device is selected simulator.

    • You can use define 'ENFORCED_SIMULATOR_TO_SIMULATE_IDEVICE' or comment it to enforce on these method's to get information of simulator currently.

    • this define just effect on the 'DEBUG' and 'TARGET_IPHONE_SIMULATOR' have be defined. That's mean when environment is 'release' or 'target is iDevice', this define hasn't any effect.

    • For this defined, you can find these string from the implementation file.

  • And you must update manual these information when Apple Inc. release new device if you need it.

License

UIKit-TechD is released under an MIT License. See LICENSE for details.