Objective-C ã§ã®éçºã«ã ãã¶æ £ãã¦ããã®ã§ããããã¾ã ã¡ã¢ãªç®¡çã¾ããã§ããããã¨ãå¤ãã®ã§ã¾ã¨ãã¦ã¿ã¾ããã ã¡ã¢ãªã確ä¿ãã¦ãã解æ¾ããã¾ã§ã®æµã ã¡ã¢ãªã確ä¿ãã¦ãã解æ¾ããã¾ã§ã®æµãã¯ä»¥ä¸ã®å³ã®ããã«ãªãã¾ã(å³ã¯ã¢ããã«ã®ãµã¤ãããå¼ç¨)ã alloc ã¾ã㯠init ããã¨åç §ã«ã¦ã³ãã1ã«ãªãã¾ã alloc ã¾ã㯠init ç³»ã¡ã½ãããå¼ã¶ã¨åç §ã«ã¦ã³ãã1ã«ãªãã¾ãã ãã®ããã«æ¸ããã®ã¯ãã¯ã©ã¹ã®ä»æ§ã«ãã£ã¦ alloc ã¡ã½ãã㧠retainCount ã1ã«ãªããªãã¸ã§ã¯ã㨠init ç³»ã®ã¡ã½ãã㧠retainCount ã1ã«ãªããªãã¸ã§ã¯ããããããã§ããalloc 㨠init ã¯ã»ããã§å¼ã°ãããã¨ãã»ã¨ãã©ãªã®ã§ãã®éããåé¡ã«ãªããã¨ã¯ãªãã¨æãã¾ãã念ã®ããã int main() { /* allocã§åç §ã«ã¦ã³ã1 */ NS
{{#tags}}- {{label}}
{{/tags}}