2014年5月26日月曜日

ブロック構文のエラー『Incompatible block pointer types・・・』

ブロック構文の記述でエラーメッセージ。
・・・まあ、例によってコピペしてきたら動かなかったわけですけども。

Incompatible block pointer types initializing 'void (^__strong)(struct ALAssetsGroup *, BOOL *)' with an expression of type 'void (^)(ALAssetsGroup *__strong, BOOL *)'

型が不正、という指摘なのだが・・・
structを外してしまえばエラーは消えるけれど、それで正常に動くかはまた当然別問題で。

他の皆様の解決方法は、
http://stackoverflow.com/questions/6944033/incompatible-block-pointer-types-initializing-voidstruct-alassetsgroup-b

・・・やっぱstruct外しただけか。不安だなー。

0 件のコメント:

コメントを投稿