mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-08 15:23:12 +00:00
Adjust font size and add an 3rd row for expired view
This commit is contained in:
parent
27b7ebe201
commit
4f3f5f9c96
@ -524,12 +524,13 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
|||||||
frame.origin.x = 20;
|
frame.origin.x = 20;
|
||||||
frame.origin.y = frame.size.height - 140;
|
frame.origin.y = frame.size.height - 140;
|
||||||
frame.size.width -= 40;
|
frame.size.width -= 40;
|
||||||
frame.size.height = 50;
|
frame.size.height = 70;
|
||||||
|
|
||||||
UILabel *label = [[UILabel alloc] initWithFrame:frame];
|
UILabel *label = [[UILabel alloc] initWithFrame:frame];
|
||||||
label.text = message;
|
label.text = message;
|
||||||
label.textAlignment = kBITTextLabelAlignmentCenter;
|
label.textAlignment = kBITTextLabelAlignmentCenter;
|
||||||
label.numberOfLines = 2;
|
label.numberOfLines = 3;
|
||||||
|
label.adjustsFontSizeToFitWidth = YES;
|
||||||
label.backgroundColor = [UIColor clearColor];
|
label.backgroundColor = [UIColor clearColor];
|
||||||
|
|
||||||
[self.blockingView addSubview:label];
|
[self.blockingView addSubview:label];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user