How to put a picker view inside collectionview cell

Hi
I was going though collectionview tutorial and am struggling to put a UIPickerView inside collectionview cell. Any help.

I’m not sure if that’s a great idea, but if you want to I guess you can. It inherits from UIView so it should work just like any other control. How are you trying to add it and what happens when you do? I just tried dragging and dropping one into the prototype cell displayed in a collection view and no problems observed. Looks like I could just hook up the data source and it would work.

Any code for that if possible.

Have you tried just dragging it in the Storyboard editor? It’s not really something you need code for.