Skip to content

Commit

Permalink
[TIMOB-25373] : iOS - Search result view of List did not close when w…
Browse files Browse the repository at this point in the history
… idow containing list view get closed (#9508)

* [TIMOB-25373] : iOS - Search result view of List did not close when widow containing list view get closed

* [TIMOB-25373] : Set searchresultupdater to nil in dealloc
  • Loading branch information
vijaysingh-axway authored and hansemannn committed Oct 11, 2017
1 parent cd324e9 commit 8293c27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iphone/Classes/TiUIListView.m
Expand Up @@ -100,6 +100,10 @@ - (id)init

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

Expand All @@ -120,6 +124,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
Expand Up @@ -312,6 +312,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

0 comments on commit 8293c27

Please sign in to comment.