在开发中经常会用到导航器,在导航器中添加标题很简单,如下:  
self.title=@"Elimination phase Day 1";  
  
UILabel *titleText = [[UILabel alloc] initWithFrame: CGRectMake(0, 0, 200, 20)];  
    titleText.backgroundColor = [UIColor clearColor];  
    [titleText setFont:[UIFont systemFontOfSize:15.0]];  
    [titleText setText:@"Elimination phase Day 1"];  
    self.navigationItem.titleView=titleText;  

相关文章:

  • 2021-03-30
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-10-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-09-29
  • 2021-06-22
相关资源
相似解决方案