Ree*_*ean 2 cocoa-touch ipad ios
我正在尝试使用带有深色背景的UIModalPresentationFormSheet,但视图的角落总是有一点白色显示.
我以前没见过这种情况.关于是什么导致这个的任何想法?
小智 6
首先导入"QuartzCore/QuartzCore.h",其中ViewController将显示为UIModalPresentationFormSheet,然后覆盖viewWillAppear
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
self.view.superview.layer.cornerRadius = 10;
self.view.superview.layer.borderColor = [UIColor darkGrayColor].CGColor;
self.view.superview.layer.borderWidth = 1;
self.view.superview.clipsToBounds = YES;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2094 次 |
| 最近记录: |