ios 7 customizing UITableViewCell's content view

前端 未结 5 620
春和景丽
春和景丽 2021-02-11 00:59

Using storyboard in ios7 the content view is explicitly viewed under the Table View Cell in the story board editor (opposed to previous version

5条回答
  •  借酒劲吻你
    2021-02-11 01:53

    Ok I found an Xcode bug.

    If you complete the following this will replicate the issue:
    - Create new UIViewController in storyboard
    - Drag a UITableView to the VC
    - Update the UITableview to have 1(as many) dynamic prototype cells
    ISSUE: The cells are added but without a contentView.

    RESOLUTION: Rather than updating the amount of cells in the storyboard. Drag a custom cell from the objects part of Xcode, the Cell will be added with a contentView.

提交回复
热议问题