0
我想在cocos2d中使用UITextView。我在init()方法中使用我寫的代碼,我們如何使用UITextView在cocos2d中添加滾動文本?
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];
我需要出現在橫向模式下的文本,但我正在逐漸在以下方式中的文本。
alt text http://www.freeimagehosting.net/uploads/b0de877fb2.png
我怎樣才能讓文字顯示在橫向模式。我在cocos2d工作。 CanOI滾動文字?我應該添加什麼來使文本向上和向下滾動。
謝謝。