我仍然是objective c的新手,事实上,这是我第一次尝试构建一个应用程序,所以请耐心等待。
我正在尝试在核心图旁边添加一个UITable,我以CPTestApp为例,并声明要解决这个问题,我能够让图形部分工作正常,但我在使用UITable时遇到了问题。下面的屏幕截图显示了moment.UITable是如何颠倒的,文本都是镜像的。

下面是旋转部分,有人能给我举一个UITable旋转的例子吗? graph...UITable填充了一个数值数组,也可以正常工作。
我可能需要一些指导来找出将UItable添加到coreplothosting视图层的正确方法
谢谢
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
if (UIInterfaceOrientationIsLandscape(fromInterfaceOrientation))
{
// Move the plots into place for portrait
scatterPlotView.frame = CGRectMake(20.0f, 55.0f, 728.0f, 556.0f);
tblSimpleTable.frame = CGRectMake(20.0f, 644.0f, 728.0f, 340.0f);
[tblSimpleTable reloadData];
}
else
{
// Move the plots into place for landscape
scatterPlotView.frame = CGRectMake(20.0f, 55.0f, 858.0f, 677.0f);
tblSimpleTable.frame = CGRectMake(878.0f, 51.0f, 220.0f, 677.0f);
[tblSimpleTable reloadData];
}
}发布于 2011-04-28 06:48:22
核心绘图将翻转变换应用于其所有核心动画层,以便可以在iOS和MacOS之间共享绘图代码。这就是你所看到的。
确保您的UITable和图形宿主视图是兄弟关系(即,具有共同的父视图),并且其中一个视图不是另一个视图的子视图。
https://stackoverflow.com/questions/5800838
复制相似问题