开发者

Core-Plot: How to add button on CPLayerHostingView

I would like to add some buttons on CPLayerHostingVi开发者_如何学JAVAew. 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.


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


Nice to know that the answer given by Eric Skroch is worked for sandy. But I am just trying here to help other people who have the same question and when come here, found no code examples. (Because I had the same experience)

You can find the example code here. (open the link and read the post of 'Ivan Rambius Ivanov' )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜