Is there anything that makes memory management easier for programming iPhone / iPod Touch applications?

I have only used Java and Ruby for so long that I no longer enjoy tracking my own memory. I can’t do it, I can. I just do not want.

Any special tricks, libraries or anything else that you learned to work with memory in iApps, put on me here.

+3
source share
8 answers

I highly recommend getting Started Developing iPhone: Explore iPhone SDK .

, , - Clang Static Analyzer. , . Apple X-Code;)

+3

, . , , , "retainCount" . .

"alloc", "new" "copy" "retain", . , .

, "release", "autorelease", .

. .

+5

. , - , , , , .

, . -.

, , , , . , , , . , , , .

, iPhone. .

+2

. , .

  • dealloc ( "" ).
  • "" "" "" , , "" dealloc.
  • "" "" "" , , , "" .
  • "" "" "" - , , ... - . ( autorelease, . , . .)

, , , , .

"". , . , , , .

... , Apple . "" , . , , , . : Core Data iPhone ( ), ManagedObjectContext. , , .

+2

, /answrers, . , .

+1

, , Mono iPhone, , iPhone .Net(#, VB.Net ..) .

0

Dot Net Rocks

http://www.dotnetrocks.com/default.aspx?showNum=454

, , Objective C 2.0 . , .

:

0

This may be inconvenient based on Java or Python (I did), but once you get used to it, it is just natural. You create objects created with allocor copy, and you must free them, and something else. Most of the time you will create objects with auto-implementation (collections, strings).

0
source

Source: https://habr.com/ru/post/1711018/


All Articles