Saturday, November 30, 2013

IOS what the meaning of this sentence is the club ah! Seeking answers

posts by shencaifeixia1 on 2012-07-19 23:13:45 Edit
 
@ Implementation PersonCenterViewController

@ Synthesize name = name_;
@ Synthesize sex = sex_;
@ Synthesize QQ = QQ_;


One of the "name_", "sex_", "QQ_" statement can not be found, what is the use of it, seeking answers! !
Reply:
Set the alias you look carefully window @ synthesize window = _window;
Behind the usage is [_window release];
Reply:
Set the alias you look carefully window @ synthesize window = _window;
Behind the usage is [_window release];
Reply:
"Name_", "sex_", "QQ_" is an instance variable PersonCenterViewController of

However, the external display properties is indeed name, sex, QQ

You can take a look. H

Should write the @ property ... name;


The real purpose is to properties and instance variables names are inconsistent

Reply:
Header file which should have declared.

@ Property declaration can get rid of the creation process (simplified code) access method and the modified method. It combines with the @ synthesize, is to tell the compiler to create a modified method and set method at compile time, but the bottom is still to declare instance variables do not need to modify the definition of access methods and methods.

You should have a look at these three variables declared inside you. H file.
Reply:
references, 4th Floor reply:
header file should have declared.

@ Property declaration can get rid of the creation process (simplified code) access method and the modified method. It combines with the @ synthesize, is to tell the compiler to create a modified method and set method at compile time, but the bottom is still to declare instance variables do not need to modify the definition of access methods and methods.

You should have a look at these three variables declared inside you. H file.

No pro, I do not go with command points, and the header file is not declared. . .




Reply:
references, 5th Floor reply:
references, 4th Floor reply:

Header file which should have declared.

@ Property declaration can get rid of the creation process (simplified code) access method and the modified method. It combines with the @ synthesize, is to tell the compiler to create a modified method and set method at compile time, but the bottom is still to declare instance variables do not need to modify the definition of access methods and methods.

You should have a look at these three variables declared inside you. H file.

No pro, I do not go with command points, and header files do not ......


Does not declare pull, except to create the access method used by old-fashioned methods and modify the method. Instead of using @ property
Reply:
This situation is entirely possible, but you must write the file attributes h or m @ property (nonatomic, retain) name;.. Etc. Such h in ios system will automatically generate a name for you or _name or name.. _ or the other.
Reply:
Followed by an equal sign is to set an alias to avoid getter and instance variables of the same name, and sometimes the same, and it can not tell when the call is an instance variable getter or an error occurs, so add an underscore, do instance variables, which are common practice, of course, can be the difference between an alias
Reply:
Stanford is looking to develop iphone video to see it, talk about it in detail. Youku and Netease have.
Reply:
Agree upstairs
Reply:
Define a property in the h file, @ property (nonatomic, strong) UIButton * touchButton;. Then m file @ implementation class name written below @ synthesize touchButton = xxxx;. Xxxx can be written in the name you want to define, as m_touchButton. At this point, m_touchButton was a member variable of the class, no special at. H file written specifically declare member variables again. The difference between the member variables and attributes are instances of the class can access the property, but can not access the member variables. @ Synthesize touchButton = xxxx; however, avoided writing get and set methods and member variables and properties correspond
Reply:
Synchronization problems attributes, alias settings wrong, if you use the @ synthesize it means to generate default attributes, so you will need to set up and synchronize your unity
Reply:
Stanford is looking to develop iphone video to see it, talk about it in detail. Youku and Netease have

No comments:

Post a Comment