-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use pass-in animation flag when scrolling pager view #41
base: master
Are you sure you want to change the base?
Conversation
pushBtn.frame = CGRectMake(0, 0, 100, 40); | ||
pushBtn.center = CGPointMake(self.view.center.x, self.view.center.y + 160); | ||
[self.view addSubview:pushBtn]; | ||
_pushBtn = pushBtn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在这里添加了一个点击之后push一个新的viewController的按钮
[obj endAppearanceTransition]; | ||
}]; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
添加TYPagerController将自己的出现和隐藏和事件传递出去的代码;
不然在TYPagerController上的child view controller在由于去掉导航栏栈中的其他控制器或者去掉presented view controller而导致的出现都不会有事件;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestPushViewController 是CustomViewController上的push按钮弹出的控制器;
在不加和加入以上代码的情况下:
断点TestPushViewController的viewWillAppear和viewWillDisappear事件就能够看到区别;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试了吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我自己在使用
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,这个没有考虑到
使用传入动画参数决定是否动画