Production version
Add to Git the current app version (the same available in the OriginalZip folder)
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// VersionePROViewController.m
|
||||
// Earthquake Network
|
||||
//
|
||||
// Created by Luca Beretta on 16/10/18.
|
||||
// Copyright © 2018 Luca Beretta. All rights reserved.
|
||||
//
|
||||
|
||||
#import "VersionePROViewController.h"
|
||||
#import "Earthquake_Network-Swift.h"
|
||||
#import "costanti.h"
|
||||
#import "EQNUtility.h"
|
||||
|
||||
@interface VersionePROViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation VersionePROViewController
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
UIView *viewNavigationBar = [[UIView alloc] initWithFrame:CGRectMake(-18, 5, 150, 44)];
|
||||
UIImageView *imageLogo = [[UIImageView alloc] initWithFrame:CGRectMake(-18, 5, 38, 38)];
|
||||
imageLogo.image = [UIImage imageNamed:@"distquake_app_wave"];
|
||||
[viewNavigationBar addSubview:imageLogo];
|
||||
UILabel *textForNavi = [[UILabel alloc] initWithFrame:CGRectMake(25, 5, 160, 38)];
|
||||
textForNavi.text = NSLocalizedString(@"Rilevatore Terremoti", @"titolo navigation bar");
|
||||
[viewNavigationBar addSubview:textForNavi];
|
||||
self.navigationItem.titleView = viewNavigationBar;
|
||||
|
||||
/*
|
||||
VersioneProProducts.store.requestProducts{ [weak self] success, products in
|
||||
guard let self = self else { return }
|
||||
if success {
|
||||
self.products = products!
|
||||
|
||||
self.tableView.reloadData()
|
||||
}
|
||||
|
||||
self.refreshControl?.endRefreshing()
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning {
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
-(BOOL)prezzoScontato{
|
||||
|
||||
NSUInteger i = [[NSUserDefaults standardUserDefaults] integerForKey:CONTEGGIO_APERTURE_PER_SCONTO];
|
||||
NSDate *date = [[NSUserDefaults standardUserDefaults] objectForKey:DATA_APERTURE_PER_SCONTO];
|
||||
NSUInteger minute = [EQNUtility getDifferenceMinute:date];
|
||||
|
||||
if (i >= 15 && minute <= TEMPO_APERTURE_PER_SCONTO)
|
||||
return YES;
|
||||
else
|
||||
return NO;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
#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
|
||||
Reference in New Issue
Block a user