refactor: Reorganize some constants
This commit is contained in:
@@ -9,6 +9,13 @@
|
||||
#ifndef Costanti_h
|
||||
#define Costanti_h
|
||||
|
||||
#pragma mark - Urls
|
||||
|
||||
static NSString * const EQNWebsiteAddress = @"https://www.sismo.app";
|
||||
static NSString * const EQNTwitterProfileUrl = @"https://twitter.com/SismoDetector";
|
||||
|
||||
#pragma mark - Math Constants
|
||||
|
||||
// costante gravitazionale
|
||||
#define G 9.81
|
||||
|
||||
@@ -44,17 +51,10 @@
|
||||
|
||||
#define URL_LINK_MESSAGGIO @"http://www.finazzieng.it/mysql/distquake_download_message.php"
|
||||
|
||||
// twitter
|
||||
#define TWITTER_LINK @"https://twitter.com/SismoDetector"
|
||||
|
||||
#define TEMPO_INVIO_MESSAGGIO 5
|
||||
#define TEMPO_INVIO_COMMENTO 30
|
||||
|
||||
|
||||
// informazioni menu sinistra
|
||||
static NSString * const EQNWebsiteAddress = @"https://www.sismo.app";
|
||||
|
||||
|
||||
// download reti sismiche
|
||||
#define URL_SERVER_DOWNLOAD_RETI_SISMICHE @"http://srv.earthquakenetwork.it/distquake_download_automatic14.php"
|
||||
// Tsunami
|
||||
@@ -288,8 +288,3 @@ typedef enum : NSInteger {
|
||||
#define EQN_SISMI_FORTI @"EQN_SISMI_FORTI"
|
||||
#define EQN_SISMI_QUALSIASI_MAGNITUDO @"EQN_SISMI_QUALSIASI_MAGNITUDO"
|
||||
#define EQN_SISMI_MODIFICA_IMPOSTAZIONI @"EQN_SISMI_MODIFICA_IMPOSTAZIONI"
|
||||
|
||||
|
||||
#define IS_IPHONE ( [[[UIDevice currentDevice] model] isEqualToString:@"iPhone"] )
|
||||
#define IS_HEIGHT_GTE_568 [[UIScreen mainScreen ] bounds].size.height <= 570.0f
|
||||
#define IS_IPHONE_5 ( IS_IPHONE && IS_HEIGHT_GTE_568 )
|
||||
|
||||
@@ -472,12 +472,10 @@
|
||||
[self presentViewController:alertController animated:YES completion:nil];
|
||||
}
|
||||
|
||||
-(void)apriTwitter:(id)sender{
|
||||
|
||||
// TWITTER_LINK
|
||||
|
||||
- (void)apriTwitter:(id)sender
|
||||
{
|
||||
UIApplication *mySafari = [UIApplication sharedApplication];
|
||||
NSURL *myURL = [[NSURL alloc]initWithString:TWITTER_LINK];
|
||||
NSURL *myURL = [[NSURL alloc]initWithString:EQNTwitterProfileUrl];
|
||||
[mySafari openURL:myURL options:@{} completionHandler:nil];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user