title: iOS return block value from method
body: <p>How I can return variable "myDoub(for example=65)" out of method and out block ??</p>
  
  <pre><code>- (double)executeRequestUrlString:(NSString *)urlString withBlock:(double (^)(double myDoub))block {
      [NSURLConnection sendAsynchronousRequest:request
                                         queue:[NSOperationQueue mainQueue]
                             completionHandler:^(NSURLResponse *response,
                                                 NSData *data,
                                                 NSError *error) {
                                     if (!error){
                                        //data = 65; for example
                                         block(data);
                                     }
                                 }];
  
      return block(data);  // ???????? This NOT work
  }
  
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      //
      .......
      //
      double myNewDouble =  [self executeRequestUrlString:fullUrlImage withBlock:^double(double myDoub) {
          return myDoub;
      }];
  
      // how i can get here variable "myDoub=65" ????
  
  }
  </code></pre>