Move refreshLocalContacts call to viewDidAppear.

This commit is contained in:
Doug
2021-07-29 09:37:14 +01:00
parent e2466a3fca
commit 506004af04
@@ -84,9 +84,6 @@
[[[self class] nib] instantiateWithOwner:self options:nil];
}
// Load the local contacts for display
[self refreshLocalContacts];
// Finalize table view configuration
self.contactsTableView.delegate = self;
self.contactsTableView.dataSource = contactsDataSource; // Note: dataSource may be nil here
@@ -177,6 +174,15 @@
[self refreshContactsTable];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
// Load the local contacts for display.
// In viewDidAppear as it may trigger a request for contacts access.
[self refreshLocalContacts];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];