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

[TIMOB-25373] : iOS - Search result view of List did not close when w idow containing list view get closed #9508

Merged
merged 4 commits into from Oct 11, 2017

Conversation

vijaysingh-axway
Copy link
Contributor

@@ -312,6 +312,11 @@ - (id)init

- (void)dealloc
{
if ([searchController isActive]) {
searchController.view.hidden = YES;
[searchController setActive:NO];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not remove it's delegates and nil it as well (like the others)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is already there. See few lines below in this function :) . You will find -

searchController.searchResultsUpdater = nil;

searchController.delegate = nil;
RELEASE_TO_NIL(searchController);

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see this for the list-view, but not the table-view. Am I missing a snippet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. You can see at line 338.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I mean list-view, I cannot see nil'ing searchResultsUpdater in TiUIListView.m.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. You are right. Done.

@build
Copy link
Contributor

build commented Oct 11, 2017

Warnings
⚠️

🔬 There are library changes, but no changes to the unit tests. That's OK as long as you're refactoring existing code

Generated by 🚫 dangerJS

@hansemannn
Copy link
Collaborator

@ewieberappc Build is passing now! Merging here for consistency.

@hansemannn hansemannn merged commit 8293c27 into tidev:master Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants