摘要: iOS安全模型的精髓在于沙盒(sandbox)。沙盒: app捆绑目录、Documents、Library和tmpDocuments: 应用中用户数据可以放在这里,iTunes备份和恢复的时候会包括此目录 tmp: 存放临时文件,iTunes不会备份和恢复此目录,此目录下文件可能会在应用退... 阅读全文
posted @ 2015-11-25 14:00 ly1992 阅读(197) 评论(0) 推荐(0)
摘要: iOS7支持两种自定义过渡: 自定义视图控制器过渡和交互式视图控制器过渡。过渡协调器(transitionCoordinator):所有的过渡都会创建一个过渡协调器。自定义视图过渡:UIViewControllerAnimatedTransitioning- (NSTimeInterval)tran... 阅读全文
posted @ 2015-11-24 16:23 ly1992 阅读(244) 评论(0) 推荐(0)
摘要: //设置导航栏背景颜色[self.navigationBar setBackgroundImage:图片 forBarMetrics:0];[self.navigationBar setShadowImage:图片];//关闭导航栏半透明 if (IOS7){ self.interacti... 阅读全文
posted @ 2015-11-12 11:52 ly1992 阅读(209) 评论(0) 推荐(0)
摘要: botton.imageEdgeInsets = UIEdgeInsetsMake(- (botton.frame.size.height - botton.imageView.frame.size.height)/2, 0, (botton.frame.size.height - bott... 阅读全文
posted @ 2015-11-09 17:36 ly1992 阅读(577) 评论(0) 推荐(0)