問題タブ [stringwithstring]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
objective-c - Obj-C: [NSString stringWithString:@"string"] 対 @"string"
私は人々がのようなことをしているのを見てきました[NSString stringWithString:@"some string"]
。なぜそうしないの@"some string"
ですか?
例として、 を見てくださいfacebook-ios-sdk
。
+[NSString stringWithString:] -- ポイントは何ですか? は同様の質問ですが、回答のどれも[NSString stringWithString:@"some string"]
vs.に対応していません@"some string"
。
objective-c - Objective CstringWithFormatifステートメント
私はこれにかなり慣れていません-NSStringstringWithFormatをいくつかのテキストと比較しようとしています。stringWithStringで正常に動作します。stringWithFormatで機能しない理由がわかりませんか?誰もが提供できる助けに感謝します!
ios - XCode警告:'stringWithString'の使用:リテラルとの併用は冗長です
次の警告が表示されました
Using 'stringWithString': with a literal is redundant
メソッドを使用している間usingWithString