【发布时间】:2014-05-02 21:59:18
【问题描述】:
请查看下图。
如果您看到,在蓝色对话气泡的黑色轮廓下方,显示的是天蓝色部分。 我正在为蓝色语音气泡使用透明 png。所以,不确定这个天蓝色部分来自哪里。
请是我使用的语音气泡的透明 PNG。
这里有什么问题?
UIView* popoverView1;
UIViewController* popoverContent;
UIImageView *imagebackground;
@property (nonatomic,retain) IBOutlet UIPopoverController *pc;
popoverContent = [[UIViewController alloc]init];
popoverView1 = [[UIView alloc]initWithFrame:CGRectMake(56,0,393,444)];
// popoverView1.backgroundColor = [UIColor whiteColor];
imagebackground = [[UIImageView alloc]initWithFrame:CGRectMake(0,0,393,444)];
[imagebackground setImage:[UIImage imageNamed:@"card-creation-screen15.png"]];
[popoverView1 addSubview:btndone];
[popoverView1 addSubview:btn];
popoverContent.view = popoverView1;
[btndone setHidden:YES];
[popoverView1 addSubview:imagebackground];
[popoverView1 bringSubviewToFront:btn];
[popoverView1 bringSubviewToFront:btndone];
popoverController.backgroundColor = [UIColor clearColor];
popoverView1.backgroundColor = [UIColor clearColor];
popoverContent.contentSizeForViewInPopover = CGSizeMake(393, 444);
pc = [[UIPopoverController alloc] initWithContentViewController:popoverContent];
[pc presentPopoverFromRect:CGRectMake(20,650,131,131) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown
animated:YES];
pc.backgroundColor = [UIColor clearColor];
popoverController.backgroundColor = [UIColor clearColor];
popoverView1.backgroundColor = [UIColor clearColor];
pc.backgroundColor = [UIColor clearColor];
【问题讨论】:
-
相关代码在哪里?
-
你试过设置你的imageview(imagebackground)的背景颜色吗?
-
是的,我给了它清晰的颜色
-
我在显示的代码中找不到。这就是我问的原因。
标签: ios iphone objective-c ios7 png