ios去掉navigationController和tabBarController里的边框黑线

ios去掉navigationController和tabBarController里的边框黑线

by 伍雪颖

- (void)viewWillAppear:(BOOL)animated {
    [self.navigationController.navigationBar setBackgroundImage:[TDUtils createImageWithColor:[UIColor clearColor]] forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setBackIndicatorTransitionMaskImage:[TDUtils createImageWithColor:[UIColor clearColor]]];
    [self.navigationController.navigationBar setShadowImage:[TDUtils createImageWithColor:[UIColor clearColor]]];

    [self.tabBarController.tabBar setBackgroundImage:[TDUtils createImageWithColor:[UIColor clearColor]]];
    [self.tabBarController.tabBar setShadowImage:[TDUtils createImageWithColor:[UIColor clearColor]]];
}

ios去掉navigationController和tabBarController里的边框黑线

时间: 2024-08-28 01:59:48

ios去掉navigationController和tabBarController里的边框黑线的相关文章

iOS 去掉导航栏的边界黑线&去掉搜索框的边界黑线和其中文本输入框的阴影 - 解决方案

去掉导航栏的边界黑线 in viewDidload: [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.shadowImage = [[UIImage alloc] init]; 去掉搜索框的边界黑线 in viewDidload:

如何去掉添加链接后图片的边框

如何去掉添加链接后图片的边框: IE浏览器中,默认状态下,如果给图片添加链接图片会产生边框.只要为图片的CSS代码添加border:0px即可. 代码实例: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="author" content="http://www.51texiao.cn/" /> <ti

IOS 去掉代码html中的标签元素,获得纯文本

content是根据网址获得的网页源码字符串    NSRegularExpression *regularExpretion=[NSRegularExpression regularExpressionWithPattern:@"<[^>]*>|\n"  options:0  error:nil]; //替换所有html和换行匹配元素为"-"        content=[regularExpretion stringByReplacingMa

去掉UISearchBar自带的的边框背景

去掉UISearchBar自带的的边框背景 ,分为ios7后和ios7前的解决方案,代码如下: UISearchBar* searchbar = [[UISearchBar alloc]initWithFrame:CGRectMake(5, 0, 310, 50)]; searchbar.tag = 1000; searchbar.delegate = self; [cell addSubview:searchbar]; for (UIView *view in searchbar.subvie

移动端HTML5页面端去掉input输入框的白色背景和边框(兼容Android和ios)

前两天在开发在微信访问的HTML5页面,里面有个订单查询要选择时间,刚开始使用的<input type="date">输入框,没加任何的样式,效果是白色的背景再加上边框很丑,完 全与整个背景不协调. 刚开始设置了输入框背景色透明(background-color:transparent;),在ios上面背景色和边框都没有了,但是在andriod上边框和背景色还是存在.后来加上样式FILTER: alpha(opacity=0),在andriod中就去掉了边框和背景. 去掉背

[iOS基础控件 - 6.12.4] NavigationController vs TabBarController

A.属性 1. Item NavigationController: navigationItem (不需要创建) title rightBarButtonItems/ rightBarButtonItem (需要创建) leftBarButtonItems/ leftBarButtonItem (需要创建) TabBarController: tabBarItem (不需要创建) title image selected image tag

【iOS 技巧 - 10】 NavigationController 与 TabBarController 的比较

A.属性 1. Item NavigationController: navigationItem (不需要创建) title rightBarButtonItems/ rightBarButtonItem (需要创建) leftBarButtonItems/ leftBarButtonItem (需要创建) TabBarController: tabBarItem (不需要创建) title image selected image tag

html里,如何去掉点击map里area的边框

html代码 <img src="../images/account/safe_part_1.png" width="990" height="334" usemap="#safeMap"/> <map name="safeMap" id="safeMap"> <area shape="rect" coords="4,191,1

ios 把navigationController.navigationBar 下面的黑线去掉

- (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:YES]; [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"head_bar_pink_.png"] forBarMetrics:UIBarMetricsDefault]; [self.navigationController.navigationBa