forked from github/Toast-PhoneGap-Plugin
#86 Is there anyway to get a significantly larger font on IOS and Android? - center align on iOS
This commit is contained in:
parent
dc6c537125
commit
0aeb2c4f95
@ -357,7 +357,7 @@ static id styling;
|
|||||||
titleLabel = [[UILabel alloc] init];
|
titleLabel = [[UILabel alloc] init];
|
||||||
titleLabel.numberOfLines = CSToastMaxTitleLines;
|
titleLabel.numberOfLines = CSToastMaxTitleLines;
|
||||||
titleLabel.font = [UIFont boldSystemFontOfSize:theTextSize];
|
titleLabel.font = [UIFont boldSystemFontOfSize:theTextSize];
|
||||||
titleLabel.textAlignment = NSTextAlignmentLeft;
|
titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||||
titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
||||||
titleLabel.textColor = theTitleLabelTextColor;
|
titleLabel.textColor = theTitleLabelTextColor;
|
||||||
titleLabel.backgroundColor = [UIColor clearColor];
|
titleLabel.backgroundColor = [UIColor clearColor];
|
||||||
@ -378,6 +378,7 @@ static id styling;
|
|||||||
messageLabel.numberOfLines = CSToastMaxMessageLines;
|
messageLabel.numberOfLines = CSToastMaxMessageLines;
|
||||||
messageLabel.font = [UIFont systemFontOfSize:theTextSize];
|
messageLabel.font = [UIFont systemFontOfSize:theTextSize];
|
||||||
messageLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
messageLabel.lineBreakMode = NSLineBreakByWordWrapping;
|
||||||
|
messageLabel.textAlignment = NSTextAlignmentCenter;
|
||||||
messageLabel.textColor = theMessageLabelTextColor;
|
messageLabel.textColor = theMessageLabelTextColor;
|
||||||
messageLabel.backgroundColor = [UIColor clearColor];
|
messageLabel.backgroundColor = [UIColor clearColor];
|
||||||
messageLabel.alpha = 1.0;
|
messageLabel.alpha = 1.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user