ブロックを返す関数があり、このコードは機能します。
typedef void (^AuthenticationBlock)(NSURLAuthenticationChallenge* challenge);
+ (AuthenticationBlock) defaultAuthenticationBlock
{
return ^(NSURLAuthenticationChallenge *challenge)
{
....
しかし、ブロックがブール値を返すように変更したいと思います。
typedef BOOL (^AuthenticationBlock)(NSURLAuthenticationChallenge* challenge);
しかし、returnステートメントをこの変更でコンパイルするために何をする必要があるのか理解できません