statusBarFrame
ステータスバーの範囲を定義するフレーム矩形(読み出しのみ)
@property(nonatomic, readonly) CGRect statusBarFrame
解説
ステータスバーの範囲を定義するフレーム矩形(読み出しのみ)
もしステータスバーが隠されていたら、このプロパティの値はCGRectZero
フレームワーク
UIKit
クラス
UIApplication
Instance Methods
使用可能
iPhone2.0
参照
例文
- (void)applicationDidFinishLaunching:(UIApplication *)application { // Configure and show the window [window addSubview:[navigationController view]]; [window makeKeyAndVisible]; CGRect frameRect = application.statusBarFrame; NSLog(@"(%0.1f,%0.1f),(%0.1f,%0.1f)",frameRect.origin.x,frameRect.origin.y,frameRect.size.width,frameRect.size.height); //--> (0.0,0.0),(320.0,20.0) }