objective c - How to put UICollectionView and button in UIPageControl in ios? -


this collectionview when swipe scrolls, enter image description herei have putted uicollectionview , button in uipagecontrol, when swipe uicollectionview scrolling, , button view not scrolling smoothly works normal uipagecontrol enter image description here

i'm not sure think has catransitions

try changing last piece of method use uiview animations instead of catransitions:

if(pagecontrol.currentpage==pagecontrol.numberofpages-1) {     [uiview animatewithduration:0.2                      animations:^{                           dayradialcollection.alpha = 0.0f;                          addweek.alpha = 1.0f;                          removeweek.alpha = 1.0f;                       } completion:^(bool finished) {                       }]; } else {      [uiview animatewithduration:0.2                      animations:^{                           dayradialcollection.alpha = 1.0f;                          addweek.alpha = 0.0f;                          removeweek.alpha = 0.0f;                       } completion:^(bool finished) {                       }]; } 

there no need hide elements, alpha 0.0f not show them anyway.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -