Skip to content

Instantly share code, notes, and snippets.

@Kevinwlee
Created July 14, 2014 15:53
Show Gist options
  • Save Kevinwlee/c0e27e88dbd8bdeb135d to your computer and use it in GitHub Desktop.
Save Kevinwlee/c0e27e88dbd8bdeb135d to your computer and use it in GitHub Desktop.
Get items that contain a key path
[[CCHVault sharedInstance] getItemsWithTags:@[@"sample-tag"] keyPath:@"employee.first_name" value:nil completionHandler:^(NSArray *responses, NSError *error) {
if (error) {
//handle errors
} else {
//the responses will contain all vault items that have the key path employe.first_name
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment