ios - UIImageView CurlUp transition below a toolbar -
i working on implementation of slideshow control in ipad application.
manage different kinds of transitions between images, particularly uiviewanimationoptiontransitioncurlup.
viewcontroller's xib composed of 2 superposed uiimageviews, uitoolbar on 2 uiimageviews in order give user play/pause control.
here how looks :
i today face problem when curlup transition occurs between 2 uiimageviews, see uitoolbar (which on 2 other views) animate :
here how transition code looks :
if ([slideshow.images count] <= 1) { return; } currentimageindex = ((currentimageindex + 1) >= [slideshow.images count]) ? 0 : currentimageindex + 1; //imagestackview contains 2 uiimageviews bound iboutlets xib uiimageview *loadingimageview = [imageviewstack objectatindex:1]; loadingimageview.image = [slideshow.images objectatindex:currentimageindex]; uiimageview *currentimageview = [imageviewstack objectatindex:0]; [uiview transitionfromview:currentimageview toview:loadingimageview duration:slideshow.duration options:uiviewanimationoptiontransitioncurlup completion:^(bool finished) { uiimageview *swap = [imageviewstack objectatindex:0]; [self.view bringsubviewtofront:toolbar]; [imageviewstack removeobjectatindex:0]; [imageviewstack addobject:swap]; [self schedulenextanimation]; }];
please let me know if have idea !
thanks in advance !
i solved problem appending 2 uiimageviews in nib in parent uiview.
result, have view hierarchy following :
- uiview
- uiview (parent view uiimageviews)
- uiimageview
- uiimageview
- uitoolbar
- uiview (parent view uiimageviews)
Comments
Post a Comment