textField 左侧的小图标

imageView.image = [UIImage imageNamed:@"HomeView_magnifier_white"];

        

        self.mainTextField.leftView = imageView;

        

        self.mainTextField.leftViewMode = UITextFieldViewModeAlways;

        //竖直对齐方式

        self.mainTextField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;

posted on   举个例子yi聪聪  阅读(209)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示