I really need an explanation - I have a few questions, and now I'm all mixed up.
Here is a simple class interface:
#import <UIKit/UIKit.h> @interface Car : NSObject{ NSInteger carID; NSString *carName; } @property (nonatomic, assign) NSInteger carID; @property (nonatomic, copy) NSString * carName; @end
carID
NSInteger - typedef (int 32-, long 64-) - .
NSInteger
int
long
; "" ; , , .
: : Objective-C , ; , .
, ; , , - . , ( ( , )), ( ).
carID . , , :
@property (nonatomic) NSInteger carID;
, "copy" - , [object copy], .
nonatomic, ( ). , .
nonatomic
, !
, Objective-C int Pointer Int.
C
-int int.
-Pointer Int . , *. ?
Int , . ? , int. , ?
int Int?
, :
@property (nonatomic, copy) NSString * carName;
@property (nonatomic, retain) NSString * carName;
copy , , NSString . , ( ref).
, , , ( ). NSString , NSString. , . , .. (. , ..).
Source: https://habr.com/ru/post/1712600/More articles:Passive registration in an existing .NET web application? - .netDocumentation libsmbclient - sambaUnsafe C # code snippet with pointers - pointersSQL Server занимает много времени, чтобы возвращать данные в ColdFusion при использовании Flex - flexWebsite bar graphs - designWhy does the NSView framework method return incorrect results? - formattingstart-stop-daemon error - command-lineUsing CheckBox to select rows in ASP.NET GridView - c #How to save session information when redirecting from one subdomain to another? - redirectGetting maven to launch the pier (Tapestry Tutorial) - javaAll Articles