hi,
app has expand or collapse functionaly, achieve have table view 7 sections , each section has header , footer around 20 rows in each section, showing headers of sections setting height , hiding footers , rows of section setting height 0 footers , rows can see in image 1 of link have attached, when user clicks on + button of header, reloading tableview section , changing heights actual height. during process have 2 issues
1.) section footers overriding table view cells when expanding sections before that, can see scenario in image 2, 3, 4, 5. => i.e. expanded section 1(i.e. image 2) , expanded section 0 (image 3), when scroll rows in section 0, see section 1 footer on riding sections 0 data cell(i.e. can see in image 4, 5).
2.) expand or collapse animation fast => when trying reload table view expand or collapse animating fast.
appreciated, finding hard time in solving it, can find images url, git url code , table view reload code below.
image url:
drop box link images: https://www.dropbox.com/sh/3b0i57z74njckjr/aadv710m9ys7wuwkab4dml4ya?dl=0
giturl project:
github.com/gopal-iosdev/expandorcollapsetableview
tableview reload code expand or collapse:
code:
uitableviewrowanimation rowanimation = uitableviewrowanimationbottom; nsindexpath *indexpath = [nsindexpath indexpathforrow:0 insection:celltag]; nsrange range = nsmakerange(indexpath.section, 1); nsindexset *sectiontoreload = [nsindexset indexsetwithindexesinrange:range]; [self.maintableview beginupdates]; [self.maintableview reloadsections:sectiontoreload withrowanimation:rowanimation]; [self.maintableview endupdates];
thanks
gopal
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment