IOS 自定义标题文字
2014-04-04 12:02
246 查看
self.navigationItem.leftBarButtonItem=[[[UIBarButtonItem
alloc] initWithTitle:@"返回"
style:UIBarButtonItemStylePlain
target:self
action:@selector(pushAction)]
autorelease];
UILabel *customLab = [[UILabel
alloc] initWithFrame:CGRectMake(0,
0, self.view.frame.origin.x/2,
30)];
[customLab setTextColor:[UIColor
whiteColor]];
[customLab
setText:@"标题"];
customLab.font = [UIFont
boldSystemFontOfSize:30];
self.navigationItem.titleView = customLab;
相关文章推荐
- iOS - 自定义alertView,继承自UIView,可以添加子视图,标题图片+文字
- 自定义iOS导航栏背景,标题和返回按钮文字颜色
- iOS 7+自定义导航栏背景,标题和返回按钮文字颜色
- ios之自定义导航栏背景,标题和返回按钮文字颜色
- iOS自定义alertView,继承自UIView,可以添加子视图,标题图片,文字
- iOS View自定义窍门——UIButton实现上显示图片,下显示文字
- IOS中自定义导航栏标题
- iOS左滑插入多个按钮,按钮自定义颜色、图片、文字字体等
- 自定义iOS7导航栏背景,标题和返回按钮文字颜色
- IOS Swift自定义View -- 圆形进度条,文字旋转
- 自定义iOS7导航栏背景,标题和返回按钮文字颜色
- 自定义iOS7导航栏背景,标题和返回按钮文字颜色
- iOS不得姐项目--登录模块的布局,设置文本框占位文字颜色,自定义内部控件竖直排列的按钮
- iOS中UIAlertController设置自定义标题与内容的方法
- IOS让返回按钮显示自定义标题而不是上个ViewController的title
- iOS 自定义view 是上面文字某区域有点击事件和点击背景效果
- iOS :自定义文字
- 自定义 ActionBar 标题与菜单中的文字样式
- iOS UINavigationController修改导航栏标题、按钮文字以及背景的颜色
- iOS 自定义textField 显示下划线 左边显示文字 自定义placeholder的颜色和字体