Skip to content
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

- (void)setFrameForView:(UIView *)view atIndex:(NSInteger)index need judge self.window? #189

Open
c-xiaoqiang opened this issue Nov 30, 2015 · 1 comment

Comments

@c-xiaoqiang
Copy link

I use a tab bar. swipeView added in the first controller and set swipeView auto scroll. Then use a timer to scroll it.When I go to second controller,the timer is still work,but when page change,the self.window is nil. When I back to first controller.It will cause the swipeView show empty?
How can I fix it?

@pankkor
Copy link

pankkor commented May 5, 2016

Same usage pattern here. I can call reloadData while on the other tab, so self.window == nil and frames are not updated. As a result needed view is not displayed.

Here is a PR that introduces this: #70
I'm not sure which crash author was expecting to heal with it but if it only appears at ios 7.0 then maybe use __IPHONE_OS_VERSION_MIN_REQUIRED can help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants