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

iOS 15.0 Crash #437

Open
MuhammadMazhar313 opened this issue Sep 23, 2021 · 8 comments
Open

iOS 15.0 Crash #437

MuhammadMazhar313 opened this issue Sep 23, 2021 · 8 comments

Comments

@MuhammadMazhar313
Copy link

MuhammadMazhar313 commented Sep 23, 2021

iOS 15.0 make a crash on
"[super layoutSubviews]", when calling tableView.reloadData() or view.layoutIfNeeded()

methid: - (void)layoutSubviews
File : SWTableViewCell.m

@OCer
Copy link

OCer commented Sep 23, 2021

#431

@OCer
Copy link

OCer commented Sep 23, 2021

// if (![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView])
// {
// // iOS 7
// contentViewParent = [self.subviews objectAtIndex:0];
// clipViewParent = self;
// }

@MuhammadMazhar313
Copy link
Author

@OCer Thank you for your answer.

The thread you shared was for iOS 14 crash. but I am facing the crash on iOS 15 beta and iOS 15.0.

Note: I am not facing that previous issue of ""![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView] is out of range""

please suggest some answer for my case . Thanks

@AshwiniAT
Copy link

Hi I am facing the same problem , In iOS 15 it is crashing on layoutSubviews method at SWTableViewCell.m, Pls update if it is fixed.

@markdurante
Copy link

I was facing the same problem, too. OCer's recommendation, to comment out that block in SWTableViewCell.m:94-99 resolved it for me. Thanks @OCer !

@tejas786u
Copy link

Facing the same issue in iOS15, in iOS14 it was running very smoothly but in iOS15 it crashes every time when tableview reloaded.
Commenting the code suggested by @OCer works for me.
Thanks a lot.

@TomerPicker
Copy link

Hi. I was facing the same issue as well. @OCer suggestions works perfect for me.
How do you guys handle the fact that every time that someone which works with me on the same project does pod install that change in the library might be unsaved?

@markdurante
Copy link

Hi @TomerPicker , this may not be "best practice", but because this situation is not altogether uncommon, I actually don't use pods in my projects. Rather, I check out the 3rd party library source code and include that code in my own project (and hence its own repo), so I can make changes and not worry about them getting clobbered accidentally.

The "proper" way to handle this kind of thing, however, would be for the fix to be merged into the project (SWTableViewCell) and a new version produced and thus enjoyed by all.

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

6 participants