Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Warnings cleanup #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TSPopover/TSActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ - (void) buildButtons
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(BORDER, buttonY, self.bounds.size.width-BORDER*2, buttonHeight);
button.titleLabel.font = [UIFont boldSystemFontOfSize:16];
button.titleLabel.minimumFontSize = 6;
button.titleLabel.minimumScaleFactor = 6;
button.titleLabel.adjustsFontSizeToFitWidth = YES;
button.titleLabel.textAlignment = UITextAlignmentCenter;
button.titleLabel.textAlignment = NSTextAlignmentCenter;
button.backgroundColor = [UIColor clearColor];
button.tag = i++;

Expand Down
2 changes: 1 addition & 1 deletion TSPopover/TSPopoverController.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ - (void) showPopoverWithPoint:(CGPoint)senderPoint
titleLabel.textColor = self.titleColor;
titleLabel.text = self.titleText;
titleLabel.backgroundColor = [UIColor clearColor];
titleLabel.textAlignment = UITextAlignmentCenter;
titleLabel.textAlignment = NSTextAlignmentCenter;
titleLabel.font = self.titleFont;
}
contentViewFrame.origin.x = backgroundPositionX+MARGIN;
Expand Down