From d1a1c24a2c2f253f767b5edb7f74d79ab88ba736 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Tue, 3 Sep 2013 11:52:25 -0700 Subject: [PATCH] Updated Readme --- readme.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f72487d..2e57692 100644 --- a/readme.md +++ b/readme.md @@ -15,9 +15,11 @@ SMPageControl has a variety of simple (yet powerful) areas of customization, and * Indicator Alignment * Images as Indicators * Image Masks as Indicators -* Per-Indicator customization +* Per-Indicator Customization +* Directly Tappable Indicators * Extensive Support for UIAppearance * Extended Support for UIAccessibility +* iOS 7 Ready ![Screenshot](http://spacemanlabs.com/github/SMPageControl-2.2.png) @@ -33,6 +35,15 @@ pageControl.currentPageIndicatorImage = [UIImage imageNamed:@"currentPageDot"]; ``` +## Direct Page Selection + +Because SMPageControl has such a high degree of flexibility, it's not uncommon for indicator images to be large enough to tap directly. The `tapBehavior` property allows the page control indicators to be individually tappable. + +``` objective-c +SMPageControl *pageControl = [[SMPageControl alloc] init]; +pageControl.tapBehavior = SMPageControlTapBehaviorJump; +``` + ## UIAccessibility Additions UIPageControl (like all Apple controls) provides out of the box support for UIAccessibility. The default behavior is to set the accessibility value to "page [current page + 1] of [number of pages]". e.g. "page 1 of 10"