SCPageScrubberBar是一个类似于ibooks的页面刮擦栏。SCPageScrubberBar与iOS5.0+和ARC一起工作。
屏幕截图
SCPageScrubberBar/SCPageScrubberBar
下的所有内容添加到您的项目中QuartzCore.framework
添加到您的项目中#import "SCPageScrubberBar.h"
SCPageScrubberBar *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;
版权(c)2013 Chao Shen。本软件根据BSD许可证授权。