私はGLペイントアプリケーションを開発しています。
任意のオブジェクトを描画するには、実装された UIView を使用しています。
開始ペイント方法:
- (void)viewDidLoad {
....
[NSThread detachNewThreadSelector:@selector(paintingObjects)
toTarget:self
withObject:nil];
}
- (void)paintingObjects {
while(1) {
[NSThread sleepForTimeInterval:2];
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
ImplementedView *tmp = [self view];
[tmp draw];
[pool drain];
}
}
しかし、それは機能していません (オブジェクトをペイントしません)。
ここで何が問題なのですか?
みんな助けてください。
前もって感謝します。