Вопрос

I have NSTableView in Xib and connected outlet for that.I am loading the cell data using Key value bindings with NSArrayController.I need to fill the cell rows dynamically.I did it.But I am facing the problem,my Tableview cells are getting merged and lines of cell row are not visible.

Why is this happening,How to solve this.Can anybody have ideas please.

It is happening in 10.7.

Это было полезно?

Решение

It is probably due to cells heights in your table are higher that used in TableView by default. If this is your case:

  1. Evaluate cell height in IB (row height in Size Inspector)

  2. Add delegate method in proper view controller:

    • (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 50.0; // for example! }
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top