mbogh / NibDesignable

Elegant way of enabling IBDesignable on your nib-based views
MIT License
342 stars 74 forks source link

Designable UITableViewCell #53

Closed pak-amsiq closed 7 years ago

pak-amsiq commented 7 years ago

Hello everyone.

I'm struggling with @IBDesignable UITableViewCells.

When I create a tableViewCell, it 's possible to change the background color of the cell to red:

screen shot 2017-03-27 at 15 54 11 screen shot 2017-03-27 at 15 54 18

But I can't see my label, and I can't update the text of the label.

Could someone make an example for at custom table view cell with a label, or explain how to update my custom designable table view cell?

Thank you!

farzadshbfn commented 7 years ago

why do you have a NibDesignable view, then a cell inside it?

farzadshbfn commented 7 years ago

How to design UITableViewCells is well explained in readme and also in #21 . Here's also a sample of how to create tableViewCells

pak-amsiq commented 7 years ago

Perfect, i got it to work. Thank you!