2016-04-01 9 views
1

verticalSeperator UITableで特定の色を追加する方法を教えてください.UIColorオプションを使用してみましたが、これを解決できませんでした。verticalSepratorで色を追加する方法UITable

HJTextFieldCell *cell = (HJTextFieldCell *)[_tableView dequeueReusableCellWithIdentifier:textCellIdentifier]; 
cell.constraint_leftSideOftxtFild.constant = 10.0f; 
cell.constraint_heigntOfTxtField.constant = 30.0f; 
cell.lbl_verticalSeprator.hidden =NO; 
cell.lbl_verticalSeprator.textColor = [UIColor colorWithRed:0.0/255.0 green:0.0/255.0 blue:0.098/255.0 alpha:0.22]; 

答えて

0

テキストの色ではなく背景色で試してください。

cell.lbl_verticalSeprator.backgroundColor = [UIColor colorWithRed:0.0/255.0 green:0.0/255.0 blue:0.098/255.0 alpha:0.22]; 

と最善の方法は、ネイティブのセパレータを使用することで、あなたはそれが完璧に働いて、どうもありがとうございましUITableview

+0

tableView.separatorColorと色を変更することができます。 –

関連する問題