This is iOS8 API backport to iOS7.
- backport useful features from iOS8 to iOS7 to simplify transition for developers without using any private API.
- backport should behave 100% same way on iOS7 as on iOS8 from developers and users perspective. For example it is ok to add implementation of
-[CLLocationManager requestWhenInUseAuthorization]
that does nothing on iOS7. - on iOS8 back ported API shouldn't have any effect on system - default iOS implementation should be used.
Not all users will update to iOS8 and developer life is hard enaugh :)
Add project as library, setup Build Phases
, add -ObjC
to Other Linker Flags
UIKit | |
---|---|
UILabel automatic preferred max layout width | Done. |
CLLocationManager | |
-[CLLocationManager requestWhenInUseAuthorization] | Done. |
-[CLLocationManager requestAlwaysAuthorization] | Done. |
LAContext | |
you will have to use: LAContext *context = [[NSClassFromString(@"LAContext") alloc] init]; instead of: LAContext *context = [[LAContext alloc] init]; |
|
-[LAContext setLocalizedFallbackTitle:] | Done. |
-[LAContext localizedFallbackTitle] | Done. |
-[LAContext canEvaluatePolicy:error:] | Done. |
-[LAContext evaluatePolicy:localizedReason:reply:] | Done. |
If you supporting iOS6
check out RRiOS7Backport
If you supporting iOS5
check out RRContainerView and RRBaseInternationalization