2017-08-12 8 views
-3

コードと結果が間違っていることを誰でも説明できますか? cellSetupに黄色の背景色と赤色のテキスト色が表示されているようですが、セルが奇妙にフォーマットされています(セルの上に白い矩形があります。IOSユーレカのセルの色の問題

 +++ Section("OCCURRENCE DETAILS") 
     <<< TextAreaRow("occ_description") { 
      $0.title = "" 
      $0.value = "15454646" 
      $0.textAreaHeight = .dynamic(initialTextViewHeight: 100) 
      }.cellSetup { cell, row in cell.backgroundColor = .yellow; cell.tintColor = .red 
      }.onChange { self.occ_description = $0.value } 

Attached Picture: Erroneous Cell Format

答えて

1

"白四角形は、" デフォルトで白い背景を有する実際のUITextViewあります。セル全体を黄色にするには、テキストビューの背景色を黄色または透明に設定する必要があります。これをあなたのcellSetupに追加:

cell.textView.backgroundColor = .clear