导航栏背景及UItextFile左右图片的设置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/heipingguowenkong/article/details/51544708

           工作中遇到的需求解决方案,希望对大家有所帮助:

  1. 设置导航栏的背景图片: navigationController?.navigationBar.setBackgroundImage(UIImage(named: "umbrella"), forBarMetrics: UIBarMetrics.Default)
  2. 设置UItextFile的左右图片:right.image = UIImage(named: "umbrella”

        

        textFile.leftView = right

        

        textFile.leftViewMode = UITextFieldViewMode.Always

        



猜你喜欢

转载自blog.csdn.net/heipingguowenkong/article/details/51544708