我有一个UIView,我在其上加载我的图像视图作为子视图。当我没有设置锚点时,图像显示,但每当我设置锚点图像不显示。我也添加了QUARTZCore框架的工作。当我设置定位点时,我的图像不加载
我加入我的代码如下
CGRect apprect=CGRectMake(0, 0, 1024, 768);
UIView *containerView = [[UIView alloc] initWithFrame:apprect1];
containerView.backgroundColor = [UIColor whiteColor];
[self.view addSubview:containerView];
handleView1= [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"large.gif"]];
[handleView1 setAlpha:1];
//[handleView1 setFrame:CGRectMake(390, 172.00, 56.00, 316.00)];
handleView1.userInteractionEnabled = YES;
handleView1.layer.anchorPoint=CGPointMake(490.0, 172.0);
[containerView addSubview:handleView1];
非常感谢你尼克韦弗。非常感谢。 – Lena 2011-05-11 07:37:09