【发布时间】:2011-05-11 07:28:11
【问题描述】:
我有一个 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];
【问题讨论】:
标签: objective-c ios ipad core-graphics