[iOS11] Update project settings and fix errors (#676)

* [iOS11] Update project settings and fix errors

* update changelog

* resolve comments
This commit is contained in:
Erekle
2017-11-30 16:25:06 +04:00
committed by Huy Nguyen
parent 324288455f
commit d8cda8d74a
16 changed files with 162 additions and 66 deletions

View File

@@ -273,7 +273,7 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
// Experiments done by Instagram show that this option being YES (default)
// when unused causes a significant hit to scroll performance.
// https://github.com/Instagram/IGListKit/issues/318
if (AS_AT_LEAST_IOS10) {
if (AS_AVAILABLE_IOS(10)) {
super.prefetchingEnabled = NO;
}
@@ -1972,7 +1972,7 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
/// The UIKit version of this method is only available on iOS >= 9
- (NSArray<NSIndexPath *> *)asdk_indexPathsForVisibleSupplementaryElementsOfKind:(NSString *)kind
{
if (NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_9_0) {
if (AS_AVAILABLE_IOS(9)) {
return [self indexPathsForVisibleSupplementaryElementsOfKind:kind];
}