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
this timerscroller does not work with my private navigationController(it provide some function like path2, so we can move the center view to left, right.....some function like the viewDesk project in GITHUB), sometimes there are many (about 10+) timescroller in the tableview....... this really draw me crazy.....
but when I comment below line, everything works fine.... but i don't know why......
this timerscroller does not work with my private navigationController(it provide some function like path2, so we can move the center view to left, right.....some function like the viewDesk project in GITHUB), sometimes there are many (about 10+) timescroller in the tableview....... this really draw me crazy.....
but when I comment below line, everything works fine.... but i don't know why......
[_tableView.superview addSubview:self]; in
(void)scrollViewDidEndDecelerating {
CGRect newFrame = [_scrollBar convertRect:self.frame toView:_tableView.superview];
self.frame = newFrame;
// Justin, remove this line, the everything works fine with the PathNavigationController
//[_tableView.superview addSubview:self];
[UIView animateWithDuration:0.3f delay:1.0f options:UIViewAnimationOptionBeginFromCurrentState animations:^{
self.alpha = 0.0f;
self.transform = CGAffineTransformMakeTranslation(10.0f, 0.0f);
} completion:^(BOOL finished) {
}];
}
everything works perfect, why we need this line of code? below method also add self to the _scrollBar
(void)scrollViewWillBeginDragging {
CGRect selfFrame = self.frame;
CGRect scrollBarFrame = _scrollBar.frame;
self.frame = CGRectMake(CGRectGetWidth(selfFrame) * -1.0f,
(CGRectGetHeight(scrollBarFrame) / 2.0f) - (CGRectGetHeight(selfFrame) / 2.0f),
CGRectGetWidth(selfFrame),
CGRectGetHeight(selfFrame));
[_scrollBar addSubview:self];
[UIView animateWithDuration:0.2f delay:0.0f options:UIViewAnimationOptionBeginFromCurrentState animations:^{
self.alpha = 1.0f;
self.transform = CGAffineTransformIdentity;
} completion:^(BOOL finished) {
}];
}
The text was updated successfully, but these errors were encountered: