iOS開發 - placeholder偏上的問題

在placeholder字體偏小的時候,會出現placeholder偏上的現象,咱們經過KVC來改變placeholder字體大小或者顏色,要解決placeholder偏上問題須要以下幾句代碼,不須要很麻煩的自定義:web [_phoneNum setValue:[UIFont systemFontOfSize:13] forKeyPath:@"_placeholderLabel.font"];
相關文章
相關標籤/搜索