我在我的应用程序中打开一个模态窗口以显示一些帮助提示。在这个模态窗口里面,我有一个包含所有信息的UIImageView。我在UIIMageView中使用带圆角的图像,我不希望看到包含此UIIMageView的UIView的矩形角。我在XIB中尝试了所有不同的设置,但我无法隐藏角落。 PLS。看附图,看看我指的是什么。我已经尝试过clearColor作为背景,但没有任何帮助。有没有办法解决这个问题?
这是我从父视图中打开我的模态视图的方法:
-(void)loadSetupModalView{
// Create a Navigation controller
UINavigationController *navController = [[UINavigationController alloc]
initWithRootViewController:self.setupViewController];
//RESIZE THE MODAL VIEW
navController.modalPresentationStyle = UIModalPresentationFormSheet;
navController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:navController animated:YES];
navController.view.superview.autoresizingMask =
UIViewAutoresizingFlexibleTopMargin |
UIViewAutoresizingFlexibleBottomMargin;
if (iPad){
navController.view.superview.frame = CGRectMake(
//navController.view.superview.frame.origin.x,
100,
//navController.view.superview.frame.origin.y,
100,
800.0f,//550.0f,
520.0f//500.0f
);
}else{
/* navController.view.superview.frame = CGRectMake(
navController.view.superview.frame.origin.x,
//100,
navController.view.superview.frame.origin.y,
480.0f,//550.0f,
320.0f//500.0f
);*/
}
//navController.view.superview.center = self.view.center;
[navController setNavigationBarHidden:YES animated:NO];
[navController release];
}