Skip to Content

cocos2d-iphone CCLayer 안에 UI 배치 How-to

Posted on
UITextView *textView = [[UITextView alloc] 
                         initWithFrame:CGRectMake(100,100, 480/2, 320/2)];
textView.backgroundColor = [UIColor clearColor];
textView.textColor = [UIColor redColor];
textView.text = @"I am First enemy";
[textView setEditable:NO]; 
    
[[[CCDirector sharedDirector]openGLView]addSubview:textView];