- 博客(9)
- 收藏
- 关注
转载 Xcode添加字体库
添加自定义字体的方法 1) 先需要一个.ttf的自体库,可以百度搜索字体库下载 2)把这个文件添加到工程里面 3)工程plist中添加Fonts provided by application一项,项目中添加你的文件名,如:felt.ttf 4)添加成功后,就可以使用啦。但是我只拿到这个库,并不清楚fontname。用下面这段代码,打印出来系统可用字体。
2013-08-22 17:46:06 1024
原创 解决error: PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.2
clean 一下即可。。。
2013-08-22 15:21:52 609
转载 mac 设置host
1, 双击桌面 "Macintosh HD" 图标. 2, 单击图标 Applications>Utilities>Terminal 3, 在terminal界面中输入: sudo vi /etc/hosts 然后回车 4, 会提示让你输入密码 oooooooo.(注意输入密码时你看不到*号) 5, 输入成功以后,在出现的界面中按e,转入编辑模式 6, 输入你
2013-08-22 14:44:28 571
原创 非自定义tabbar显示全图片方法
UITabBarItem * itemA = [[[UITabBarItem alloc]initWithTitle:@"" image:nil tag:1] autorelease]; UITabBarItem * itemB = [[[UITabBarItem alloc]initWithTitle:@"" image:nil tag:2] autorelease
2013-08-22 14:42:21 885
转载 添加ASI
1.下载asihttprequest 2. 把Classes里的文件,拖到XCode中 External/Reachbility也拖进去 ->这是Apple 官方用来检查网络链接是否正常的类库 3.导入框架 SystemConfiguration.framework MobileCoreServices.framework CoreGraphics.framework CFNetw
2013-08-22 14:38:51 599
转载 关于iOS6应用中第三方类库不支持armv7s的问题解决
今天编译ios6+cocos2d v2 .1 beta2制作的游戏,出现下面的错误: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture armv7s clang: error: linker command failed
2013-08-22 14:37:54 567
原创 解决headerView 的resize问题
[UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.3]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; // beginUpdates and en
2013-08-22 14:36:28 627
原创 解决 非arc使用arc类库
选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。 如何在未使用arc的工程中引入一个使用了arc特性的文件:对相应的文件添加:-fobjc-arc参数
2013-08-22 14:34:49 412
原创 计算代码行数
find . -name "*.m" -or -name "*.h" -or -name "*.c" |xargs grep -v "^$"|wc -l
2013-08-22 14:33:30 409
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人