Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryhjones committed Sep 3, 2013
1 parent 750da81 commit d1a1c24
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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"
Expand Down

0 comments on commit d1a1c24

Please sign in to comment.