macOS/iOS API解説

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

目次

windows

アプリケーションの表示可能なウインドウ(読み出しのみ)
@property(nonatomic, readonly) NSArray *windows

解説

アプリケーションの表示可能なウインドウ(読み出しのみ)

このプロパティはアプリケーションの表示可能なウインドウの配列を保持します。
ウインドウは後ろから前の順序です。

クラス

UIApplication

Instance Methods

使用可能

iPhone2.0

参照

例文

NSArray *windowArray = application.windows;
	
	NSUInteger i, count = [windowArray count];
	for (i = 0; i < count; i++) {
		NSObject * obj = [windowArray objectAtIndex:i];
		NSLog(@"%@",[obj description]);
	}

定義

UIApplication.h