2012年7月13日

(转)IOS学习之IOS程序名称及内容国际化(本地化)

摘要: 1、IOS程序名称国际化1.1 新建一个Single View app模版项目,命名为Localization。1.2 新建后,可以看到工作目录结构文件如下,单击InfoPlist.strings,查看右边的属性,在Localization栏添加语言。 1.3 添加完成后打开对应语言文件,比如English的添加CFBundleDisplayName="China";Chinese文件添加CFBundleDisplayName="中国";运行,如果此时你的模拟器是中文,你会看到你的程序名称变成了 中国:来到设置里把语言设置成 English。此时程序名称 阅读全文

posted @ 2012-07-13 13:16 kiao295338444 阅读(190) 评论(0) 推荐(0) 编辑

iOS 转gbk

摘要: 转:http://blog.163.com/gf_zl818/blog/static/83808068201223035130582/我们知道,使用NSURLConnection的代理方法下载网页,存到一个NSData中,NSMutableData*pageData;[pageData appendData:data];如果网页编码是UTF-8的,可以这么转换为字符串:NSString*pageSource=[[NSStringalloc]initWithData:pageData encoding:NSUTF8StringEncoding];如果网页是gbk(或者gb2312),用UTF8转 阅读全文

posted @ 2012-07-13 12:45 kiao295338444 阅读(458) 评论(0) 推荐(0) 编辑

2012年7月4日

Mac下SVN工具修改了的文件不能比较解决方法(转)

摘要: Mac下SVN工具修改了的文件不能比较解决方法http://blog.csdn.net/favormm/article/details/7704018mac下SVN工具versions老版本,在更新xcode后,比较文件的时候发现Error:Nodeveloperdirectoryfoundat/Developer.Run/usr/bin/xcode-selecttoupdatethedeveloperdirectorypath.原因是由于xcode目录发生了变化,所以方法是在终端运行如下命令:sudoxcode-select-switch/Applications/Xcode.app/Con 阅读全文

posted @ 2012-07-04 10:33 kiao295338444 阅读(386) 评论(0) 推荐(0) 编辑

2012年6月27日

LED效果的字体

摘要: fontWithName:@"DBLCDTempBlack" 阅读全文

posted @ 2012-06-27 10:03 kiao295338444 阅读(146) 评论(0) 推荐(0) 编辑

2012年6月15日

ios源码分析之JSTokenField

摘要: jsTokenField实现类似Mac OS X中NSTokenField的效果,这种效果可以在邮件应用的地址栏(To:field)可见,即输入的收件人姓名会以token的形式出现。具体请看效果图。jsTokenField主要由四部分组成:前面的_Label,中间的Button数组,后面的_TextField,和_hideTextField组成,jsTokenField重写了- (void)layoutSubviews方法,在layoutSubview方法中重新布局上述的几个部分,具体的添加token和删除token在textField的委托方法去处理,TokenField还重写了setFra 阅读全文

posted @ 2012-06-15 11:52 kiao295338444 阅读(279) 评论(0) 推荐(0) 编辑

2012年4月11日

25个让Java程序员更高效的Eclipse插件

摘要: Eclipse提供了一个可扩展插件的开发系统。这就使得Eclipse在运行系统之上可以实现各种功能。这些插件也不同于其他的应用(插件的功能 是最难用代码实现的)。拥有合适的Eclipse插件是非常重要的,因为它们能让Java开发者们无缝的开发基于J2EE和服务的应用程序。 Eclipse的插件也能帮助他们开发不同应用架构上的程序。下面列出来的是25个最好的免费Eclipse插件,可以让开发者更高效... 阅读全文

posted @ 2012-04-11 09:49 kiao295338444 阅读(481) 评论(0) 推荐(0) 编辑

2012年3月31日

UIImage From URL – Simplified (Using Blocks)

摘要: void UIImageFromURL( NSURL * URL, void (^imageBlock)(UIImage * image), void (^errorBlock)(void) ){ dispatch_async( dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_DEFAULT, 0 ), ^(void) { NSData * data = [[[NSData alloc] initWithContentsOfURL:URL] autorelease]; UIImage * image = [[[UIImage... 阅读全文

posted @ 2012-03-31 22:37 kiao295338444 阅读(525) 评论(0) 推荐(0) 编辑

A simple COCOA Asynchronous image loader class to use in your iPhone app.

摘要: This isnt a tutorial, this is just some source code that you might find useful. This class will load images in the background so it wont lock your UI up!UPDATED:Please note that this post has a new updated version found here:UIImage From URL – Simplified (Using Blocks)Here’s the header file :@interf 阅读全文

posted @ 2012-03-31 22:35 kiao295338444 阅读(171) 评论(0) 推荐(0) 编辑

App design tip – Custom UINavigationBar

摘要: 转自:http://ios-blog.co.uk/category/tutorials/app-design-tip-custom-uinavigationbar/Always wondered how to change the default UINavigationBar for something cooler? Maybe something likeInstagramorSyncListen?There is quite an easy way to do that. All you need to do is to override one method. You can eit 阅读全文

posted @ 2012-03-31 22:21 kiao295338444 阅读(260) 评论(0) 推荐(0) 编辑

core data Refaulting

摘要: RefaultingOne way to take control of your application’s persistent data and memory use is to turn managed objects back into faults, thereby relinquishing the memory its data was occupying. You turn ob... 阅读全文

posted @ 2012-03-31 15:12 kiao295338444 阅读(172) 评论(0) 推荐(0) 编辑

导航