macOS/iOS API解説

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

目次

UISwitch

UISwitchクラス

INDEX>UIKit> ON/OFFのみ切り替えをするクラスです。 継承 UIControl : UIView : UIResponder : NSObject 準拠 NSCoding NSCoding (UIView) UIAppearance (UIView) UIAppearanceContainer (UIView) NSObject (NSObject) フレームワーク /System/Library/Fram…

setOn:animated:

スイッチの状態をセットします。 -(void)setOn:(BOOL)on animated:(BOOL)animated 解説 返り値 ( void ) 引数 ( BOOL )on ( BOOL )animated フレームワーク UIKit クラス UISwitch Instance Methods 使用可能 iPhone2.0 参照 例文

initWithFrame:

-(id)initWithFrame:(CGRect)frame 解説 返り値 ( id ) 引数 ( CGRect )frame フレームワーク UIKit クラス UISwitch Instance Methods 使用可能 iPhone2.0 参照 例文

on

プロパティ スイッチの状態 解説 @property(nonatomic, getter=isOn) BOOL on フレームワーク UIKit クラス UISwitch Property 使用可能 iPhone2.0 参照 例文