From 6cf903f44ef9b516ad7cf01aa1fa186641033a71 Mon Sep 17 00:00:00 2001 From: Mikhail Koviazin Date: Thu, 14 Dec 2023 22:35:29 +0700 Subject: 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 --- objective-c.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objective-c.html.markdown b/objective-c.html.markdown index c029c5fb..c179c295 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -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: -- cgit v1.2.3