UIKit 相关

来源:互联网 发布:centos apache python 编辑:程序博客网 时间:2024/06/15 21:58

1.UILabel

更改字体大小

label.font = [UIFont systemFontOfSize:#fontSize#];


2.UITableView

隐藏空白格

self.tableView.tableFooterView = [[UIView alloc]init];

3.UIScorllView

到边缘不回弹

self.containView.bounces = NO;


4.UINavigationController

自定义UINavigationController后退按钮事件(会丢失手势)

self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(clickNavigationBackBtn)];






0 0
原创粉丝点击