2013-08-18 92 views
0

我正在使用Google Analytics for Mobile Apps iOS SDK v3。屏幕跟蹤工作正常,但我不能讓事件跟蹤工作。 Xcode中顯示錯誤:Google Analytics for Mobile Apps iOS SDK v3事件跟蹤

No known class method for selector 'createEventWithCategory:withAction:withLabel:withValue:' 

我的代碼是:

- (IBAction)callButton:(id)sender { 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345"]]; 
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];  
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"ui_action" 
                withAction:@"button_press" 
                withLabel:@"play_button" 
                withValue:nil] build]]; 
} 
+0

有史以來最嚴重的問題。 – tasomaniac

回答

3

嘗試:

[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"ui_action" 
                 action:@"button_press" 
                 label:@"play_button" 
                 value:nil] build]]; 
+0

謝謝!有效! – Art

+0

謝謝!工作得很好。 – earok

相關問題