removeItemAtIndex:
指定した番号の項目を取り除きます
-(void)removeItemAtIndex:(int)index:
解説
指定した番号の項目を取り除きます。
返り値
( void )
なし
引数
( int )index
番号
フレームワーク
ApplicationKit
クラス
NSPopUpButton
Instance Methods
使用可能
10.0
参照
- insertItemWithTitle:atIndex:
- removeAllItems
- removeItemWithTitle:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはポップアップボタン [myOutlet removeItemAtIndex:0]; } @end