initWithCapacity:
変更可能な文字列を初期化して返します
-(void)initWithCapacity:(NSUInteger)capacity:
解説
変更可能な文字列を初期化して返します。
capacityは初期設定のバイト数、必要になった時点で自動的に拡張されます。
NSStringのinitやstringで作る方法もあります。
返り値
( void )
なし
引数
( NSUInteger )capacity
以前は
( unsigned int )capacity
仮の容量
フレームワーク
Foundation
クラス
NSMutableString
Instance Methods
使用可能
10.0
参照
例文
[[NSMutableString alloc] initWithCapacity:1]