/** * 打开照相机 */ - (void)openCamera { if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) return; UIImagePicke... ...
分类:
移动开发 时间:
2017-04-04 11:49:01
阅读次数:
191
People become quite illogical when they try to decide what can be eaten and what cannot be eaten. If you lived in the Mediterranean, for instance, you ...
分类:
其他好文 时间:
2017-04-04 10:55:15
阅读次数:
237
转自:http://www.linuxidc.com/Linux/2013-10/90928.htm T 有类型 ? 未知类型 一、通配符的上界 既然知道List<Cat>并不是List<Anilmal>的子类型,那就需要去寻找替他解决的办法, 是AnimalTrianer.act()方法变得更为通 ...
分类:
编程语言 时间:
2017-04-03 11:31:24
阅读次数:
237
参考资料: https://mozilla.github.io/nunjucks/ https://mozilla.github.io/nunjucks/templating.html https://mozilla.github.io/nunjucks/api.html 常用API render ...
分类:
其他好文 时间:
2017-03-30 21:59:24
阅读次数:
603
animation:通过规定至少以下两项 CSS3 动画属性,即可将动画绑定到选择器: 规定动画的名称 规定动画的时长 @keyframes:请用百分比来规定变化发生的时间,或用关键词 "from" 和 "to",等同于 0% 和 100%。 animation-duration:默认值是 0 2s ...
分类:
其他好文 时间:
2017-03-30 16:13:18
阅读次数:
325
1、代码(未添加GPU加速代码) F12控制台Timeline记录: 2、代码(添加GPU加速代码) F12控制台Timeline记录: 3、代码(添加GPU加速代码) F12控制台Timeline记录: 总结:好像没有什么大的优化,时间差的不多。 ...
分类:
Web程序 时间:
2017-03-23 14:24:54
阅读次数:
487
1.github下载 https://github.com/facebook/shimmer-android 2.copy ShimmerFrameLayout.java 连同包名到java目录 3.copy attrs.xml 到 values 目录 4. 5. 注:各种style ...
分类:
其他好文 时间:
2017-03-22 15:13:34
阅读次数:
572
前两天和上家公司的上司无意聊了聊工作的事,也就顺便扯到了apk瘦身上。主要是通过SVG进行图片压缩来减少app的大小。下面我就详细介绍一下如何实现SVG的图片压缩。SVG的优点
SVG 可被非常多的工...
分类:
移动开发 时间:
2017-03-20 19:34:32
阅读次数:
294
jQuery 的选择器可谓之强大无比,这里简单地总结一下常用的元素查找方法 $("#myELement") 选择id值等于myElement的元素,id值不能重复在文档中只能有一个id值是myElement所以得到的是唯一的元素 $("div") 选择所有的div标签元素,返回div元素数组 $(" ...
分类:
Web程序 时间:
2017-03-18 21:24:11
阅读次数:
279