Passing bool in Objective-C
<p>I have a framework written in Obj-C that I have to amend and I am having great difficulty trying to have an Obj-C function take a boolean. I am a Swift developer.</p>
<p>How can I do this in Obj C?</p>
<pre><code>- (void)loginWithSamlToken:(Boolean *)saml credentialToken:(NSString *)credentialToken completionHandler:(METLogInCompletionHandler)completionHandler {
    [self loginWithMethodName:@&quot;login&quot; parameters:@[@{@&quot;saml&quot;: saml}, @{@&quot;credentialToken&quot;: credentialToken}] completionHandler:completionHandler];
}
</code></pre>
<p>I get error on the second line</p>
<blockquote>
<p>{@&quot;saml&quot;: <strong>saml</strong>}&quot;: Collection element of type 'Boolean *' (aka
'unsigned char *') is not an Objective-C object</p>
</blockquote>
<p>How can I pass a Bool in Obj-C?  Any help would be very much appreiated</p>
<p>Any help with this conversion would be very much appreaciated ! thank you</p>