??Checks if an object is compatible with a given type.An is expression evaluates totrue if the provided expression is non-null, and the provided objec...
1、Android 颜色对比
/** Calculates the constrast between two colors, using the algorithm provided by the WCAG v2. */
public static float computeContrastBetweenColors(int bg, int fg) {
fl...
分类:
移动开发 时间:
2015-06-15 11:14:30
阅读次数:
150
Because generating and reading the select() bit arrays takes time proportional to the largest fd that you provided for select(), the select() call sca...
分类:
其他好文 时间:
2015-06-04 00:56:33
阅读次数:
567
项目主页:http://grinninglizard.com/tinyxml2docs/index.html
tinyxml2.h
/*
Original code by Lee Thomason (www.grinninglizard.com)
This software is provided 'as-is', without any express or implie...
分类:
编程语言 时间:
2015-05-26 23:29:21
阅读次数:
1288
首先,info.plist文件中添加Fonts provided by application属性,将ttf或者otf文件名加入到列表中,并将ttf或者otf文件添加到工程中;
其次,通过以下方法可以查看系统所有支持的字体名字,包括你刚才导入的。
NSLog(@"Font names = %@", [UIFont familyNames]);
最后,可以通过以下方法使用...
分类:
移动开发 时间:
2015-05-26 16:13:26
阅读次数:
179
现象在Mac上启动tomcat时,报了如下错误:Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: XXXX: XXXX: nodename nor servname provided, or not...
分类:
编程语言 时间:
2015-05-22 21:16:40
阅读次数:
178
RPM FusionRPM Fusion provides software that theFedora ProjectorRed Hatdoesn't want to ship. That software is provided as precompiled RPMs for all curr...
分类:
其他好文 时间:
2015-05-21 22:18:44
阅读次数:
166
今天自己独立的解决了好几个问题,很开心。
第一个就是关于证书的问题:
之前项目经理让我们把/user/Vicky/Library/MobileDevice/Provisioning Profiles 清空,在安装最新的证书;
但是安装的过程中,总是会出现这样的error:
1.No codesigning identities(i.e. XXX) found matching the ...
分类:
其他好文 时间:
2015-05-19 10:51:30
阅读次数:
150
IntroductionIn DirectX 8, support for rendering to multiple windows is provided through the creation of additional swap chains. However, there are cur...
分类:
其他好文 时间:
2015-05-18 20:13:44
阅读次数:
130
1:获取字体文件
从各种渠道下载字体文件ttf, 网站或者从别的ipa里扣出来.(以fzltxh.ttf为例)
2:将fzltxh.ttf文件拷贝到工程中
3:在Info.plist中添加项:
Fonts provided by application(UIAppFonts) 可以添加一个或多个item,
如 item0 -- fzltxh.t...
分类:
移动开发 时间:
2015-05-15 17:47:39
阅读次数:
344