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

    <legend id='a1ZiR'><style id='a1ZiR'><dir id='a1ZiR'><q id='a1ZiR'></q></dir></style></legend>
  1. <i id='a1ZiR'><tr id='a1ZiR'><dt id='a1ZiR'><q id='a1ZiR'><span id='a1ZiR'><b id='a1ZiR'><form id='a1ZiR'><ins id='a1ZiR'></ins><ul id='a1ZiR'></ul><sub id='a1ZiR'></sub></form><legend id='a1ZiR'></legend><bdo id='a1ZiR'><pre id='a1ZiR'><center id='a1ZiR'></center></pre></bdo></b><th id='a1ZiR'></th></span></q></dt></tr></i><div id='a1ZiR'><tfoot id='a1ZiR'></tfoot><dl id='a1ZiR'><fieldset id='a1ZiR'></fieldset></dl></div>
    • <bdo id='a1ZiR'></bdo><ul id='a1ZiR'></ul>

    <tfoot id='a1ZiR'></tfoot>

      保留和复制的区别?

      Difference between retain and copy?(保留和复制的区别?)

      • <bdo id='WpAdw'></bdo><ul id='WpAdw'></ul>

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

                <tbody id='WpAdw'></tbody>
                <legend id='WpAdw'><style id='WpAdw'><dir id='WpAdw'><q id='WpAdw'></q></dir></style></legend>
              1. <tfoot id='WpAdw'></tfoot>
                <i id='WpAdw'><tr id='WpAdw'><dt id='WpAdw'><q id='WpAdw'><span id='WpAdw'><b id='WpAdw'><form id='WpAdw'><ins id='WpAdw'></ins><ul id='WpAdw'></ul><sub id='WpAdw'></sub></form><legend id='WpAdw'></legend><bdo id='WpAdw'><pre id='WpAdw'><center id='WpAdw'></center></pre></bdo></b><th id='WpAdw'></th></span></q></dt></tr></i><div id='WpAdw'><tfoot id='WpAdw'></tfoot><dl id='WpAdw'><fieldset id='WpAdw'></fieldset></dl></div>
              2. 本文介绍了保留和复制的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                保留和复制之间到底有什么区别?它对引用计数有什么意义?

                What exactly is the difference between retain and copy? what is its significance on reference counting?

                我知道当使用 alloc/retain 分配对象时,引用计数会增加一.那么如何使用副本?

                I know that when an object is allocated using alloc/retain, reference count goes up by one. so how about using copy?

                与此相关的另一个问题是,使用之间的区别
                @property(nonatomic, retain) 和 @property(nonatomic,copy)?

                Another question relating to this is, the difference between using
                @property(nonatomic, retain) and @property(nonatomic,copy)?

                推荐答案

                retain -- 在创建的对象上完成,它只是增加引用计数.

                retain -- is done on the created object, it just increase the reference count.

                复制——创建一个新对象

                copy -- create a new object

                这篇关于保留和复制的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                what#39;s property copy means in Cocoa#39;s Framework?(like UITabBar#39;s items property)(Cocoa 框架中的属性副本是什么意思?(如 UITabBar 的 items 属性))
                Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                WebKit on th iPhone: is it possible to copy text to the clipboad with JavaScript(iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板)
                Can`t copy file from bundle to documents directory in iOS(无法将文件从捆绑包复制到 iOS 中的文档目录)
                How to copy a quot;Dictionaryquot; in Swift?(如何复制“字典在斯威夫特?)

                  <bdo id='GunwG'></bdo><ul id='GunwG'></ul>

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

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