tiechui

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年11月2日

摘要: 如何做图片缩略图如何实现ipad相册中的图片翻动和其下方的图片缩略图自己扩展的方法- (NSImage *)resizeTo:(NSSize)newsize{NSRect rect=NSMakeRect(0, 0, newsize.width, newsize.height);NSImage *resizedImage = [[NSImage alloc] initWithSize:rect.size];[resizedImage lockFocus];[self drawInRect:rect fromRect:NSZeroRect operation: NSCompositeSourceO 阅读全文
posted @ 2011-11-02 18:00 tiechui 阅读(925) 评论(0) 推荐(0) 编辑

2011年9月6日

摘要: 方法设置tableView的cell的背景。先设置好选中背景cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"xx.png"]] autorelease];设置选中[tableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];注意 文档中的方法 [cell setSelected:YES]; 无效;教训是指:一定要 阅读全文
posted @ 2011-09-06 15:44 tiechui 阅读(210) 评论(0) 推荐(0) 编辑

2011年9月5日

摘要: iphone ipa打包文件制作在XCode下做ipa很简单,现在我们来说说步骤..1.选择Device - 3.0 | Release模式,然后build2.到程序目录的bulid文件夹下,打开Release-iphoneos, 会发现里面有个.app文件和.app.dSYM文件.我们需要的是.app文件-- 文件夹地址:user/lib/Developer/Xcode/DeriveData/projectName/Build/Products/Debug-iphoneos3.建立一个Payload文件夹,把.app文件放入,用zip格式压缩这个 Payload文件夹,然后把扩展名改为.ip 阅读全文
posted @ 2011-09-05 16:08 tiechui 阅读(1645) 评论(1) 推荐(0) 编辑

2011年8月16日

摘要: So I have been struggling with this on RestKit for some time. What I finally figured out is that if I used explicit Header Search Paths, i.e. $(SOURCE_ROOT)/Libraries/RestKit/Build instead of relative Libraries/RestKit/Build, then the code sense starts working correctly. My team has verified this fi 阅读全文
posted @ 2011-08-16 09:19 tiechui 阅读(1074) 评论(1) 推荐(0) 编辑

2011年8月3日

摘要: 很少做时间转换,转换了一个特殊格式的eg:Mon, 01 Aug 2011 01:07:30 GMT;从NSString 转到 NSDate方法如下- (NSString *)formatInfoDate:(NSString *)string { NSLog(@"string date: %@", string); NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; // 关键是拼写format,参见后面网址的格式列表,本人在time的HH和hh 上浪费了很都时间,用小hh是12进制,转24进制有时候nu 阅读全文
posted @ 2011-08-03 10:28 tiechui 阅读(1437) 评论(0) 推荐(0) 编辑

2011年7月1日

摘要: 如何在XCode4中设置NSZombieEnabled点击scheme下拉菜单 -> 编辑scheme -> arguments, 然后将点击”加号”, 将NSZombieEnabled参数加到Environment Variables窗口中, 后面的数值写上”YES”.xCode3:target下有个executables打开它的info 在arguments栏下半边 加上个参数name:NSZombieEnabled value:yes 然后购上在debug模式下 以前的bad_access会多点log 帮你定位 阅读全文
posted @ 2011-07-01 13:17 tiechui 阅读(799) 评论(0) 推荐(0) 编辑

2011年5月29日

摘要: http://blog.csdn.net/xiazdong/archive/2011/03/15/6251582.aspx 阅读全文
posted @ 2011-05-29 21:12 tiechui 阅读(177) 评论(0) 推荐(0) 编辑

2011年5月22日

摘要: Windows7出于安全考虑,将超级管理员帐户(Administrator)隐藏了,不允许"普通用户"登录使用。如果想登录Windows7超级管理员administrator账户,必须首先启用这个超级管理员帐户。如何启用windows7的超级管理员帐户?和vista里做法差不多。首先关闭UAC,在控制面板里-用户帐户里面-选择"打开或关闭用户帐户控制" 去掉勾号,重启电脑(出于安全考虑,不推荐不熟悉电脑的人使用超级管理员帐户和关闭UAC),然后按照以下9个步骤。1、使用安装时创建的帐号登陆windows7。2、开始--所有程序--附件,右键"命 阅读全文
posted @ 2011-05-22 08:52 tiechui 阅读(3022) 评论(0) 推荐(0) 编辑

2011年4月4日

摘要: 0 https://lunchtimemeet.com/1HTML5 的Web SQL Databases-本地数据库中文教程http://xiebiji.com/2010/10/web-sql-databases/http://www.webkit.org/demos/sticky-notes/index.html2Date_Format_Patternshttp://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns3http://allseeing-i.com/ASIHTTPRequest/Setup-instruction 阅读全文
posted @ 2011-04-04 16:36 tiechui 阅读(144) 评论(0) 推荐(0) 编辑

2011年3月29日

摘要: Firefox-user agent:blackberryBlackBerry8350i/4.6.1.112 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/-1iphone3:Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16ie6:Mozilla/4.0 (compatible; MSIE 6.0; Window 阅读全文
posted @ 2011-03-29 14:18 tiechui 阅读(215) 评论(0) 推荐(0) 编辑