Cocoa touch 如何使用UITextView在cocos2d中添加滚动文本?
我想要cocos2d中的UITextView。我用init方法写代码Cocoa touch 如何使用UITextView在cocos2d中添加滚动文本?,cocoa-touch,iphone-sdk-3.0,uitextview,cocos2d-iphone,Cocoa Touch,Iphone Sdk 3.0,Uitextview,Cocos2d Iphone,我想要cocos2d中的UITextView。我用init方法写代码 UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0,0, windowSize.height/2,windowSize.width/2)]; textView.backgroundColor = [UIColor clearColor]; textView.text = @"I am First enemy"; [textView
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0,0, windowSize.height/2,windowSize.width/2)];
textView.backgroundColor = [UIColor clearColor];
textView.text = @"I am First enemy";
[textView setEditable:NO];
[[[CCDirector sharedDirector]openGLView]addSubview:textView];
方向是这样的
[[CCDirector sharedDirector] setDeviceOrientation:CCDeviceOrientationLandscapeLeft];
我需要在横向模式下显示文本,但我得到以下方式的文本
如何使文本以横向模式显示。我在cocos2d工作。我可以滚动文本吗?我应该添加什么使文本上下滚动
多谢各位 从下面的url中,我找到了我的答案 我曾经
textView.transform = CGAffineTransformMakeRotation(CC_DEGREES_TO_RADIANS( 90.0f ));