mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Add forgotten asterisk in MyClass
implementation (#4289)
Without it, the program doesn't compile: ``` Interface type cannot be statically allocated ``` Co-authored-by: Reverend Homer <mk.43.ecko@gmail.com>
This commit is contained in:
parent
b73467ba0d
commit
6cf903f44e
@ -387,7 +387,7 @@ if ([myClass respondsToSelector:selectorVar]) { // Checks if class contains meth
|
||||
// Implement the methods in an implementation (MyClass.m) file:
|
||||
@implementation MyClass {
|
||||
long distance; // Private access instance variable
|
||||
NSNumber height;
|
||||
NSNumber *height;
|
||||
}
|
||||
|
||||
// To access a public variable from the interface file, use '_' followed by variable name:
|
||||
|
Loading…
Reference in New Issue
Block a user