swift UISearchBar 背景颜色问题

2016-07-23 uu998
UISearchBar  背景颜色问题
  lazy var navigationSearchBar: UISearchBar = {
        
        let naS = UISearchBar.init(frame: CGRectMake(0, 0,
            UIScreen.mainScreenWidth - 40, 44))
        
        naS.placeholder = "请输入手机号查找"

        let imageV = UIImageView.init(image: UIImage(named: "wangmumu"))
        
        naS.insertSubview(imageV, atIndex: 1)
        
        naS.returnKeyType = .Search
        
        naS.keyboardType = .NumbersAndPunctuation
        
        return naS
        
    }()
                                                    

用户评论
开源开发学习小组列表