Skip to content

Commit

Permalink
Implemented MRProgressView#setProgress:animated: as "abstract"
Browse files Browse the repository at this point in the history
  • Loading branch information
mrackwitz committed Jul 22, 2014
1 parent e5d2c02 commit 250fb05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/MRProgressView.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
The animation will be always linear.
@note See this as declared abstract. This MUST be overriden in subclasses.
@param progress The new progress value.
@param animated Specify YES to animate the change or NO if you do not want the change to be animated.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/Components/MRProgressView.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@

@implementation MRProgressView

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

@end

0 comments on commit 250fb05

Please sign in to comment.