手写笔记
2016-01-06 11:55
351 查看
ITabBarController 单击 再点击 双击
UISearchBarCustom
// 打印宏定义
Xcode调试代码时,有时会遇到断点不停的问题。一般来说是你的改动和Xcode编译出来的调试信息不一致造成的。
解决方法
1、先cleanall,再构建(Build)一遍;
2、如果方案一没有解决问题,可以选中Xcode的项目,在Finder中打开内容,删除*.pbxuser和*.mode1v3文件,重新打开project下端点。
iPhone Portrait iOS 8-Retina HD 5.5 (1242×2208) @3x
iPhone Portrait iOS 8-Retina HD 4.7 (750×1334) @2x
iPhone Portrait iOS 7,8-2x (640×960) @2x
iPhone Portrait iOS 7,8-Retina 4 (640×1136) @2x
iPhone Portrait iOS 5,6-1x (320×480) @1x
iPhone Portrait iOS 5,6-2x (640×960) @2x
iPhone Portrait iOS 5,6-Retina4 (640×1136) @2x
UITabBarController //当选中项改变的时候会触发 - (void)tabBarController:(UITabBarController*)tabBarController didSelectViewController:(UIViewController*)viewController { NSLog(@"disSelect"); //使每次点击tab都回到跟目录 // if ([viewController isKindOfClass:[UINavigationController class]]) { // [(UINavigationController*)viewController popToRootViewControllerAnimated:YES]; // } } //每次点击当前tab的时候会触发 - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)vc { NSLog(@"shouldSelect"); //当前选中的tab UIViewController *selectTab = tabBarController.selectedViewController; //vc: 将要选中的tab //判断是不是选择了自己 if ([selectTab isEqual:vc]) { } }
UISearchBarCustom
// 打印宏定义
#ifdef DEBUG #define HHLog(...) NSLog(__VA_ARGS__) #else #define HHLog(...) #endif
Xcode调试代码时,有时会遇到断点不停的问题。一般来说是你的改动和Xcode编译出来的调试信息不一致造成的。
解决方法
1、先cleanall,再构建(Build)一遍;
2、如果方案一没有解决问题,可以选中Xcode的项目,在Finder中打开内容,删除*.pbxuser和*.mode1v3文件,重新打开project下端点。
iPhone Portrait iOS 8-Retina HD 5.5 (1242×2208) @3x
iPhone Portrait iOS 8-Retina HD 4.7 (750×1334) @2x
iPhone Portrait iOS 7,8-2x (640×960) @2x
iPhone Portrait iOS 7,8-Retina 4 (640×1136) @2x
iPhone Portrait iOS 5,6-1x (320×480) @1x
iPhone Portrait iOS 5,6-2x (640×960) @2x
iPhone Portrait iOS 5,6-Retina4 (640×1136) @2x
相关文章推荐
- SpringMVC同时支持多视图(JSP,Velocity,Freemarker等)的一种思路实现
- super T 和? extends T区别
- C++11多线程(十三):《C++11 内存模型一:介绍》
- PostgreSQL学习手册(常用数据类型)
- DSP/BIOS详解入门
- String转Json,jsonArray,jsonObject
- apache开源项目 -- VXQuery
- linux+php+apache web调用python脚本权限问题解决方案
- IDEA里面为项目添加编写Groovy支持
- Endian
- ganglia监控系统安装与部署
- ArrayList 扩容 Android Java 真的不一样
- 【cas、spring-security】The error indicates the the CAS server is trying to post the single sign out re
- 高德地图添加手势不响应
- 安卓动画基础讲解
- dubbo-插件化
- mysql出现错误“ Every derived table must have its own alias”
- FindBugs-AndroidStudio代码错误自动检查插件
- 转载:JS获取回车事件(兼容各浏览器) 另easyul框架的方式
- OpenStack商用需要跨越的坎 -- 前言