BCKBarString Class Reference
Inherits from | NSObject |
Conforms to | NSCopying NSMutableCopying |
Declared in | BCKBarString.h |
Overview
Class representing a string of bars of type BCKBarType. Receivers of this type are not mutable as opposed to BCKMutableBarString.
Class Methods
stringWithBar:
Creates a Bar String with a single bar.
+ (instancetype)stringWithBar:(BCKBarType)bar
Parameters
- bar
The BCKBarType to initialize the Bar String with.
Declared In
BCKBarString.h
Instance Methods
barAtIndex:
Determines the bar at a given index.
- (BCKBarType)barAtIndex:(NSUInteger)index
Parameters
- index
The index.
Return Value
The BCKBarType for the bar at the index.
Declared In
BCKBarString.h
beginsWithBar:
Determines whether the first bar is of a particular bar type
- (BOOL)beginsWithBar:(BCKBarType)bar
Parameters
- bar
The BCKBarType to look for.
Return Value
YES
if the receiver begins with this bar type.
Declared In
BCKBarString.h
endsWithBar:
Determines whether the last bar is of a particular bar type.
- (BOOL)endsWithBar:(BCKBarType)bar
Parameters
- bar
The BCKBarType to look for.
Return Value
YES
if the receiver ends with this bar type.
Declared In
BCKBarString.h
enumerateBarsUsingBlock:
Enumerate all bars in the Bar String.
- (void)enumerateBarsUsingBlock:(void ( ^ ) ( BCKBarType bar , NSUInteger idx , BOOL *stop ))block
Parameters
- block
The block to execute for each bar.
Declared In
BCKBarString.h