Closed GoogleCodeExporter closed 9 years ago
Original comment by eskr...@mac.com
on 1 Jul 2011 at 1:39
I had similar problem in my iPhone/iPad app as described above. Although in
slightly more complicated scenario. My app has UITAbBarController, let say with
ViewA and ViewB. Both of them display graphs. I experienced problem with graph
not resizing in the following workflow:
1. Show ViewA in portrait
2. Switch to ViewB (still in portrait)
3. Rotate to landscape (no problem here, the graph in ViewB rotates as expected)
4. Switch back to ViewA. Now the graph in ViewA renders as it was still in the
portrait mode (it actually draws outside of its frame).
I applied the patch from Issue 281 (two changes above in CPGraphHostingView.m).
But it did not solve the problem. Only after applying the change to
Source/CPLayer.m ([subLayer setNeedsLayout];), the graph in step 4 was redrawn
correctly.
Original comment by Lubos.Mi...@gmail.com
on 20 Sep 2011 at 8:31
Original issue reported on code.google.com by
y...@wangsy.com
on 30 Jun 2011 at 4:40