IOS设置NavigationBar颜色

news/2024/7/20 22:20:11 标签: ios, 字体, Bar
//取消navigationBar半透明状态
self.navigationBar.translucent=NO;
//设置navigationBar颜色
self.navigationBar.barTintColor=MyColor(41, 127, 202);
//设置navigationBar字体颜色
[self.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName, nil]];

http://www.niftyadmin.cn/n/1636662.html

相关文章

(二)代理模式详解(包含原理详解)

作者:zuoxiaolong8810(左潇龙),转载请注明出处,特别说明:本博文来自博主原博客,为保证新博客中博文的完整性,特复制到此留存,如需转载请注明新博客地址即可。 我特意将本…

2020-03-08-linux内核1-GNU汇编入门_X86-64ARM

layouttitlesubtitledateauthorheader-imgcatalogtagspostlinux内核1-GNU汇编入门_X86-64&ARM本文是汇编语言的一个入门资料2020-03-08Tupelo Shenimg/post-bg-unix-linux.jpgtrueLinuxLinux内核汇编GNU1 引言 为了阅读Linux内核源代码,是需要一些汇编语言知识的…

Win8 改为win7 64位

1. thinkpad x230 老毛桃 2.F1 bois主菜单,设置最后一项下面的OS optimization 为disabled,要不然无法从U盘启动, startup下 boot,进入找到U盘,按F6改变顺序,F10保存。 3.选择老毛桃第一项,界面加载好以后,…

IOS观察者与监听

1.发送通知 [[NSNotificationCenter defaultCenter] postNotificationName:"AskOrder" object:self]; 2.监听 [[NSNotificationCenter defaultCenter] addObserver:self selector:selector(callBack) name: "AskOrder" object: nil]; - (void)callBack…

hdu - 3460 - Ancient Printer

题意:给出N个由小写字母组成的队名,用一台古老的打印机这些队名打印出来,问最少要敲几次键盘(队名之间不用按输入顺序),这台打印机只能执行以下3种操作: 1.在现有基础上的末尾继续输入小写字母&…

WDM驱动笔记

WDM的 DRIVER_OBJECT 不同于网上的 typedef struct _DRIVER_OBJECT {CSHORT Type;CSHORT Size;//// The following links all of the devices created by a single driver// together on a list, and the Flags word provides an extensible flag// location for driver obj…

自定义微信菜单

<?php$appid "wx7d59ab2ec55555"; $appsecret "f7d4cd6e0345c206955555"; $url "https://api.weixin.qq.com/cgi-bin/token?grant_typeclient_credential&appid$appid&secret$appsecret";$output https_request($url); $jsonin…

PopupWindow使用详解 及标题栏高度的获取及注意事项

一、PopupWindow介绍&#xff08;转自&#xff1a;http://www.2cto.com/kf/201205/131768.html&#xff09; Android的对话框有两种&#xff1a;PopupWindow和AlertDialog。它们的不同点在于&#xff1a;AlertDialog的位置固定&#xff0c;而PopupWindow的位置可以随意AlertDia…