Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Last active April 22, 2020 21:38
Show Gist options
  • Save flurrydev/b804d8ae8f76864d8b79248f57f3a9ef to your computer and use it in GitHub Desktop.
Save flurrydev/b804d8ae8f76864d8b79248f57f3a9ef to your computer and use it in GitHub Desktop.
iOS User Properties
NSArray *array = @[@"value1", @"value2", @"value3"];
//Sets and replaces (if any exist) the values for a property.
[FlurryUserProperties set:@"key" Values: array];
[FlurryUserProperties set:@"key" Value: @"string"];
//Adds the values or single value to the property.
[FlurryUserProperties add:@"key" Values: array];
[FlurryUserProperties add:@"key" Value: @"string"];
//Removes the values or single value from the property
[FlurryUserProperties remove:@"key" Values: array];
[FlurryUserProperties remove:@"key" Value: @"string"];
//Removes all values from the property
[FlurryUserProperties remove:@"key"];
//Sets key to true
[FlurryUserProperties flag:@"key"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment