摘要: 入门 "iOS开发UI篇—UITabBarController简单介绍" 依照上方先写一个demo出来,可基本了解UITabBarController。 重点如下: 1.UITabBarController的本质,它是一个ViewController的容器 2.使用过程 初始化UITabBarCon 阅读全文
posted @ 2019-05-22 13:14 狸猫副园长 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 描述 实现一个算法确定字符串中的字符是否均唯一出现 样例 挑战 如果不使用额外的存储空间,你的算法该如何改变? 解法 解法1 最开始我能想到的是使用一个map,遍历字符串,如果map中存在该值则字符不是唯一出现,返回false;如果遍历完后都没有在map中找到这些字符,则字符是唯一出现。 特殊用例 阅读全文
posted @ 2019-03-30 16:53 狸猫副园长 阅读(324) 评论(0) 推荐(0) 编辑
摘要: TabBarItem选中时,默认文字和图片都变为蓝色。使用以下代码可以进行修改。```objc MainViewController *mainVC = [[MainViewController alloc] init]; UINavigationController *mainNVC = [[UINavigationController alloc] initWithRootView... 阅读全文
posted @ 2016-08-01 22:44 狸猫副园长 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 在开发中,UI给出的颜色值有时候是十六进制的,有时候给出的是RGB(255,255,255)这样的形式的,而iOS系统提供的方法中并没有直接传递这两种值返回UIColor对象的,这里自己封装了一个以便使用。UIColor+LMColor.h```objc#import @interface UIColor(LMColor)/** * 获取透明度为1的随机颜色 * * @return 随机获得的... 阅读全文
posted @ 2016-08-01 22:40 狸猫副园长 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 设置UINavigationController相同标题 阅读全文
posted @ 2016-08-01 21:33 狸猫副园长 阅读(148) 评论(0) 推荐(0) 编辑
摘要: iOS打开手机QQ与指定用户聊天界面 阅读全文
posted @ 2016-08-01 21:31 狸猫副园长 阅读(323) 评论(0) 推荐(0) 编辑
摘要: UIWindow学习笔记 阅读全文
posted @ 2016-07-22 22:28 狸猫副园长 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Google Test资料 阅读全文
posted @ 2016-07-20 23:47 狸猫副园长 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Xcode集成Google Test 阅读全文
posted @ 2016-07-20 23:45 狸猫副园长 阅读(896) 评论(0) 推荐(0) 编辑
摘要: 博客文章索引 阅读全文
posted @ 2016-07-20 23:18 狸猫副园长 阅读(190) 评论(0) 推荐(0) 编辑