divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Iphone - All controls on graph page (CPTGraphHostingView) are inverted/mirrored #415

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new UIViewController subclass with xib file.
2. Change the Class of view in Class Identity from UIView to CPTGraphHostingView
3. Add buttons and other controls to the xib

Expected output is that all controls should display normally as they were 
added. But actually all the controls (other than the graph) and background 
image are inverted/mirrored. Controls work fine but only mirrored/inverted

NOTE: Graph is working nicely, but other problem mentioned above.

I am using:
1. Mac OS X 10.6.8
2. Xcode 3.2.5 64 bit
3. Core plot 1.0
4. iOS Simulator 4.2 (235)

When I set Class in Class Identity to UIView [and ofcourse remove the graph 
preparation code] then every thing displays perfectly, but in that case, 
obviously graph won't display.

Original issue reported on code.google.com by syed.aq...@planetbeyond.co.uk on 29 Mar 2012 at 2:38

GoogleCodeExporter commented 9 years ago
This is by design. The iOS hosting view inverts its contents so the same 
drawing code can be used on both iOS and OS X. You should never add subviews to 
the Core Plot hosting view. Add the controls to another view along with the 
hosting view so that they are siblings.

Original comment by eskr...@mac.com on 29 Mar 2012 at 9:46