Small remembrance for Technoblade
An avid part of the Minecrafting community, we dedicate this three-day-a-year note to you.
This commit is contained in:
1 parent
7f9d71537d
commit
ab939970a0
1 file changed
+14
-2
@@ -96,8 +96,20 @@
|
||||
[safetyNoteView sizeToFit];
|
||||
[scrollView addSubview:safetyNoteView];
|
||||
|
||||
scrollView.contentSize = CGSizeMake(scrollView.frame.size.width, safetyNoteView.frame.origin.y + safetyNoteView.frame.size.height + 0);
|
||||
|
||||
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
|
||||
[dateFormatter setDateFormat:@"MM-dd"];
|
||||
NSString* date = [dateFormatter stringFromDate:[NSDate date]];
|
||||
if([date isEqualToString:@"06-29"] || [date isEqualToString:@"06-30"] || [date isEqualToString:@"07-01"]) {
|
||||
UILabel *technoDay = [[UILabel alloc] initWithFrame:CGRectMake(4, safetyNoteView.frame.origin.y + safetyNoteView.frame.size.height + 9, width - 8, 700)];
|
||||
technoDay.text = @"May you rest in peace, Technoblade. The Minecraft community will always remember you.";
|
||||
technoDay.lineBreakMode = NSLineBreakByWordWrapping;
|
||||
technoDay.numberOfLines = 0;
|
||||
[technoDay sizeToFit];
|
||||
[scrollView addSubview:technoDay];
|
||||
scrollView.contentSize = CGSizeMake(scrollView.frame.size.width, technoDay.frame.origin.y + technoDay.frame.size.height + 0);
|
||||
} else {
|
||||
scrollView.contentSize = CGSizeMake(scrollView.frame.size.width, safetyNoteView.frame.origin.y + safetyNoteView.frame.size.height + 0);
|
||||
}
|
||||
}
|
||||
|
||||
-(void)latestLogShare
|
||||
|
||||
Reference in new issue
Block a user