swift UISearchBar 背景颜色问题

uu998

uu998

发表于 2016-07-23 20:30:11
内容来源: 网络
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
        
    }()





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