1. UIView 视图的渐变填充 override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. //渐变填充色的图 ...
分类:
移动开发 时间:
2016-11-19 03:09:51
阅读次数:
210
敲代码时遇到了这个问题,别偷懒,写下来备查.当你在IB中对TableView中的accessory(注意,我说的是cell中的accessory,而不是cell)创建segue时,如果你在VC中同时实...
分类:
移动开发 时间:
2016-11-18 23:25:02
阅读次数:
466
设计模式六大原则(1):单一职责原则
定义:不要存在多于一个导致类变更的原因。通俗的说,即一个类只负责一项职责。
问题由来:类T负责两个不同的职责:职责P1,职责P2。当由于职责P1需求发生改变...
分类:
其他好文 时间:
2016-11-18 23:24:04
阅读次数:
429
假如从数据库读出以下数据,如何将数据展示在地图之上 1.部门的名称数据: 2.对应的销售额数据: 问题: 如何将一一对应的数据展示在地图上? deptname的数据一一对应cash的数据 3.java代码处理对应关系 3.1定义常量省份 4.通过以下代码实现转换,并存入2个List中,方便echar ...
分类:
其他好文 时间:
2016-11-18 18:20:08
阅读次数:
390
到了Android6.0,Init进程使用c++来写了,不过没有关系,它和c写的init没有太大的区别。
Init进程的入口代码是:system\core\init\init.cpp
main函数...
分类:
移动开发 时间:
2016-11-18 12:25:37
阅读次数:
680
Substring Given a set of pattern strings, and a text, you have to find, if any of the pattern is a substring of the text. If any of the pattern string ...
分类:
其他好文 时间:
2016-11-18 11:55:22
阅读次数:
205
Dominating Patterns Time Limit:3000MS Memory Limit:Unknown 64bit IO Format:%lld & %llu Description The archaeologists are going to decipher a very mys ...
分类:
其他好文 时间:
2016-11-18 07:00:08
阅读次数:
182
PIGS Description Mirko works on a pig farm that consists of M locked pig-houses and Mirko can't unlock any pighouse because he doesn't have the keys. ...
分类:
其他好文 时间:
2016-11-17 15:55:20
阅读次数:
199
spring支持4种依赖检查:默认的是none none – No dependency checking. simple – If any properties of primitive type (int, long,double…) and collection types (map, lis ...
分类:
编程语言 时间:
2016-11-17 13:07:04
阅读次数:
226
总结的很不错,而且有相应的用法,推荐!!! from: http://www.cnblogs.com/yanyansha/archive/2011/08/30/2159265.html 研读代码必须掌握的Eclipse快捷键 1. Ctrl+左键 和F3 这个是大多数人经常用到的,用来查看变量、方法 ...
分类:
系统相关 时间:
2016-11-16 15:30:58
阅读次数:
206