我在 iPhone 应用程序开发中遇到自动调整大小的问题CGRectMake
。谁能解释一下?
CGRect imgframe=CGRectMake(0, 0, 320, 283);
UIImageView *imgview=[[UIImageView alloc]initWithFrame:imgframe];
KMAppDelegate *app=(KMAppDelegate *)[[UIApplication sharedApplication]delegate];
[imgview setAutoresizingMask:UIViewAutoresizingFlexibleWidth |UIViewAutoresizingFlexibleHeight];
imgview.image=[UIImage imageNamed:app.imgString];