isVertical
ステータスバーは垂直かを返します
解説
ステータスバーは垂直かを返します。
システムステータスバーは水平なので、いつもNOを返します。
返り値
( BOOL )
YES/NO
引数
フレームワーク
ApplicationKit
クラス
NSStatusBar
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSStatusBar *sBar = [NSStatusBar systemStatusBar]; if ([sBar isVertical]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end