Skip to content

Commit dbc805a

Browse files
committed
fix bug.
1 parent c42ba6a commit dbc805a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

KSGuide.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "KSGuide"
19-
s.version = "1.5"
19+
s.version = "1.5.1"
2020
s.summary = "iOS App first start guide."
2121

2222
# This description is used to generate tags and improve search results.
@@ -85,7 +85,7 @@ Pod::Spec.new do |s|
8585
# Supports git, hg, bzr, svn and HTTP.
8686
#
8787

88-
s.source = { :git => "https://github.com/bing6/KSGuide.git", :tag => "1.5" }
88+
s.source = { :git => "https://github.com/bing6/KSGuide.git", :tag => "1.5.1" }
8989

9090

9191
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

KSGuide/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.5</string>
18+
<string>1.5.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1.5</string>
22+
<string>1.5.1</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UILaunchStoryboardName</key>

KSGuide/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ - (void)viewDidLoad {
2929
//设置委托
3030
[[KSGuideManager shared] setDelegate:self];
3131
//设置退出动画效果
32-
[[KSGuideManager shared] setAnimationType:KSGuideAnimationTypeTop];
32+
[[KSGuideManager shared] setAnimationType:KSGuideAnimationTypeFadeOut];
3333
[[KSGuideManager shared] clearMark];
3434
[[KSGuideManager shared] showGuideViewWithImages:paths];
3535

src/KSGuideManager.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,15 @@ - (void)nextButtonHandler:(id)sender {
242242

243243
[UIView animateWithDuration:self.animationDuration animations:^{
244244
if (ws.animationType == KSGuideAnimationTypeFadeOut) {
245-
ws.view.alpha = 0;
245+
ws.contentView.alpha = 0;
246246
} else if (ws.animationType == KSGuideAnimationTypeTop) {
247-
ws.view.center = CGPointMake((kScreenBounds.size.width / 2), -(kScreenBounds.size.height / 2));
247+
ws.contentView.center = CGPointMake((kScreenBounds.size.width / 2), -(kScreenBounds.size.height / 2));
248248
} else if (ws.animationType == KSGuideAnimationTypeBottom) {
249-
ws.view.center = CGPointMake((kScreenBounds.size.width / 2), (kScreenBounds.size.height / 2) * 3);
249+
ws.contentView.center = CGPointMake((kScreenBounds.size.width / 2), (kScreenBounds.size.height / 2) * 3);
250250
} else if (ws.animationType == KSGuideAnimationTypeLeft) {
251-
ws.view.center = CGPointMake(-(kScreenBounds.size.width / 2), (kScreenBounds.size.height / 2));
251+
ws.contentView.center = CGPointMake(-(kScreenBounds.size.width / 2), (kScreenBounds.size.height / 2));
252252
} else if (ws.animationType == KSGuideAnimationTypeRight) {
253-
ws.view.center = CGPointMake((kScreenBounds.size.width / 2) * 3, (kScreenBounds.size.height / 2));
253+
ws.contentView.center = CGPointMake((kScreenBounds.size.width / 2) * 3, (kScreenBounds.size.height / 2));
254254
}
255255

256256
} completion:^(BOOL finished) {

0 commit comments

Comments
 (0)