Skip to content

Commit

Permalink
Fixed an issue of ignoring 'animated' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
yichizhang committed Dec 31, 2014
1 parent 9d96508 commit 281a711
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ DerivedData
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/
Pods/
._*
.DS_Store
2 changes: 1 addition & 1 deletion Source/YZSwipeBetweenViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ - (void)scrollToViewControllerAtIndex:(NSInteger)index animated:(BOOL)animated{
if (index >= 0 && index < self.viewControllers.count) {
[self.scrollView
scrollRectToVisible:[self.viewControllers[index] view].frame
animated:YES
animated:animated
];
}

Expand Down
2 changes: 1 addition & 1 deletion YZSwipeBetweenViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "YZSwipeBetweenViewController"
s.version = "0.0.2"
s.version = "0.0.3"
s.summary = "A view controller that enables user to swipe left or right to switch to different views."
s.homepage = "https://github.com/yichizhang/" + s.name
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down

0 comments on commit 281a711

Please sign in to comment.