アプリにコードのこの部分があります
(void) trackWithCategory:(NSString*)category withAction:(NSString*)action withValue:(float)value
{
AppController *ac = (AppController*) [UIApplication sharedApplication].delegate;
BOOL result = [ac.tracker trackEventWithCategory:category
withAction:action
withLabel:[UIDevice currentDevice].uniqueIdentifier
withValue:[NSNumber numberWithInt:(int)(value+0.5)]];
if (!result)
NSLog(@"Google Analytics track event failed");
}
ビルドしようとすると、次の行に関するエラーが表示されます。
withLabel:[UIDevice currentDevice].uniqueIdentifier
それ
uniqueidentifier
は正しい、ios 5で最初に非推奨です
どうすれば修正できますか?どうすれば大丈夫になるように別の方法で書くことができますか..?