Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
skywinder committed Aug 27, 2014
1 parent eec4b10 commit 9a83666
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Pickers/AbstractActionSheetPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ - (UIBarButtonItem *)createToolbarLabelWithTitle:(NSString *)aTitle
#pragma clang diagnostic pop
} else
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
textSize = [[toolBarItemlabel text] sizeWithFont:[toolBarItemlabel font]];
#pragma clang diagnostic pop

}

Expand Down Expand Up @@ -469,8 +472,14 @@ - (void)configureAndPresentPopoverForView:(UIView *)aView
viewController.preferredContentSize = aView.frame.size;
#pragma clang diagnostic pop
}
else
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
viewController.contentSizeForViewInPopover = viewController.view.frame.size;
#pragma clang diagnostic pop
}

viewController.contentSizeForViewInPopover = viewController.view.frame.size;
_popOverController = [[UIPopoverController alloc] initWithContentViewController:viewController];
[self presentPopover:_popOverController];
}
Expand Down
3 changes: 3 additions & 0 deletions Pickers/ActionSheetDistancePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,11 @@ - (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)co
#pragma clang diagnostic pop
}
else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
bigUnitLabelSize = [self.bigUnitString sizeWithFont:font].width;
smallUnitLabelSize = [self.smallUnitString sizeWithFont:font].width;
#pragma clang diagnostic pop
}

CGFloat otherSize = (totalWidth - bigUnitLabelSize - smallUnitLabelSize)/(self.bigUnitDigits + self.smallUnitDigits);
Expand Down
3 changes: 3 additions & 0 deletions Pickers/DistancePickerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ - (void)didMoveToWindow
}
else
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
frame.size = [longestString sizeWithFont:labelfont];
#pragma clang diagnostic pop
}


Expand Down

0 comments on commit 9a83666

Please sign in to comment.