Skip to content

Commit

Permalink
修改目录结构
Browse files Browse the repository at this point in the history
  • Loading branch information
Delyer committed Nov 19, 2016
1 parent 559347e commit 756c527
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion JYCarousel.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Pod::Spec.new do |s|
s.author = { "Delyer" => "[email protected]" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/Delyer/JYCarousel.git", :tag => s.version }
s.source_files = "JYCarousel", "JYCarousel/JYCarousel/*.{h,m}"
s.source_files = "JYCarousel/JYCarousel/*.{h,m}"
s.framework = "UIKit", "Foundation"

end
22 changes: 15 additions & 7 deletions JYCarousel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* Begin PBXBuildFile section */
A30184151DDE6A6F00AC8F13 /* JYCarouselAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = A30184141DDE6A6F00AC8F13 /* JYCarouselAnimation.m */; };
A30184181DDEAD4000AC8F13 /* JYWeakTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = A30184171DDEAD4000AC8F13 /* JYWeakTimer.m */; };
A30184771DDFDE5700AC8F13 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A30184761DDFDE5700AC8F13 /* AppDelegate.m */; };
A329E9581DDFED81003D312B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A329E9571DDFED81003D312B /* AppDelegate.m */; };
A33B0F7F1DDA887400D85447 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A33B0F7E1DDA887400D85447 /* main.m */; };
A33B0F851DDA887400D85447 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A33B0F841DDA887400D85447 /* ViewController.m */; };
A33B0F8A1DDA887400D85447 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A33B0F891DDA887400D85447 /* Assets.xcassets */; };
Expand Down Expand Up @@ -48,8 +48,8 @@
A30184141DDE6A6F00AC8F13 /* JYCarouselAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JYCarouselAnimation.m; sourceTree = "<group>"; };
A30184161DDEAD4000AC8F13 /* JYWeakTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JYWeakTimer.h; sourceTree = "<group>"; };
A30184171DDEAD4000AC8F13 /* JYWeakTimer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JYWeakTimer.m; sourceTree = "<group>"; };
A30184751DDFDE5700AC8F13 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
A30184761DDFDE5700AC8F13 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
A329E9561DDFED81003D312B /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
A329E9571DDFED81003D312B /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
A33B0F7A1DDA887400D85447 /* JYCarousel.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JYCarousel.app; sourceTree = BUILT_PRODUCTS_DIR; };
A33B0F7E1DDA887400D85447 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A33B0F831DDA887400D85447 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -105,6 +105,15 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
A329E9551DDFED81003D312B /* App */ = {
isa = PBXGroup;
children = (
A329E9561DDFED81003D312B /* AppDelegate.h */,
A329E9571DDFED81003D312B /* AppDelegate.m */,
);
path = App;
sourceTree = "<group>";
};
A33B0F711DDA887400D85447 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -134,9 +143,7 @@
A33B0FB01DDA894F00D85447 /* ViewController.xib */,
A35554A31DDE53C400418BE6 /* SubViewController.h */,
A35554A41DDE53C400418BE6 /* SubViewController.m */,
A30184751DDFDE5700AC8F13 /* AppDelegate.h */,
A30184761DDFDE5700AC8F13 /* AppDelegate.m */,
A33B0F7E1DDA887400D85447 /* main.m */,
A329E9551DDFED81003D312B /* App */,
A33B0FB71DDA8A5A00D85447 /* Resoure(资源) */,
A33B0F7D1DDA887400D85447 /* Supporting Files */,
);
Expand All @@ -146,6 +153,7 @@
A33B0F7D1DDA887400D85447 /* Supporting Files */ = {
isa = PBXGroup;
children = (
A33B0F7E1DDA887400D85447 /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
Expand Down Expand Up @@ -342,7 +350,7 @@
A33B0FBD1DDA904000D85447 /* JYCarousel.m in Sources */,
A355549F1DDE336B00418BE6 /* UIImageView+JYImageViewManager.m in Sources */,
A35554A51DDE53C400418BE6 /* SubViewController.m in Sources */,
A30184771DDFDE5700AC8F13 /* AppDelegate.m in Sources */,
A329E9581DDFED81003D312B /* AppDelegate.m in Sources */,
A343A4C61DDD04540008192B /* JYPageControl.m in Sources */,
A35554A21DDE338C00418BE6 /* JYImageCache.m in Sources */,
A33B0FBA1DDA8BFF00D85447 /* JYConfiguration.m in Sources */,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion JYCarousel/ViewController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="dqT-3M-Xgk" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="RqX-TX-0dc"/>
<constraint firstAttribute="bottom" secondItem="dqT-3M-Xgk" secondAttribute="bottom" constant="50" id="iUR-qs-pRN"/>
<constraint firstItem="dqT-3M-Xgk" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="100" id="oYf-tr-MmC"/>
</constraints>
</view>
</objects>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**开源库简介:** 这是一个使用起来非常简单的开源轮播库,自带下载和缓存,不会造成循环引用,不用考虑定时器不会销毁(我都已经帮你做好了)。


![](https://github.com/Delyer/JYCarousel/raw/master/JYCarouselIcon.png)
![](https://github.com/Delyer/JYCarousel/raw/master/JYCarouselImage/JYCarouselIcon.png)


## **1. 轮播基本原理**
Expand All @@ -17,7 +17,7 @@
比如三张图A、B、C。要做的scrollview实际上应该是五张的大小顺序是C、A、B、C、A。初始偏移量设置到第二张,监听scrollview滑动事件。判断偏移量。当偏移量在第一张时将偏移量修改到第四张,当偏移量在第五张时将偏移量调整到第二章。这样在循环时比较流畅,才能无缝无限循环滚动


![](https://github.com/Delyer/JYCarousel/raw/master/JYCarouselAnimation.gif)
![](https://github.com/Delyer/JYCarousel/raw/master/JYCarouselImage/JYCarouselAnimation.gif)


## **2. 轮播的特性**
Expand Down Expand Up @@ -59,7 +59,7 @@
- **JYCarouselAnimation**
- 作用:轮播翻页的效果动画

![](https://github.com/Delyer/JYCarousel/raw/master/JYCarouselStruct.png)
![](https://github.com/Delyer/JYCarousel/raw/master/JYCarouselImage/JYCarouselStruct.png)

## **4. 轮播组件的使用**

Expand Down

0 comments on commit 756c527

Please sign in to comment.