小编The*_*ayr的帖子

从iOS5通过引用和objc_unretainedPointer传递

我正在尝试将SFHF钥匙串类(从这里开始)与IOS 5项目一起使用.我成功转换了大部分课程,以遵守新的ARC规则.

我对代码的一小部分有一些麻烦,如下所示

OSStatus status = SecItemCopyMatching((CFDictionaryRef) objc_unretainedPointer(attributeQuery), (CFTypeRef *) objc_unretainedPointer(&attributeResult)
Run Code Online (Sandbox Code Playgroud)

这给出了以下语法问题:

warning: Semantic Issue: Incompatible pointer types passing 'NSDictionary *__strong *' to parameter of type 'id'
Run Code Online (Sandbox Code Playgroud)

我对iOS开发很陌生,这让我现在非常难过.任何帮助是极大的赞赏.

ios ios5 automatic-ref-counting

1
推荐指数
1
解决办法
2370
查看次数

标签 统计

automatic-ref-counting ×1

ios ×1

ios5 ×1