当您没有在目标C中列出任何内容时,适当的默认属性是什么?
例如,如果我写这个:
@property float value;
Run Code Online (Sandbox Code Playgroud)
默认值是什么,比如它是只读的,是否会保留......等等?
这很好,我们都知道:
NSString *textoutput = @"Hello";
outLabel.text = textoutput;
Run Code Online (Sandbox Code Playgroud)
但是,如果要在该NSString语句中包含变量,如下所示:
NSString *textoutput =@"Hello" Variable;
Run Code Online (Sandbox Code Playgroud)
在C++中我知道什么时候我cout想要包含一个变量我所做的就像这样:
cout << "Hello" << variableName << endl;
Run Code Online (Sandbox Code Playgroud)
所以我试图用Objective-C来实现它,但我不知道如何实现.