- 浏览: 2031 次
- 性别:
- 来自: 长沙
最新评论
文章列表
1:获取沙盒路径,新建日志文件
NSString *docStr=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
NSString *fileName =[NSString stringWithFormat:@"%@.log",[NSDate date]];
NSString *logFilePath = [docStr stringByAppendingPathComponent:fileName];
...
//弹出view背景半透明的控制器,用于实现类似于自定义弹出框(带蒙版),
UIViewController *rootControler=self.view.window.rootViewController;
TestViewController *test=[[TestViewController alloc] init];
test.view.backgroundColor = [UIColor colorWithWhite:0.0 alpha:0.8];
rootControler.modalPresentationSt ...