Skip to content

Commit

Permalink
Merge pull request HeshamMegid#6 from dmitric/master
Browse files Browse the repository at this point in the history
indicatorYOffset inititialized to 0.0f
  • Loading branch information
HeshamMegid committed Mar 20, 2013
2 parents 8edc6cd + fb18ac8 commit 8ccd054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HMSegmentedControl/HMSegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ - (void)drawRect:(CGRect)rect {
}

- (CGRect)frameForSelectionIndicator {
CGFloat indicatorYOffset;
CGFloat indicatorYOffset = 0.0f;

if (self.selectionLocation == HMSegmentedControlSelectionLocationDown)
indicatorYOffset = self.bounds.size.height - self.selectionIndicatorHeight;
Expand Down

0 comments on commit 8ccd054

Please sign in to comment.