[閒聊] ios7的 textfield變色情況
我把 textfield放入 UITableView中,
當點選某一個 cell時,會設定
playerTextField.textColor = [UIColor whiteColor];
dateTextField.textColor = [UIColor blackColor];
然後將文字變成白色的 TextField設定成 Enabled = NO
這段 程式在 ios6前都沒問題,但在 ios7 竟然沒變色,結果變成程式要寫成:
[playerTextField setEnabled: NO];
playerTextField.textColor = [UIColor whiteColor];
dateTextField.textColor = [UIColor blackColor];
變成 setEnabled要先設定為 NO,然後 TextField再變色才 ok
(抓頭中)
這種小地方真的改的好辛苦,不過總算改完了,正式版快出吧,我要上架了~~~
--
昔日所為 今日所受
今日所為 明日所受
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.221.67.175
→
06/23 09:23, , 1F
06/23 09:23, 1F
→
06/23 10:34, , 2F
06/23 10:34, 2F
→
06/23 10:43, , 3F
06/23 10:43, 3F
→
06/23 13:04, , 4F
06/23 13:04, 4F
→
06/23 13:07, , 5F
06/23 13:07, 5F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章