-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Crashing on changing orientation while UISearchController is active #51
Comments
@HamzaGhazouani One more thing I'v noticed for is that the Hope you'll be able to find solution for this, 'cause it's very critical issue. |
@Idomo Thanks for reporting, I will look at it asap, If you find a fix don't hesitate to create a PR, thanks |
@HamzaGhazouani I wish I would be able to fix this, my app is on the App Store for about a month and I don’t want users to stop using it only because of this crash. |
HI @HamzaGhazouani and @jamchen @monkeywithacupcake @Brusnikin (May you'll be able to resolve this), |
@HamzaGhazouani I'd like to release an update with bug fixes to my app, this is pretty much in my top priority right now, so please, help me with this one. |
I cannot reproduce this error. |
On which iOS version and device (simulator/real and model)? |
Fix HamzaGhazouani#51 From some reason, the fix I've tried a long time ago with iOS 13 and didn't work, now working with iOS 15.
@HamzaGhazouani Finally, after a 3.5 years, the issue has been solved! |
* Make sure `tableViewHeight` isn't less then 0.0 to prevent crash Fix #51 From some reason, the fix I've tried a long time ago with iOS 13 and didn't work, now working with iOS 15. * Fix deprecated code Fix warning: Using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead * Fix deprecated code * Fix deprecated code
Hi,
I tried using your library, it's looking very nice, but has a little problem when changing the device orientation while the
navigationItem.searchController.isActive = true
.This is the error I'm getting in the console:
After some debugging I'v noticed that the hight from the delegate is
-119
:So I tried the most obvious thing, I'v added
tableViewHeight = tableViewHeight >= 0.0 ? tableViewHeight : UITableView.automaticDimension
before the method return (line 154), but guess what?Somehow the value is still
-119
😓So I thought maybe the
UITableView.automaticDimension
is also returning-119
? so let's try justtableViewHeight = 0
.No, it didn't worked,
tableViewHeight
was still-119
. 😧Hope you'll be able to reproduce and detect how to solve this problem.
I didn't understand yet how is that possible to change the value by this way (
tableViewHeight = 0
) and it won't change, like this line doesn't exists. 😨Thanks,
Ido.
The text was updated successfully, but these errors were encountered: