forked from organicmaps/organicmaps-tmp
[ios] Detached observer on dealloc.
This commit is contained in:
parent
52223899ee
commit
6133ec13ac
2 changed files with 10 additions and 0 deletions
|
@ -33,6 +33,11 @@ extern NSString * const MapsStatusChangedNotification;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
|
|
@ -39,6 +39,11 @@ extern NSString * const MapsStatusChangedNotification;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
|
Loading…
Add table
Reference in a new issue