TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | BSD |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
SCPageScrubberBar is a page scrubber bar like ibooks. SCPageScrubberBar works with iOS5.0+ and ARC.
Screenshot:
SCPageScrubberBar/SCPageScrubberBar
to your projectQuartzCore.framework
to your project#import "SCPageScrubberBar.h"
before using itSCPageScrubberBar *scrubberBar = [[SCPageScrubberBar alloc] initWithFrame:CGRectMake(20.0f, 400.0f, 280.0f, 30.0f)];
scrubberBar.delegate = self;
scrubberBar.minimumValue = 0;
scrubberBar.maximumValue = 100;
scrubberBar.isPopoverMode = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
[self.view addSubview:scrubberBar];
@required
// Return the text of main titleLabel
- (NSString*)scrubberBar:(SCPageScrubberBar*)scrubberBar titleTextForValue:(CGFloat)value;
// Return the text of sub titleLabel
- (NSString*)scrubberBar:(SCPageScrubberBar*)scrubberBar subtitleTextForValue:(CGFloat)value;
@optional
// This method will be called when a page is selected
- (void)scrubberBar:(SCPageScrubberBar*)scrubberBar valueSelected:(CGFloat)value;
// The delegate
@property (nonatomic, weak) id <SCPageScrubberBarDelegate> delegate;
// Default value is NO
@property (nonatomic, assign) BOOL alwaysShowTitleView;
// Default value is NO
@property (nonatomic, assign) BOOL isPopoverMode;
Copyright (c) 2013 Chao Shen. This software is licensed under the BSD License.