This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) sendKahunaDataCall { | |
NSString *appVer = [[NSBundle mainBundle] infoDictionary][@"CFBundleVersion"]; | |
NSString *appName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"]; | |
NSString *key = @"MY KEY HERE"; | |
NSString *udid = [[NSUserDefaults standardUserDefaults] objectForKey:@"uniqueID"]; | |
if (!udid) | |
{ | |
CFUUIDRef theUDID = CFUUIDCreate(NULL); | |
CFStringRef string = CFUUIDCreateString(NULL, theUDID); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[self sendKahunaDataCall]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)FacebookShare:(id)sender{ | |
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { | |
mySLComposerSheet2 = [[SLComposeViewController alloc]init]; | |
} | |
mySLComposerSheet2 = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; | |
[mySLComposerSheet2 setInitialText:@"Posted to Facebook from Kahuna Practice App!"]; | |
[self presentViewController:mySLComposerSheet2 animated:YES completion:nil]; | |
[KahunaAnalytics trackEvent:@"Used Facebook"]; |