1. <tfoot id='Q8Vom'></tfoot>

      <legend id='Q8Vom'><style id='Q8Vom'><dir id='Q8Vom'><q id='Q8Vom'></q></dir></style></legend>
        • <bdo id='Q8Vom'></bdo><ul id='Q8Vom'></ul>

        <i id='Q8Vom'><tr id='Q8Vom'><dt id='Q8Vom'><q id='Q8Vom'><span id='Q8Vom'><b id='Q8Vom'><form id='Q8Vom'><ins id='Q8Vom'></ins><ul id='Q8Vom'></ul><sub id='Q8Vom'></sub></form><legend id='Q8Vom'></legend><bdo id='Q8Vom'><pre id='Q8Vom'><center id='Q8Vom'></center></pre></bdo></b><th id='Q8Vom'></th></span></q></dt></tr></i><div id='Q8Vom'><tfoot id='Q8Vom'></tfoot><dl id='Q8Vom'><fieldset id='Q8Vom'></fieldset></dl></div>

      1. <small id='Q8Vom'></small><noframes id='Q8Vom'>

        Objective-C中的普通铸造与桥梁铸造

        Normal casting vs bridge casting in Objective - C(Objective-C中的普通铸造与桥梁铸造)
        <i id='GwIkA'><tr id='GwIkA'><dt id='GwIkA'><q id='GwIkA'><span id='GwIkA'><b id='GwIkA'><form id='GwIkA'><ins id='GwIkA'></ins><ul id='GwIkA'></ul><sub id='GwIkA'></sub></form><legend id='GwIkA'></legend><bdo id='GwIkA'><pre id='GwIkA'><center id='GwIkA'></center></pre></bdo></b><th id='GwIkA'></th></span></q></dt></tr></i><div id='GwIkA'><tfoot id='GwIkA'></tfoot><dl id='GwIkA'><fieldset id='GwIkA'></fieldset></dl></div>

            <small id='GwIkA'></small><noframes id='GwIkA'>

            1. <tfoot id='GwIkA'></tfoot>
                <bdo id='GwIkA'></bdo><ul id='GwIkA'></ul>

                  <legend id='GwIkA'><style id='GwIkA'><dir id='GwIkA'><q id='GwIkA'></q></dir></style></legend>

                    <tbody id='GwIkA'></tbody>
                1. 本文介绍了Objective-C中的普通铸造与桥梁铸造的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  两者有什么不同,

                  (CFDataRef) data
                  

                  &

                  (__bridge CFDataRef) data
                  

                  Xcode 要求我将其更改为桥接.是因为 ARC 吗?

                  Xcode asked me to change it to bridge. Is that because of ARC?

                  推荐答案

                  是的,当您在免费桥接类型之间进行转换时,需要给 ARC 提供说明.在这种情况下,__bridge 告诉 ARC 什么都不做,所以它的行为与之前的标准转换相同.

                  Yes, ARC needs to be given instructions when you cast between toll-free bridged types. In this case __bridge tells ARC to do nothing, so this will behave the same as the previous standard cast.

                  您可以阅读 过渡到 ARC 发行说明有关进行桥接演员表的不同方法的更多详细信息.

                  You can read the Transitioning to ARC Release Notes for more details on the different ways to do bridging casts.

                  这篇关于Objective-C中的普通铸造与桥梁铸造的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                    <bdo id='bMyBA'></bdo><ul id='bMyBA'></ul>
                    <tfoot id='bMyBA'></tfoot>

                      <i id='bMyBA'><tr id='bMyBA'><dt id='bMyBA'><q id='bMyBA'><span id='bMyBA'><b id='bMyBA'><form id='bMyBA'><ins id='bMyBA'></ins><ul id='bMyBA'></ul><sub id='bMyBA'></sub></form><legend id='bMyBA'></legend><bdo id='bMyBA'><pre id='bMyBA'><center id='bMyBA'></center></pre></bdo></b><th id='bMyBA'></th></span></q></dt></tr></i><div id='bMyBA'><tfoot id='bMyBA'></tfoot><dl id='bMyBA'><fieldset id='bMyBA'></fieldset></dl></div>

                      <small id='bMyBA'></small><noframes id='bMyBA'>

                        <legend id='bMyBA'><style id='bMyBA'><dir id='bMyBA'><q id='bMyBA'></q></dir></style></legend>
                            <tbody id='bMyBA'></tbody>