摘要: 确定每行显示 计算所属的列和行 行 = 当前个数I/每行显示 列 = 当前个数I%每行显示 X = 列 *(W + Margin) Y = 行 * (H +Margin) 阅读全文
posted @ 2016-02-21 15:34 jmhcool 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 自定义TabBar .继承UITabBar .init时添加需要按钮 .遍历subviews 判断类型是否为:UITabbarButton (可定义一个变量记录当前barButton顺序) .NSClassFromString 包装UITabbarButton(不可访问的)成Class对象 . la 阅读全文
posted @ 2016-02-18 16:40 jmhcool 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 将获取的数据插入到数组的指定的位置 NSRange range = NSMakeRange(0,newArray.count); NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexsRange:range]; array insertObject 阅读全文
posted @ 2016-02-17 15:36 jmhcool 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 通过 kCFBundleVersionKey 获取APP版本的versionkeyName 通过 [[[NSBundle manbundle]infoDictionary] objectForKey versionkeyName] 获取当前版本号 通过 [[NSUserDefaults standa 阅读全文
posted @ 2016-02-03 17:10 jmhcool 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 用淘宝的RubyGems镜像来代替官方版本 $ gem sources -l $ gem sources --remove https://rubygems.org/ $ gem sources -a https://ruby.taobao.org/ $ gem sources -l 成功后执行命令 阅读全文
posted @ 2016-02-02 14:17 jmhcool 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Dictionary<string, string> dic = new Dictionary<string, string>(); //用于存储选择内容 /// <summary> /// 获取选中的节点 /// </summary> /// <param name="tree"></param> 阅读全文
posted @ 2016-01-29 17:57 jmhcool 阅读(4105) 评论(0) 推荐(0) 编辑
摘要: // 选中的节点、焦点 var selectedNode = new List<object>(); var selectedNodeFocus = new List<object>(); treeListUnit.GetNodeList().FindAll(n => n.Expanded).For 阅读全文
posted @ 2016-01-29 17:53 jmhcool 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 搭建框架 框架组成 UITabBarViewController UITabBarViewController { 添加各个子控制器(首页、发现、消息、我的); 1.自定义TabBarVC 继承 UITabBarViewController 2. 初始化后添加子控制器 添加方法可封装为: /** * 阅读全文
posted @ 2016-01-28 16:51 jmhcool 阅读(307) 评论(0) 推荐(0) 编辑
摘要: A 页面跳转到 B页面,在关闭B页面的时候想将B页面的某些内容回传给A页面在B页面写代理的相关方法@protocol 控制器的名称 + Delegate @optional-(void) xxxxxx:(控制器 *) control@end@interface 控制器 : UIViewControl... 阅读全文
posted @ 2015-06-10 10:21 jmhcool 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1. SB 窗体之间跳转可以通过连线来完成,跳转分为手动(manual)、自动跳转2. 手动跳转 通过 方法 来获取 连线segue的唯一标识-(void)perfromSegueWithIdentifier:(NSString *)identifiler sender:(id)sender[ se... 阅读全文
posted @ 2015-06-10 10:07 jmhcool 阅读(278) 评论(0) 推荐(0) 编辑