macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

selectTabViewItemAtIndex:

番号で指定したタブを選択します
-(void)selectTabViewItemAtIndex:(int)index:

解説

番号で指定したタブを選択します。
番号は0から始まる整数です。

返り値

( void )

なし

引数

( int )index

番号

フレームワーク

ApplicationKit

クラス

NSTabView

Instance Methods

使用可能

10.0

参照

- insertTabViewItem:atIndex:
- selectedTabViewItem

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
//myOutletはTabView
[myOutlet selectTabViewItemAtIndex:1];
}

@end