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](6_3_X) : iOS - Search result view of List did not close when widow containing list view get closed #9509

Merged
merged 2 commits into from
Oct 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ - (id)init

- (void)dealloc
{
if ([searchController isActive]) {
searchController.view.hidden = YES;
[searchController setActive:NO];
}
_tableView.delegate = nil;
_tableView.dataSource = nil;

Expand All @@ -121,6 +125,7 @@ - (void)dealloc
[_footerViewProxy setProxyObserver:nil];
[_pullViewProxy setProxyObserver:nil];
[searchController setDelegate:nil];
[searchController setSearchResultsUpdater:nil];
RELEASE_TO_NIL(_searchString);
RELEASE_TO_NIL(_searchResults);
RELEASE_TO_NIL(_pullViewWrapper);
Expand Down
5 changes: 5 additions & 0 deletions iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ -(id)init

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

if (searchField != nil) {
[searchField setDelegate:nil];
RELEASE_TO_NIL(searchField);
Expand Down