diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2013-12-21 17:37:19 -0600 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2013-12-30 18:14:04 -0600 |
commit | 5d5f3309faf8c6cf0bb5242ea7220e4ae772d6a3 (patch) | |
tree | fd6e9c13b2481b886e12d7d366850590d9dde91a | |
parent | e97b02c0d5149363f96cf80aa0dd3d89ec28298d (diff) |
Add more description to @property getters and setters.
-rw-r--r-- | objective-c.html.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown index 1ed0ed58..0a197e03 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -233,6 +233,9 @@ int main (int argc, const char * argv[]) @property int count; @property (copy) NSString *name; // Copy the object during assignment. @property (readonly) id data; // Declare only a getter method. +// To access variable in implementation file, use '_' followed by variable name: +_count = 5; +NSLog("%@", _count); // => prints 5 to console // Methods +/- (return type)methodSignature:(Parameter Type *)parameterName; |