title: How to pass Swift Bool value to Objective-C's method?
body: <p>I have a <code>Mysevers</code> Class for network written by <code>Objective-c</code>, and now I use mixed <code>Objective-c</code> and <code>Swift</code> project.</p>
  
  <p>In my <code>Mysevers</code>, I have a method to network:</p>
  
  <pre><code>+(void)AFPOSTWithHud:(BOOL)hud andAddressname:(NSString*)addressName parmas:(NSDictionary*)parmas RequestSuccess:(void(^)(id result))success failBlcok:(void(^)(void))failBlcok
  {
      if (hud) {
          [HUD addHUD];
      }
      AFHTTPSessionManager *requestManager = [AFHTTPSessionManager manager];
  
      NSString *urlStr = [NSString stringWithFormat:@"%@%@",BASE_URL,addressName];
      NSLog(@"%@",urlStr);
  
  
      [requestManager POST:urlStr parameters:parmas progress:^(NSProgress * _Nonnull uploadProgress) {
  
      } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
  
          if (hud) {
              [HUD removeHUD];
          }
          success(responseObject);
      } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
  
      if (error != nil) {
          NSLog(@"error==%@",[error localizedDescription]);
          if (hud) {
              [HUD removeHUD];
              }
  
          }
          failBlcok();
      }];
  
  
  }
  </code></pre>
  
  <p>In the <code>Swift</code> controller, invoke the method, pass a swift Bool value <code>false</code>.</p>
  
  <pre><code> Mysevers.afpost(withHud: false, andAddressname: Global.url_fillMoreInfo, parmas: uploadDict, requestSuccess:{ (result) in
  </code></pre>
  
  <p>But, in the Mysevers class, I give a breakpoint to check the passed value, it turn out to be <code>YES</code>:</p>
  
  <pre><code>(lldb) po hud
  YES
  </code></pre>