mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 18:42:47 +02:00
Move refreshLocalContacts call to viewDidAppear.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user