P
P
Petrushka2015-02-25 20:36:27
Objective-C
Petrushka, 2015-02-25 20:36:27

Objective c working with memory?

Good day, I'm learning Obzh-S, I got to work with memory, and so, I have a question,
do I need to bother about the number of links to the object, if I write codes in the auto release pool?
I heard that when you write for devices, you need to manually follow the links, is that so?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManWithBear, 2015-02-25
@ManWithBear

Yes need.
You no longer need to send release/retain messages yourself. But strong/weak references must be taken into account so that loops are not created that ARC cannot solve on its own.

F
feniksqip, 2015-03-28
@feniksqip

Just create the properties you need! retain is a synonym for strong. this is a more "strict" reference to the object, weak - weak.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question