UIPickerView如何设置字体

UIPickerView如何设置字体,第1张

字体大小:可以在- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view中用label来实现- (UIView *)pickerView:(UIPickerView *)pickerView viewForRowUIPickerView如何设置字体

[tableView scrollToNearestSelectedRowAtScrollPosition:UITableViewScrollPositionBottom animated:YES]

这个是选择哪一行的cell,让该行的cell滑到tableView的最底端

NSIndexPath *indexPath = [NSIndexPath indexPathForItem:13 inSection:0]

[tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES]

这个是指定哪一行的cell,让该行cell滑到tableView的最底端 !

字体大小:

可以在- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row

forComponent:(NSInteger)component reusingView:(UIView *)view

中用label来实现

祝你愉快,满意请采纳哦


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/11245932.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-14
下一篇 2023-05-14

发表评论

登录后才能评论

评论列表(0条)

保存