修改UITextField的佔位符的顏色

    

    注意:必須先設置placeholderit

    self.valueTextField.placeholder = model.title;model

    [self.valueTextField setValue:DefaultLineViewColor forKeyPath:@"_placeholderLabel.textColor"];placeholder

    [self.valueTextField setValue:[UIFont boldSystemFontOfSize:14] forKeyPath:@"_placeholderLabel.font"];ab

相關文章
相關標籤/搜索