Latest0.0.1
Homepagehttps://github.com/ohsc/SCPageScrubberBar
LicenseBSD
Platformsios 5.0, requires ARC
FrameworksQuartzCore
Authors

SCPageScrubberBar is a page scrubber bar like ibooks.
SCPageScrubberBar works with iOS5.0+ and ARC.

Screenshot:

SCPageScrubberBar  
SCPageScrubberBar  

SCPageScrubberBar

Getting Started

Manually

  1. Download the source from here
  2. Add all under SCPageScrubberBar/SCPageScrubberBar to your project
  3. Add QuartzCore.framework to your project
  4. Add #import "SCPageScrubberBar.h" before using it

CocoaPods

Add SCPageScrubberBar to your Podfile and pod install.

pod 'SCPageScrubberBar', '~> 0.0.1'

Example Usage

Basic

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];

SCPageScrubberBarDelegate

@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;

Properties

// 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;

LICENSE

Copyright (c) 2013 Chao Shen. This software is licensed under the BSD License.

Bitdeli Badge

Latest podspec

{
    "name": "SCPageScrubberBar",
    "version": "0.0.1",
    "summary": "A page scrubber bar like ibooks.",
    "description": "                    SCPageScrubberBar is a page scrubber bar like ibooks. SCPageScrubberBar works with iOS5.0+ and ARC.n",
    "homepage": "https://github.com/ohsc/SCPageScrubberBar",
    "license": {
        "type": "BSD",
        "file": "LICENSE.md"
    },
    "authors": {
        "Chao Shen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ohsc/SCPageScrubberBar.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "SCPageScrubberBar/*.{h,m}",
    "resources": "SCPageScrubberBar/SCPageScrubberBar.bundle",
    "requires_arc": true,
    "frameworks": "QuartzCore"
}

Pin It on Pinterest

Share This