如果有navigation bar, 在navigation bar 添加一个view来设置颜色

来源:互联网 发布:网站域名续费多少钱 编辑:程序博客网 时间:2024/06/04 20:17
  1. // status bar color

    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, -20, ScreenWidth, 20)];
    [view setBackgroundColor:COLOR_APP_MAIN];

[viewController.navigationController.navigationBar addSubview:view];

0 0
原创粉丝点击