You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi you are able to add desired animation.Go to ATPageView.m in configurePages method.
see this section you are able to add animation their that will reflect on page change.I have just show how to use animation.if you want to support different animations and want user to select their types by making settings screen.one solution for that is to make enum and change your code accordingly.
// add missing pages
for (int index = firstPage; index <= lastPage; index++) {
if ([self viewForPageAtIndex:index] == nil) {
// only preload visible pages in quick mode
if (quickMode && (index < firstVisiblePage || index > lastVisiblePage))
continue;
UIView *page = [_delegate viewForPageInPagingView:self atIndex:index];
[self configurePage:page forIndex:index];
///add Animation their///
[UIView animateWithDuration:1.0 delay:0.0
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{page.alpha=0.5;}
completion:^(BOOL fin) {
page.alpha=1.0;
}];
[_scrollView addSubview:page];
[_visiblePages addObject:page];
}
}
It would be nice to allow the developer to set a desired animation style instead of scrolling when changing pages.
The text was updated successfully, but these errors were encountered: