阅读背景:

从uitableviewpagingenabled获取可见单元格

来源:互联网 

I have a UITableView with pagingEnabled. Each cell takes up the viewing area of the table. Meaning, each cell is the same height and width as the table. I'm using custom cells that have a name property. I'd like to display the name of the current (viewable) cell in a label. This works fine for the first and last cells but anything inbetween isn't so easy. The problem is that cellForRowAtIndexPath is called twice for these middle cells. Here's what it looks like scrolling from the first to last cell and then back. I've listed the indexes in order as cellForRowAtIndexPath fires for that row:I have a UITableView with pagingEnabled. Each c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: