macOS/iOS API解説

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

目次

initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:

INDEX>UIKit>UIActionSheet

モーダルビューを初期化するのに便利なメソッド
- (id)initWithTitle:(NSString *)title delegate:(id < UIModalViewDelegate >)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...

クラス

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クラス

INDEX>UIKit>

アクションシートクラス
継承 UIView : UIResponder : NSObject
準拠 NSCoding (UIView)
NSObject (NSObject)
フレームワーク /System/Library/Frameworks/UIKit.framework
使用可能 iOS2.0
定義 UIAlert.h

概要

アクションシートのクラスです。

メソッドとプロパティ

プロパティの設定

delegate property
title property
visible property
actionSheetStyle property

非表示

– dismissWithClickedButtonIndex:animated:

KAKURI サバイバルシート(防寒・保温シート) 40617

KAKURI サバイバルシート(防寒・保温シート) 40617

UIAcceleration

INDEX>UIKit>

アクセラレーションクラス
継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/UIKit.framework
使用可能 iOS2.0以降
定義 UIAccelerometer.h

概要

(編集中)
UIAccelerationクラスはアクセラレータイベントデータを保持します。
あなたのアプリケーションがアクセラレータ通知を受け取る時、このクラスのインスタンスは通知のオブジェクトに保持する。
アクセラレータ通知を受け取るための情報はUIAccelerometerクラスを見てください。
それぞれのアクセラレータイベントはデバイスの三つの角度(図を見てください)に属する現在のアクセラレーションをリレーします。
それぞれの角度のアクセラレーション値は重力値としてハードウエアによって直接反応します。
その結果、約1Gなら1.0、-1Gなら-1.0を提供します。

Accessing the Acceleration Values

x property
y property
z property
timestamp property

タスク

UISlider

INDEX>UIKit>

スライダークラス
継承 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

UIDeviceクラス

INDEX>UIKit>

デバイスクラス

apple


継承関係 NSObject
準拠:NSObject (NSObject)
フレームワーク
/System/Library/Frameworks/UIKit.framework
iOS 2.0 以降
定義:UIDevice.h

概要

デバイスクラス

メソッドとプロパティ

共有デバイスインスタンスを取得

+ currentDevice

利用可能な機能を調べる

multitaskingSupported property [4.0]

デバイスとOSのID

uniqueIdentifier property
name property
systemName property
systemVersion property
model property
localizedModel property

userInterfaceIdiom property [4.0]

デバイスのバッテリー状態を取得

batteryLevel property [3.0]
batteryMonitoringEnabled property [3.0]
batteryState property [3.0]

近接センサの使用

proximityMonitoringEnabled property
proximityState property

NSValue UIKit Additionsクラス

INDEX>UIKit>

NSValue UIKit Additionsクラス

更新時OSバージョン

6.1

解説

NSValueのUIKit追加のクラスです。

準拠 NSObject
フレームワーク /System/Library/Frameworks/UIKit.framework
使用可能 iOS 2.0以降
定義 UIGeometry.h

概要

サブクラス化の注意

定数

通知