Do you need to free int in objective-c? How can we say whether something needs to be freed or not?
You should read the following: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/MemoryMgmt/MemoryMgmt.html
You do not need to allocate an integer unless you perform dynamic allocation.
This is more a question C ..
double, float, int and char do not need to be freed because they are not allocated dynamically, unless you are doing something like this:
int *toto = new int(1);
;-). (NSString, NSArray ..) ).
, .
Source: https://habr.com/ru/post/1759834/More articles:Can I use any Android phone for application development? - androidRotary 2d rectangular intersecting points or region - c ++Problem with GROUP BY CASE - sqlRotated 2d Rectangle Intersection Detection - c ++Are there any math libraries for F #? - mathQT / WebKit GUI transfers selected HTML element data to Qt application - qtWPF user control design patterns. MVVM? - c #Fuzzy logic in java - javaпочему делегат методы для CurrentLotion (CLLocationManager) не вызывается в iOS4.0? - iphoneHow to convert a Word document to XML using PHP? - xmlAll Articles