2011-02-17 71 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