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

Drop iOS 7 support not to crush in iOS 14 #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

imaizume
Copy link

My app suddenly crushed when I built it with Xcode 12.0 beta 6 and run in iOS 14 beta 8.
I found that self.subviews returns 0 during cell initialization for iOS 14.
The code was for supporting iOS 7 but it's reasonable to drop it.
After this change, the crush seems no longer appear.

@@ -91,12 +89,7 @@ - (void)initializer
// Add the cell scroll view to the cell
UIView *contentViewParent = self;
UIView *clipViewParent = self.cellScrollView;
if (![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView])
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AT here, index out of range because of [self.subviews objectAtIndex:0] call towards self.subviews which is void.

Copy link

@galahador galahador Nov 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you remove this part of the code, the cell is not clickable, swipe doesn't work, but you can build the app. This is not a solution, for now.
No crash

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

Successfully merging this pull request may close these issues.

None yet

2 participants