开发者

cells in tableview

i need to develop table view for entering text data and boolean values, so i ne开发者_如何学JAVAed to implement checkbox functionality for some tableview cells, i know how to implement regular tabledatasource interface for supply the data^ what about different types of cells? Thanks, alot.


Have you tried implementing your own UITableViewCell? You could also "manually" create one in the data source delegate but this sounds like something that could be re-usable.


There is no big difference between data types. If you are confused with C types (int, bool etc.) keep in mind that you can always wrap them with NSNumber and pass as id where needed. If the question is in cell class itself - NSButtonCell with checkbox cell is the choice. It's available in the Interface Builder.

However, I'd recommend you to use NSArrayController and bindings if it is suitable in your task. Binding is simpler way to fill the table with data and there is no need to convert c <-> obj-c data manually.


i think that what i need - tableView:dataCellForTableColumn:row:

thanks to all

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜