diff --git a/GMGridView/GMGridView.m b/GMGridView/GMGridView.m index 8e25799..c26877f 100644 --- a/GMGridView/GMGridView.m +++ b/GMGridView/GMGridView.m @@ -296,7 +296,7 @@ - (void)layoutSubviews if (_rotationActive) { - _rotationActive = NO; + _rotationActive = NO; // Updating all the items size @@ -1341,12 +1341,6 @@ - (void)loadRequiredItems { NSRange rangeOfPositions = [self.layoutStrategy rangeOfPositionsInBoundsFromOffset: self.contentOffset]; NSRange loadedPositionsRange = NSMakeRange(self.firstPositionLoaded, self.lastPositionLoaded - self.firstPositionLoaded); - - if ((self.firstPositionLoaded != GMGV_INVALID_POSITION) && - (self.lastPositionLoaded != GMGV_INVALID_POSITION) && - NSEqualRanges(rangeOfPositions, loadedPositionsRange) ) { - return; // No need to load anything... - } // calculate new position range self.firstPositionLoaded = self.firstPositionLoaded == GMGV_INVALID_POSITION ? rangeOfPositions.location : MIN(self.firstPositionLoaded, (NSInteger)rangeOfPositions.location); diff --git a/GMGridView/GMGridView.xcodeproj/project.pbxproj b/GMGridView/GMGridView.xcodeproj/project.pbxproj index e8399ed..d2fb491 100644 --- a/GMGridView/GMGridView.xcodeproj/project.pbxproj +++ b/GMGridView/GMGridView.xcodeproj/project.pbxproj @@ -212,6 +212,7 @@ "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_THUMB_SUPPORT = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; @@ -233,6 +234,7 @@ CLANG_ENABLE_OBJC_ARC = YES; COPY_PHASE_STRIP = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_THUMB_SUPPORT = NO; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; @@ -248,6 +250,7 @@ buildSettings = { DSTROOT = /tmp/GMGridView.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_THUMB_SUPPORT = NO; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -259,6 +262,7 @@ buildSettings = { DSTROOT = /tmp/GMGridView.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_THUMB_SUPPORT = NO; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES;