Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. if (isDataAvailable)
  2. [... getData];
  3.  
  4. [yourPFFile getDataInBackgroundWithBlock:^(NSData *data, NSError *error) {
  5. if (!error) {
  6. // data available here, put any operations dependent on the data existing here
  7. }
  8. else {
  9. // notify user that there was an error getting file, or handle error
  10. }
  11. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement