Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Obj C で NSString を取得し、文字列が大文字かどうかをチェックするメソッドを作成したいと考えています。別の .m ファイルのどこで宣言すればよいですか?
そのメソッドを使用するファイル、または多くのクラスがそれを使用する場合は別の新しいファイルでカテゴリを作成できます。
@interface NSString (Capitalized) -(BOOL)isCapitalized; @end