简体   繁体   中英

UITableView - How to specify start position for horizontal scrolling

Could anybody please help me understand if there is a way to provide the start position for horizontal scrolling in UITableView?

Basically, I have enabled horizontal scrolling by giving content inset like [self.tblData setContentInset:UIEdgeInsetsMake(0,0,0,500)];. But, I do not want the section headers to scroll. Is there a way that I can fix the section headers while scrolling horizontally?

If you want to scroll the view horizontally, i suggest that you should replace UITableView with UICollectionView。

If you want to scroll just one cell horizontally, you can add UIScrollView into cell.contentView.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM