Vir*_*ana 3 uiviewcontroller uiview ipad presentmodalviewcontroller ios
我必须从去除圆角UIView的UIViewcontroller。这是该图片
我正在与详细视图
detailView.modalPresentationStyle = UIModalPresentationFormSheet;
Run Code Online (Sandbox Code Playgroud)
我想提出UIViewcontroller的观点不圆圆。有人对这个问题有想法吗?
//You will have to link to the QuartzCore library
#import <QuartzCore/QuartzCore.h>
- (void)viewWillAppear:(BOOL)animated
{
//set border radius on visibility
self.view.layer.cornerRadius = 0;
}
- (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
//for some reason the cornerRadius resets itself on orientation change
self.view.layer.cornerRadius = 0;
}
Run Code Online (Sandbox Code Playgroud)
self.view可以是您正在呈现的ViewController内部的视图。