Skip to content

Commit

Permalink
Merge pull request #154 from BoltsFramework/nlutsenko.warnings
Browse files Browse the repository at this point in the history
Fix warnings when compiling for iOS 9.
  • Loading branch information
nlutsenko committed Sep 21, 2015
2 parents d18e420 + 1631318 commit 7ff8015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Bolts/iOS/BFAppLinkReturnToRefererView.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (void)commonInit {
_includeStatusBarInSize = BFIncludeStatusBarInSizeIOS7AndLater;

// iOS 7 system blue color
self.backgroundColor = [UIColor colorWithRed:0.0 green:122.0 / 255.0 blue:1.0 alpha:1.0];
self.backgroundColor = [UIColor colorWithRed:0.0f green:122.0f / 255.0f blue:1.0f alpha:1.0f];
self.textColor = [UIColor whiteColor];
self.clipsToBounds = YES;

Expand Down Expand Up @@ -120,12 +120,12 @@ - (void)layoutSubviews {
_labelView.preferredMaxLayoutWidth = _labelView.bounds.size.width;
CGSize labelSize = [_labelView sizeThatFits:bounds.size];
_labelView.frame = CGRectMake(BFMarginX,
CGRectGetMaxY(bounds) - labelSize.height - 1.5 * BFMarginY,
CGRectGetMaxY(bounds) - labelSize.height - 1.5f * BFMarginY,
CGRectGetMaxX(bounds) - BFCloseButtonWidth - 3 * BFMarginX,
labelSize.height + BFMarginY);

_closeButton.frame = CGRectMake(CGRectGetMaxX(bounds) - BFCloseButtonWidth - 2 * BFMarginX,
_labelView.center.y - BFCloseButtonHeight / 2.0 - BFMarginY,
_labelView.center.y - BFCloseButtonHeight / 2.0f - BFMarginY,
BFCloseButtonWidth + 2 * BFMarginX,
BFCloseButtonHeight + 2 * BFMarginY);
}
Expand Down

0 comments on commit 7ff8015

Please sign in to comment.