diff --git a/Example/FPageControl/Base.lproj/Main.storyboard b/Example/FPageControl/Base.lproj/Main.storyboard
index 539845a..14ee252 100644
--- a/Example/FPageControl/Base.lproj/Main.storyboard
+++ b/Example/FPageControl/Base.lproj/Main.storyboard
@@ -21,9 +21,12 @@
-
-
-
+
+
+
+
+
+
@@ -35,9 +38,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Example/FPageControl/FViewController.m b/Example/FPageControl/FViewController.m
index dd6b639..f68e2d4 100644
--- a/Example/FPageControl/FViewController.m
+++ b/Example/FPageControl/FViewController.m
@@ -7,8 +7,10 @@
//
#import "FViewController.h"
+#import "FPageControl.h"
@interface FViewController ()
+@property (strong, nonatomic) IBOutlet FPageControl *pageControl;
@end
@@ -19,6 +21,18 @@ - (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
+- (IBAction)minus:(id)sender {
+ NSInteger currentPage = _pageControl.currentPage;
+ if (currentPage > 0) {
+ currentPage -= 1;
+ }
+ [_pageControl setCurrentPage:currentPage];
+}
+- (IBAction)plus:(id)sender {
+ NSInteger currentPage = _pageControl.currentPage;
+ currentPage += 1;
+ [_pageControl setCurrentPage:currentPage];
+}
- (void)didReceiveMemoryWarning
{
diff --git a/Example/Pods/Target Support Files/FPageControl/Info.plist b/Example/Pods/Target Support Files/FPageControl/Info.plist
index 1198b23..c86d56a 100644
--- a/Example/Pods/Target Support Files/FPageControl/Info.plist
+++ b/Example/Pods/Target Support Files/FPageControl/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 0.4.0
+ 0.5.0
CFBundleSignature
????
CFBundleVersion
diff --git a/FPageControl.podspec b/FPageControl.podspec
index bf7fc9a..5b1a2fa 100644
--- a/FPageControl.podspec
+++ b/FPageControl.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'FPageControl'
- s.version = '0.4.0'
+ s.version = '0.5.0'
s.summary = 'Custom Page Control for Fave'
s.description = <<-DESC
diff --git a/FPageControl/FPageControl.m b/FPageControl/FPageControl.m
index 7a3a7d9..f436f3e 100644
--- a/FPageControl/FPageControl.m
+++ b/FPageControl/FPageControl.m
@@ -28,7 +28,9 @@ -(void)customInit {
-(void)setCurrentPage:(NSInteger)currentPage {
[super setCurrentPage:currentPage];
- [self layoutSubviews];
+ [UIView animateWithDuration:0.4 animations:^{
+ [self layoutSubviews];
+ }];
}
-(void)setNumberOfPages:(NSInteger)numberOfPages {