Files
eqn.ios/Sources/Earthquake Network/ViewController/WaitViewController.m
T
Andrea Busi 4d8bbdc7ef Production version
Add to Git the current app version (the same available in the OriginalZip folder)
2020-07-24 15:33:53 +02:00

53 lines
1.3 KiB
Objective-C

//
// WaitViewController.m
// Earthquake Network
//
// Created by Luca Beretta on 15/10/18.
// Copyright © 2018 Luca Beretta. All rights reserved.
//
#import "WaitViewController.h"
#import "Costanti.h"
@interface WaitViewController ()
@end
@implementation WaitViewController
- (void)viewDidLoad {
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(chiudi:) name:NOTIFICA_DOWNLOAD_TERMINATO object:nil];
[NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(chiudi:) userInfo:nil repeats:NO];
// Do any additional setup after loading the view.
}
-(void)chiudi:(NSNotification *)notifica{
[self dismissViewControllerAnimated:NO completion:nil];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)dealloc{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end