zoukankan      html  css  js  c++  java
  • uinavigationcontroller uinavigationbar 下方横线去除

    #import "QKBaseNavigationController.h"

     

    #define fontSize 19

    @interface QKBaseNavigationController ()<UIGestureRecognizerDelegate>

     

    @property (nonatomic, strong) UIImageView * navImageView;

     

    @end

     

    @implementation QKBaseNavigationController

     

    - (void)viewDidLoad {

        [super viewDidLoad];

        

        self.navImageView = [self findNavigationBarUnderImageView:self.navigationBar];

        //隐藏横线

        self.navImageView.hidden = YES;

        [self navSetting];

        

    }

     

    - (UIImageView *)findNavigationBarUnderImageView:(UIView *)view {

    //判断是否是uinavigationbar 里 imageview

        if ([view isKindOfClass:UIImageView.class] && view.bounds.size.height <= 1.0) {

    //如果是返回

            return (UIImageView *)view;

        }

    //遍历查找

        for (UIView *subview in view.subviews) {

            UIImageView *imageView = [self findNavigationBarUnderImageView:subview];

            

            if (imageView) {

    //存在就返回

                return imageView;

            }

        }

    //不存在返回空

        return nil;

    }

  • 相关阅读:
    vue基础知识
    制作离线yum源
    mysql字符集
    confluence 容器版 搭建部署
    iptables和ipvs
    http状态码
    运维相关网站博客集合
    搭建nexus私有maven私服
    MySQL 常见错误代码说明
    nc(瑞士军刀)
  • 原文地址:https://www.cnblogs.com/wujie123/p/6070164.html
Copyright © 2011-2022 走看看