單元格不按縮放級別縮進。縮進在UITableView中不起作用(ios6)
我在cellForRowAtIndexPath中配置了縮進寬度。
- (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath{
NSInteger theLevel=0;
if (indexPath.row==1) {
theLevel=5;
}
return theLevel;
}
在下圖中,我根據它的等級改變了按鈕和標籤的框架。
你的問題說有圖像,但你還沒有添加它。請加。 – 2013-02-20 03:26:23
您使用自定義單元嗎? – 2013-02-20 03:27:36
@MikeD否我沒有使用任何自定義單元格。只需向單元格添加子視圖即可。 – Saurav 2013-02-20 03:31:09