Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. queue1 = dispatch_queue_create("com..queue1", DISPATCH_QUEUE_CONCURRENT);
  2.  
  3.  
  4.  
  5. for(NSDictionary *dictInfo in dataArray){
  6. dispatch_async(queue1,^(void){
  7. [[HeaderValueGenerator sharedInstance] createSignature];
  8. }
  9.  
  10. }
  11.  
  12. + (HeaderValueGenerator *)sharedInstance {
  13. static HeaderValueGenerator *sharedInstance = nil;
  14. static dispatch_once_t onceToken;
  15. dispatch_once(&onceToken, ^{
  16. instance = [[self alloc] init];
  17. }); return sharedInstance;
  18. }
  19.  
  20. -(void)createSignature{
  21. //string hashing and data encoding the header values for special header fields
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement