本文转载至http://stackoverflow.com/questions/8915630/ios-uiimageview-how-to-handle-uiimage-image-orientationup vote18down votefavorite12Is it possible to s...
分类:
移动开发 时间:
2015-07-24 22:26:52
阅读次数:
354
https://github.com/facebook/wdtWDT is an embeddedable library (and command line tool) aiming to transfer files between 2 systems as fast as possible o...
分类:
其他好文 时间:
2015-07-24 22:25:06
阅读次数:
145
I love developing software on my MacBook Air! I got the latest version with the maximum possible specifications (i7, 8GB internal mem, 512GBSSD disk) ...
分类:
系统相关 时间:
2015-07-24 12:31:18
阅读次数:
221
享元模式定义
英文定义:A flyweight is an object that minimizes memory use by sharing as much data as possible with other similar objects
中文定义:享元模式运用共享技术有效地支持大量细粒度的对象。
享元模式UML图(来自Google图片)
抽象享元(Flyweight)角...
分类:
其他好文 时间:
2015-07-23 23:47:09
阅读次数:
229
最近在读项目源码的时候,发现一个SharedPreferencesCompat类,这个类做了一些简单的工作,后来google之后理解了这种写法的缘由,在这里跟大家分享一下。
首先我们直接来看这个类的源码,很简短
/**
* Reflection utils to call SharedPreferences$Editor.apply when possible,
* falling b...
分类:
其他好文 时间:
2015-07-23 19:54:38
阅读次数:
166
Common SubsequenceProblem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out....
分类:
其他好文 时间:
2015-07-23 17:39:32
阅读次数:
111
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:
其他好文 时间:
2015-07-22 18:00:14
阅读次数:
91
原文错误提示:
Error:(16, 0) Gradle DSL method not found: 'android()'
Possible causes:The project ‘XXXXXXX' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper fileThe b...
分类:
移动开发 时间:
2015-07-22 14:48:42
阅读次数:
267
Given a set of distinct integers, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For ...
分类:
其他好文 时间:
2015-07-22 14:44:37
阅读次数:
146
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2015-07-22 14:43:15
阅读次数:
81