LoginSignup
0

More than 5 years have passed since last update.

Fire action when UICollectionView page changed

Last updated at Posted at 2019-01-11

conclusion

Use UIScrollView#scrollViewDidScroll
Check weather page changed in this func, then fire action if true.

memo

UICollectionViewCell's state

UICollectionViewCell instance has two state.
- isSelected
- isHighlighted

ref:
https://developer.apple.com/documentation/uikit/uicollectionviewcell

But it's not useful for this purpose

UIFocusEnvironment

At first, "focus" is useful I think.
But my colleague says it may not be used often.
I searched for this usecase.
use it when change focus manually.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0