methods that start with "copy", "create", "new", "alloc", or "retain"

来源:互联网 发布:mac pro type c 编辑:程序博客网 时间:2024/06/06 19:29

“Object with a +0 retain count returned to caller where a +1 (owning) retain count is expected




methods that start with "copy", "create", "new", "alloc", or "retain", must return an object that has been retained, ie, the caller must release it.



http://stackoverflow.com/questions/15145491/object-with-a-0-retain-count-returned-to-caller-where-a-1-owning-retain-coun

原创粉丝点击