//圆角化 包含QuartzCore.framework 包含头文件 #import <QuartzCore/QuartzCore.h>
self->typeTipView.layer.cornerRadius = 8;
self->typeTipView.layer.masksToBounds = YES;
//转自:http://blog.csdn.net/yu413854285/article/details/7729824
要做在自定义的view里作一个全屏的操作,只需要把在statusbar隐藏,然后你想全屏的那个view的纵坐标从0改为-20就ok了
[[UIApplication sharedApplication]
setStatusBarHidden:YES
withAnimation:UIStatusBarAnimationNone];
//全屏的view
scrollViewReaderView = [[[ScrollViewReaderalloc]initWithFrame:CGRectMake(0, -20,1024,768)]autorelease];
//添加边框和提示 转自http://blog.csdn.net/yu413854285/article/details/7996142
引用库:
#import <QuartzCore/QuartzCore.h>
使用:
CGRect frameRect =CGRectMake(20,90,self.window.frame.size.width-40,self.window.frame.size.height-180);
UIView *frameView = [[UIViewalloc]initWithFrame:frameRect] ;
frameView.layer.borderWidth =1;
frameView.layer.borderColor = [[UIColorwhiteColor]CGColor];