0
UITextView *text = [[UITextView alloc] initWithFrame:self.frame];
[text setText:@"hello world!"];
text.backgroundColor = [UIColor blueColor];
[self.layer addSublayer:text.layer];
왜 나는 파란색을 볼 수 있습니까?다른보기에서 레이어를 추가하려면 어떻게해야합니까?
text.backgroundColor = [UIColor blueColor]; 그게 왜 파란색을 보여주는 것입니다. 그 대신 text.backgroundColor = [UIColor clearColor]; –
@karboom : 귀하의 요구 사항 또는 귀하의 의미를 알려주십시오. –
애니메이션을 만들기 위해 다른보기의 레이어에서 레이어를 추가하고 싶습니다. @Vineesh TP – karboom