views:

108

answers:

1

I would like to add some buttons on CPLayerHostingView. I have tried the same by creating some an object of UIButton and adding it as subview on my CPLayerHostingView but it didn't worked as expected. Please help me to do the same.

+2  A: 

You're better off not adding subviews into a CPLayerHostingView. Add the buttons to the CPLayerHostingView's superview instead.

Eric Skroch
Thanks it worked.
sandy