Wednesday 15 August 2012

objective c - Weird syntax or property declaration -


I am a little confused in following the syntax:

  @property (nonatomic, Getter = eFail) bull failure; // Return yes, if image fails to download  

specifically line getter = isFailed .

If I think right, the Greater simple way is as follows:

  - (BOOL) failed {return _failed; }  

What does this mean?

Getter = Syntax tells the compiler that calls for the use of the property What is the procedure to do; Without it, this is the default for the name of the property, then your example code will work if the declaration did not contain getter = , but with it you

  - (BOOL) Must use {return_failed} / code> 

No comments:

Post a Comment