说明文字的位置调整

This commit is contained in:
祝发冬
2022-09-23 15:38:36 +08:00
parent 30a4fdaeca
commit a0fff8e375
2 changed files with 5 additions and 5 deletions
@@ -195,7 +195,7 @@ static NSString *cycleTimerflag = @"CycleTimerCell";
}
CGSize size= [label.text boundingRectWithSize:CGSizeMake(300, MAXFLOAT) options:(NSStringDrawingUsesFontLeading | NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName: label.font} context:NULL].size;
label.frame=CGRectMake((kScreenWidth-size.width)/2.0, 300, size.width, size.height);
label.frame=CGRectMake((kScreenWidth-size.width)/2.0, kScreenHeight-NavigationBarHeight-size.height-88, size.width, size.height);
[self.view addSubview:label];
}
}