i have this part of code in my app
(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");
}
and when i'm trying to build it gives me en error about this line:
withLabel:[UIDevice currentDevice].uniqueIdentifier
it rights,
uniqueidentifier
is deprecated first in ios 5
please how can i fix it ? how can i write it differently so that it will be ok .. ?