Skip to content

Instantly share code, notes, and snippets.

@enigmaticape
Created May 20, 2014 15:28
Show Gist options
  • Save enigmaticape/6ced49c17ee890c61ebd to your computer and use it in GitHub Desktop.
Save enigmaticape/6ced49c17ee890c61ebd to your computer and use it in GitHub Desktop.
Example of using SKRequest+Blocks
SKRequest * arequest = (
[[SKReceiptRefreshRequest alloc]
initWithReceiptProperties:nil
]
);
[arequest
startWithCompletion:^(SKRequest *request, NSError *error)
{
if( error ) {
// Bad times
}
else {
// Good times
}
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment