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 14.0 crash #431

Open
frickyps opened this issue Sep 18, 2020 · 12 comments
Open

iOS 14.0 crash #431

frickyps opened this issue Sep 18, 2020 · 12 comments

Comments

@frickyps
Copy link

iOS 14.0 make a crash where ![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView] is out of range

@ChangJian2333
Copy link

[self.contentView superview];// iOS14 加入这行代码可解决此问题
if (![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView])
{
// iOS 7
contentViewParent = [self.subviews objectAtIndex:0];
clipViewParent = self;
}

@weweco123
Copy link

[self.contentView superview];// iOS14 加入这行代码可解决此问题
if (![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView])
{
// iOS 7
contentViewParent = [self.subviews objectAtIndex:0];
clipViewParent = self;
}

it's work for me

@liubang0909
Copy link

希望大佬pod更新下

@yyq747496003
Copy link

[self.contentView superview];// iOS14 加入这行代码可解决此问题
这样是不会闪退,但是再滑动第二行第一行不能收起来。

@smileEvday
Copy link

smileEvday commented Oct 23, 2020

直接删掉这一段就行

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

@connerwu
Copy link

connerwu commented Nov 2, 2020

希望大佬pod更新下

不要和蛮夷说中文

@l4nk4b3l
Copy link

l4nk4b3l commented Dec 9, 2020

Are there any instruction on how to build this thing ?

@zhanqin
Copy link

zhanqin commented Mar 5, 2021

[self.contentView superview];// iOS14 加入这行代码可解决此问题
这样是不会闪退,但是再滑动第二行第一行不能收起来。

请问你这个问题有特定机型或者系统么,我这样改了之后好像没出现你说的问题呢~

@yonas-san
Copy link

[self.contentView superview];// iOS14 加入这行代码可解决此问题
if (![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView])
{
// iOS 7
contentViewParent = [self.subviews objectAtIndex:0];
clipViewParent = self;
}

This is awesome. Thanks for sharing

@mkumaran
Copy link

mkumaran commented Jul 6, 2021

[self.contentView superview];// iOS14 加入这行代码可解决此问题
if (![NSStringFromClass([[self.subviews objectAtIndex:0] class]) isEqualToString:kTableViewCellContentView])
{
// iOS 7
contentViewParent = [self.subviews objectAtIndex:0];
clipViewParent = self;
}

This is really helpful for me. Thank you so much.

@OCer OCer mentioned this issue Sep 23, 2021
@piyushebizz2018
Copy link

Below code works for me.

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

@CCBrother
Copy link

我也是遇到了再滑动第二行,第一行不能收起来。iPhone6s 系统14.2, iPhone12 系统15.4

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