ios - ARC: copy method -


I have a page where the autoplay is called and a method is called. I make a copy of CXMLELement in that method, and use it under my project ARC.

  (zero) Update: (cxmilement) element {CXMLElement * node = [element copy]; PassToAnotherMethod (node); }   

(or)

  (zero) update: (cxmalement) element {self. Xml = [element copy]; // xml class has a strong proprietor which can be used in other ways)   

When I use the Allocation Tool, I think the copy element is at all Is not released. Here's what the problem might be. Please help me what should be done to issue the node that has been copied.

When you copy the element, it means that you create a new pointer for the same object The node works as a new object, as soon as the current execution is over, it will automatically be issued when a new reference is present for the same object. (If you are sending a node instance to another object then refers to the pointer to another object node)

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -