uitableview - UITableViewCell inheritance -
i have xib file.
in xib create lot of cell app.
i have same left part in uitableviewcell
, right different.
how can inheritance 1 cell cell, if both uitableviewcell
load nib (one nib or different)?
thank you
there no concept of inheritance among nib files. option duplicate original file , make necessary changes.
generally speaking, use xibs layout custom cell, set class of cell in xib custom class , go there it's implementation file.
however it's not possible (to knowledge) have base xib inherit from.
i think cleanest approach have separate xib each cell design.on implementation side, define class files, can use inheritance there.
Comments
Post a Comment