Search code examples
iphoneobjective-ccocos2d-iphoneuipickerview

picker view cocos2d


i am using cocos2d and require a pickerview for one of the scenes within my game. However ccnode does not support the ui kit pickerview. Does anyone know of a reasonable way i can incorporate a pickerview into my game or perhaps know of an alternative with similar behaviour to the pickerview?


Solution

  • You can easily use picker view in your scene.. Instead of adding view on self.view, add it on [[[CCDirector sharedDirector] openGLView] addSubview:pickerView]; Rest all the delegate methods remain same... Hope this helps.. :)