iOS开发

怎样获得当前是UITableView中的哪个section

2017-10-25  本文已影响5人  iOS技术小卒

NSUInteger section=[indexPath section];

直接使用

//获取当前的section

if ([indexPath section]==0) {

return 100;

}else{

return 20;

}

[indexPath section]

上一篇 下一篇

猜你喜欢

热点阅读