iOS-NavigationBar

[[NSUserDefaults standardUserDefaults]removeObjectForKey:@"autologin"];

    KTloginViewController *vc = [[KTloginViewController alloc] init];

   // UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc];

    [self presentViewController:nav (换成vc)animated:YES completion:nil];

不更改注释是正确的,但是如果更改了,注销之后的导航栏就会消失





iOS开发19:Navigation Bar的简单设置 举例说明:::http://blog.csdn.net/hufengvip/article/details/7643532


设置UILabel的背景色为透明     

Objc代码  收藏代码

  1. UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(41235020030)];  
  2. label.text = NSLocalizedString(@"bootstrap_progress_label", @"");  
  3. label.textAlignment = NSTextAlignmentCenter;  
  4. label.textColor = [UIColor whiteColor];  

在IOS7上显示正常,但是在IOS6上显示为一个白色的色块,看不到文字。解决办法是将此Label的背景色设置为透明,即增加下面代码:

Objc代码   收藏代码
  1. label.backgroundColor = [UIColor clearColor];  

IOS7上不需要



navigationController:http://blog.csdn.net/totogo2010/article/details/7681879

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值