title: Change SSL Pinning mode on runtime in AFNetworking
body: <p>We have a trouble with AFNetworking library when we check for SLL Pinning. We need to change SLL Pinning mode on runtime but changing doest not effect for some reason. For instance, we don't want to check sll pinning for first the request, but want for the other ones. Any help would be really appreciated.</p>
  
  <p>Here is how we set the SSL mode dynamically with <code>willCheckForSSLPinning</code> variable;</p>
  
  <pre><code>if ([ConnectionUtil connectedToInternet]) {
      AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  
      if (willCheckForSSLPinning) {
          manager.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModePublicKey];
      } else {
          manager.securityPolicy = [AFSecurityPolicy defaultPolicy];   
      }
      ....
  }
  </code></pre>