Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIViewController 的重用导致生命周期乱掉了 #4

Open
AlanMelody opened this issue Oct 14, 2016 · 4 comments
Open

UIViewController 的重用导致生命周期乱掉了 #4

AlanMelody opened this issue Oct 14, 2016 · 4 comments

Comments

@AlanMelody
Copy link

reuse 下的 demo

@AlanMelody AlanMelody changed the title UIViewController 的重用导致生命周期乱掉了? UIViewController 的重用导致生命周期乱掉了 Oct 14, 2016
@Loneykids
Copy link

你好, 使用UITableView的复用的时候会出现之前的高度仍然是复用之前的高度, 请问你这个是怎么解决的,,,举个例子吧, 假如说现在有6个UITableView,, 第三个UItableView中cell的高度会使用第一个UItableView的cell的高度..

@allenhsu
Copy link
Owner

@Loneykids datasource 变化的时候需要 reloadData

@allenhsu
Copy link
Owner

@AlanMelody 的确如果 vc 需要基于 view 的生命周期做一些事情的话可能会不准确

@AlanMelody
Copy link
Author

@allenhsu 有没有啥可以准确使用生命周期的好办法? didScroll 好像不太行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants