摘要: //1.设置self.tabBarController.tabBar.hidden=YES; self.tabBarController.tabBar.hidden=YES; //2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YES; self.hidesBottomBarWhenPushed=YES; ... 阅读全文
posted @ 2017-07-26 10:35 鸢一 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 第一步:打开「终端」应用程序。 第二步:输入如下命令: defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder 第三步:按下「Return」键。 这样一来你就会在 Finder 窗口中看到隐藏的文件和文件夹了。  阅读全文
posted @ 2017-07-21 16:22 鸢一 阅读(525) 评论(0) 推荐(0) 编辑
摘要: NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; CFShow(infoDictionary); // app名称 NSString *app_Name = [infoDictionary objectFor 阅读全文
posted @ 2017-07-20 11:17 鸢一 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 用法:点击事件调用的方法中添加以上代码。 阅读全文
posted @ 2017-07-14 14:36 鸢一 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 效果图: 功能:苹果的私有方法就提供了 UIDebuggingInformationOverlay,进行悬浮窗调试信息 1 查看整个 window 的 View 嵌套关系 View Hierarchy 2 查看当前 ViewController 的属性 VC Hierarchy 3 查看 UIApp 阅读全文
posted @ 2017-07-13 09:55 鸢一 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 1. [self.table scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:NO]; 2. [self.table setContentOffset:CGPointMake(0,0) animated:NO]; 3. NSIndexPath* 阅读全文
posted @ 2017-07-10 14:41 鸢一 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 问题:项目中使用到抽屉控制器MMDrawerController,中间视图设置为TabbarController。现TabbarController上的一个子控制器添加了一个TableController,cell添加侧滑删除,不灵。 原因:抽屉MMDrawerController侧滑手势与cell 阅读全文
posted @ 2017-07-07 11:15 鸢一 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 问题:对于基于AFNetWorking3.0的项目,在未处理直接通过AFN3.0进行网络请求,在leaks测试下会出现内存泄露的问题。 原因:观察发现每次发生泄漏的地方都是 “AFHTTPSessionManager *manager = [AFHTTPSessionManager manager] 阅读全文
posted @ 2017-07-07 10:44 鸢一 阅读(1361) 评论(0) 推荐(0) 编辑