SKScene でテキストが表示されないのはなぜですか? これは、SKScene で UIScrollView を使用する正しい方法ですか?
-(id)initWithSize:(CGSize)size {
if (self = [super initWithSize:size]) {
UIScrollView * contentScrollView = [[UIScrollView alloc]initWithFrame:self.view.frame];
contentScrollView.backgroundColor = [UIColor whiteColor];
[contentScrollView setUserInteractionEnabled:YES];
UITextView * mainContent = [[UITextView alloc]initWithFrame:self.view.frame];
mainContent.text = @"HELLO WORLD";
mainContent.textColor = [UIColor blackColor];
[contentScrollView addSubview:mainContent];
[self.view addSubview:contentScrollView];
}
return self;
}