引用库:
#import <QuartzCore/QuartzCore.h>
使用:
//添加边框和提示
CGRect frameRect = CGRectMake(20, 90, self.window.frame.size.width-40, self.window.frame.size.height-180);
UIView *frameView = [[UIView alloc] initWithFrame:frameRect] ;
frameView.layer.borderWidth = 1;
frameView.layer.borderColor = [[UIColor whiteColor] CGColor];
//添加阴影