initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:
モーダルビューを初期化するのに便利なメソッド
- (id)initWithTitle:(NSString *)title delegate:(id < UIModalViewDelegate >)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...
フレームワーク
UIKit
クラス
UIActionSheet
返り値
id UIActionSheetまたはUIActionSheetのサブクラスの新しく初期化されたインスタンス
パラメータ
title
タイトルバーに表示されるタイトル文字列
delegate
デリゲートオブジェクト、なければnil
cancelButtonTitle
キャンセルボタンのタイトル、なければnil
destructiveButtonTitle
otherButtonTitles
例文
UIActionSheet *aSheet = [[UIActionSheet alloc] initWithTitle:@"title" delegate: self cancelButtonTitle:@"cancelButtonTitle" destructiveButtonTitle:@"destructiveButtonTitle" otherButtonTitles:@"otherButtonTitles",nil];
説明
使用可能
iPhone OS 2.0 以降.
参照先
– showInView:
定義
UIAlert.h
UIActionSheetクラス
アクションシートクラス
継承 | UIView : UIResponder : NSObject |
準拠 | NSCoding (UIView) |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iOS2.0 |
定義 | UIAlert.h |
概要
アクションシートのクラスです。
メソッドとプロパティ
プロパティの設定
delegate property
title property
visible property
actionSheetStyle property
ボタンの設定
– addButtonWithTitle:
numberOfButtons property
– buttonTitleAtIndex:
cancelButtonIndex property
destructiveButtonIndex property
firstOtherButtonIndex property
非表示
– dismissWithClickedButtonIndex:animated:
KAKURI サバイバルシート(防寒・保温シート) 40617
- 出版社/メーカー: 角利産業
- メディア: ホーム&キッチン
- 購入: 47人 クリック: 134回
- この商品を含むブログ (28件) を見る
UIAcceleration
アクセラレーションクラス
継承 | NSObject |
準拠 | NSObject (NSObject) |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iOS2.0以降 |
定義 | UIAccelerometer.h |
概要
(編集中)
UIAccelerationクラスはアクセラレータイベントデータを保持します。
あなたのアプリケーションがアクセラレータ通知を受け取る時、このクラスのインスタンスは通知のオブジェクトに保持する。
アクセラレータ通知を受け取るための情報はUIAccelerometerクラスを見てください。
それぞれのアクセラレータイベントはデバイスの三つの角度(図を見てください)に属する現在のアクセラレーションをリレーします。
それぞれの角度のアクセラレーション値は重力値としてハードウエアによって直接反応します。
その結果、約1Gなら1.0、-1Gなら-1.0を提供します。
タスク
iPhone3G S対応可能 イヤフォン+マイク機能付き シルバー-533005
- 出版社/メーカー: OEM
- メディア: おもちゃ&ホビー
- クリック: 7回
- この商品を含むブログ (2件) を見る
UISlider
スライダークラス
継承 | UIControl : UIView : UIResponder : NSObject |
準拠 | NSCoding |
NSCoding (UIView) | |
UIAppearance (UIView) | |
UIAppearanceContainer (UIView) | |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iOS 2.0 以降 |
定義 | UISlider.h |
概要
UISliderオブジェクトは連続した値の範囲からの単一の値を選択するのに使うビジュアルコントロールです。
スライダーは垂直または水平のバーとして表示できます。
インジケーター、サム、スライダーの現在の値セッティングを変更する事ユーザーによって動かすことができます。
例文
//スライダー UISlider *aSlider = [[UISlider alloc] initWithFrame:CGRectMake(0,120,320,100)]; [aSlider addTarget:self action:@selector(sliderAction:) forControlEvents:UIControlEventValueChanged]; aSlider.continuous = YES;
メソッドとプロパティ
スライダー値へのアクセス
value property
–setValue:animated
スライダーの制限値へのアクセス
minimumValue property
maximumValue property
スライダーの挙動を集成します
continuous property
スライダーのアピアランスを変更します
minimumValueImage property
maximumValueImage property
currentMinimumTrackImage property
– minimumTrackImageForState
– setMinimumTrackImage:forStatescurrentMaximumTrackImage property
– maximumTrackImageForState:
– setMaximumTrackImage:forStates
currentThumbImage property
– thumbImageForState– setThumbImage:forStates
UIDeviceクラス
デバイスクラス
継承関係 NSObject
準拠:NSObject (NSObject)
フレームワーク:
/System/Library/Frameworks/UIKit.framework
iOS 2.0 以降
定義:UIDevice.h
概要
デバイスクラス
メソッドとプロパティ
共有デバイスインスタンスを取得
利用可能な機能を調べる
multitaskingSupported property [4.0]
デバイスとOSのID
uniqueIdentifier property
name property
systemName property
systemVersion property
model property
localizedModel property
userInterfaceIdiom property [4.0]
デバイスの向きを取得
orientation property
generatesDeviceOrientationNotifications property
– beginGeneratingDeviceOrientationNotifications
– endGeneratingDeviceOrientationNotifications
デバイスのバッテリー状態を取得
batteryLevel property [3.0]
batteryMonitoringEnabled property [3.0]
batteryState property [3.0]
近接センサの使用
proximityMonitoringEnabled property
proximityState property
NSValue UIKit Additionsクラス
NSValue UIKit Additionsクラス
更新時OSバージョン
6.1
解説
NSValueのUIKit追加のクラスです。
準拠 | NSObject |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iOS 2.0以降 |
定義 | UIGeometry.h |