macOS/iOS API解説

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

目次

UIInterfaceOrientation

アプリケーションのインターフェースの向き
typedef enum {
   UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
   UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
   UIInterfaceOrientationLandscapeLeft      = UIDeviceOrientationLandscapeRight,
   UIInterfaceOrientationLandscapeRight     = UIDeviceOrientationLandscapeLeft
} UIInterfaceOrientation;

解説

アプリケーションのインターフェースの向き

UIInterfaceOrientationPortrait 縦向き
UIInterfaceOrientationPortraitUpsideDown 縦向き、上下逆
UIInterfaceOrientationLandscapeLeft 横向き、左
UIInterfaceOrientationLandscapeRight 横向き、右

クラス

UIApplication

Instance Methods

使用可能

iPhone2.0

参照

例文