Skip to content

Commit 250fb05

Browse files
committed
Implemented MRProgressView#setProgress:animated: as "abstract"
1 parent e5d2c02 commit 250fb05

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Components/MRProgressView.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
3232
The animation will be always linear.
3333
34+
@note See this as declared abstract. This MUST be overriden in subclasses.
35+
3436
@param progress The new progress value.
3537
@param animated Specify YES to animate the change or NO if you do not want the change to be animated.
3638
*/

src/Components/MRProgressView.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@
1111

1212
@implementation MRProgressView
1313

14+
- (void)setProgress:(float)progress animated:(BOOL)animated {
15+
@throw [NSException exceptionWithName:NSInternalInconsistencyException
16+
reason:[NSString stringWithFormat:@"You must override selector '%@' in %@ or a intermediate class!",
17+
NSStringFromSelector(_cmd), NSStringFromClass(self.class)]
18+
userInfo:nil];
19+
}
20+
1421
@end

0 commit comments

Comments
 (0)