diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..db8b9259 Binary files /dev/null and b/.DS_Store differ diff --git a/Pods/Pods.xcodeproj/xcuserdata/kayak.xcuserdatad/xcschemes/xcschememanagement.plist b/Pods/Pods.xcodeproj/xcuserdata/kayak.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..7066051a --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/kayak.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SchemeUserState + + Pods-SDCycleScrollView.xcscheme_^#shared#^_ + + orderHint + 1 + + SDWebImage.xcscheme_^#shared#^_ + + orderHint + 2 + + + + diff --git a/SDCycleScrollView.xcodeproj/xcuserdata/kayak.xcuserdatad/xcschemes/xcschememanagement.plist b/SDCycleScrollView.xcodeproj/xcuserdata/kayak.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..2523af60 --- /dev/null +++ b/SDCycleScrollView.xcodeproj/xcuserdata/kayak.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + SDCycleScrollView.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/SDCycleScrollView.xcworkspace/xcuserdata/kayak.xcuserdatad/UserInterfaceState.xcuserstate b/SDCycleScrollView.xcworkspace/xcuserdata/kayak.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 00000000..9a9e5cfc Binary files /dev/null and b/SDCycleScrollView.xcworkspace/xcuserdata/kayak.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m b/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m index 68741e88..f7307a4b 100644 --- a/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m +++ b/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.m @@ -317,7 +317,9 @@ - (void)setImagePathsGroup:(NSArray *)imagePathsGroup - (void)setImageURLStringsGroup:(NSArray *)imageURLStringsGroup { _imageURLStringsGroup = imageURLStringsGroup; - + if(imageURLStringsGroup.count<=1){ + self.infiniteLoop = NO; + } NSMutableArray *temp = [NSMutableArray new]; [_imageURLStringsGroup enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) { NSString *urlString;