Skip to content

Commit

Permalink
Delete duplicate rate/lengthOfScroll property definitions. Add demo u…
Browse files Browse the repository at this point in the history
…sage.
  • Loading branch information
cbpowell committed Jan 17, 2014
1 parent c88ad88 commit f67da79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ @interface MarqueeLabel()
@property (nonatomic, strong) id orientationObserver;

@property (nonatomic, assign) NSTimeInterval animationDuration;
@property (nonatomic, assign) NSTimeInterval lengthOfScroll;
@property (nonatomic, assign) CGFloat rate;
@property (nonatomic, assign, readonly) BOOL labelShouldScroll;
@property (nonatomic, weak) UITapGestureRecognizer *tapRecognizer;
@property (nonatomic, assign) CGRect homeLabelFrame;
Expand Down
6 changes: 4 additions & 2 deletions MarqueeLabelDemo/Classes/MarqueeLabelDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ - (void)viewDidLoad {
#endif

// Rate label example
MarqueeLabel *rateLabelOne = [[MarqueeLabel alloc] initWithFrame:CGRectMake(10, 200, self.view.frame.size.width-20, 20) rate:50.0f andFadeLength:10.0f];
MarqueeLabel *rateLabelOne = [[MarqueeLabel alloc] initWithFrame:CGRectMake(10, 200, self.view.frame.size.width-20, 20)];
rateLabelOne.rate = 200.0f;
rateLabelOne.fadeLength = 10.0f;

rateLabelOne.numberOfLines = 1;
rateLabelOne.opaque = NO;
rateLabelOne.enabled = YES;
rateLabelOne.fadeLength = 10.f;
rateLabelOne.shadowOffset = CGSizeMake(0.0, -1.0);
rateLabelOne.textAlignment = NSTextAlignmentLeft;
rateLabelOne.textColor = [UIColor colorWithRed:0.234 green:0.234 blue:0.234 alpha:1.000];
Expand Down

0 comments on commit f67da79

Please sign in to comment.