-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Crash in iOS6.1 #139
Comments
I am in the middle of finals week at school right now I will try to take a look at this today or this weekend. Sent from my iPhone
|
@zygoat have you encountered this? |
I'm having the same problem. This should be due to some issues with the constraints programmatically added to SWTableViewCell. |
Hmm… I do see this now when running under 6.1. I don't immediately understand the cause; even commenting out SWTableViewCell's implementation of layoutSubviews doesn't prevent the exception (whose literal message is obviously not entirely correct). Will see if I can figure it out. |
I have this problem too. Even I have confirmed that auto layout is not used at all. |
Confirmed as an issue... |
Having same problem. |
I have this problem too. |
i can reproduce this as well |
I have heard of people having this problem before (autolayout and subclassed UITableViewCell's) SO has a relevant post |
Basically it seems like adding subviews directly to a UITableViewCell subclass and then adding constraints to those subviews causes problems (only in iOS 6, the problem does not seem to exist in iOS5 and 7...). @zygoat I recommend reading over that SO post, I am experimenting with some stuff now to see if I get this working on 6.x again. Sorry about the latest release everybody, the last release before autolayout was 0.2.7 so feel free to put |
Hello, I'm having the same issue. If I turn to use the 0.2.7 version it results as I cannot see any cell anymore. |
I submitted a pull request that resolves this bug. |
Thanks @MobileVet and others for picking this up. I must take responsibility for breaking it on iOS 6 with the view hierarchy changes I implemented; unfortunately I've been busy the last few weeks and haven't had a chance to dig into it, short of some initial research that led me to appreciate (and cringe at) the awkward scope of the issue. I also left a comment on #160 with rationale behind the original changes. |
Also having this problem. Any progress with this? Would really like to use this in iOS 6.1 and up. |
I have posted a pull request that resolves the bug. Check it out On Sunday, May 25, 2014, Kolade Joseph Ayo-Vaughan notifications@github.com
|
@MobileVet I tried to integrate your fix on my projet but I still have issues with it. It's not crashing anymore but when I add buttons on left and right subviews I don't have the expected behavior. |
@MobileVet I'm still getting these errors even after your fix: Assertion failure in -[JVMessageCell layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2380.17/UIView.m:5776 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. JVMessageCell's implementation of -layoutSubviews needs to call super.' JVMessageCell is a subclass of UITableViewCell fyi. Any ideas why? |
I have the same problem, hoping to quickly solve |
Decided to only support iOS 7 and up. Life has never been better. |
I am using xcode 5.1 and I have customized the cell.I also have same issue in ios6. Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. SWTableViewCell's implementation of -layoutSubviews needs to call super.' |
Any fix for this?I am having the same problem for all deployment targets.the exception shows:[super layoutsubviews] but even commenting the whole layoutsubviews seems to through the same exception..running on a tight deadline,would really appreciate some help. |
@abdi7 your best bet is to go to an older version. The only thing it changes is you have to calculate the height yourself instead of having autolayout do it. The author has chosen to move on to support only ios7 and above. |
Yeah version 0.2.7 is the last one that fully supports iOS 6. This is for two reasons, for one, iOS 7 or above has now been adopted by almost 90% of users. Also, I am now completely living on OS X Yosemite, which does not support the iOS 6 Simulator. |
I'm having the same issue,i was solved :
|
…ITests does not work
I run this demo project on my iOS6.1 simulator. But got crashed with information belows:
2014-04-24 23:39:19.772 SWTableViewCell[17539:907] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. SWTableViewCell's implementation of -layoutSubviews needs to call super.'
Any one occurs?
The text was updated successfully, but these errors were encountered: