Prima_casaITALIA non č responsabile e non é collegata con gli annunci e non presenta nessuna garanzia / This code will work in iOS 2 and up // (spoiler: you're not going to need anything below iOS 6). // Tested in iOS 7 // In your app's UIApplicationDelegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { (...) NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if (![defaults boolForKey:@"termsAccepted"]) NSString *message = @"Your message for visitors here"; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Cookies" message:message delegate:self cancelButtonTitle:nil otherButtonTitles:@"Close message", nil]; [alert show]; } } // Elsewhere in the file: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setBool:YES forKey:@"termsAccepted"]; [defaults synchronize]; } Privacy Policy
6f1e1979baeb765218daa01add9f590f
Google+ script src="/cookiechoices.js"> Privacy Policy / This code will work in iOS 2 and up // (spoiler: you're not going to need anything below iOS 6). // Tested in iOS 7 // In your app's UIApplicationDelegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { (...) NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if (![defaults boolForKey:@"termsAccepted"]) NSString *message = @"Your message for visitors here"; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Cookies" message:message delegate:self cancelButtonTitle:nil otherButtonTitles:@"Close message", nil]; [alert show]; } } // Elsewhere in the file: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setBool:YES forKey:@"termsAccepted"]; [defaults synchronize]; } Prima_casaITALIA non č responsabile e non é collegata con gli annunci e non presenta nessuna garanzia