2011-02-17 89 views

回答

0

也许this thread on the Cocos2d forum会帮助你。它解决了你描述的问题。作为结论,它说:

它只能使用MPVolumeView

Read this piece in the Apple Developer documentation更多有关MPVolumeView完成。

+0

ive刚刚设法使用`UISlider * sliderCtl = [[UISlider alloc] initWithFrame:CGRectMake(170,0,125,50)]将一个显示到屏幕上; \t \t \t \t [sliderCtl addTarget:self action:@selector(sliderAction :) forControlEvents:UIControlEventValueChanged]; \t \t \t \t sliderCtl.backgroundColor = [UIColor clearColor]; \t \t sliderCtl.value = 0.5; \t \t \t \t [[[[CCDirector sharedDirector] openGLView]窗口] addSubview:sliderCtl]` – user618175 2011-02-17 11:01:19