不积跬步,无以至千里;不积小流,无以成江海

Our practice

不积跬步,无以至千里;不积小流,无以成江海

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页

2011年4月25日

摘要: - (void)viewDidLoad { [super viewDidLoad]; NSIndexPath *ip=[NSIndexPath indexPathForRow:0 inSection:0]; [myTableView selectRowAtIndexPath:ip animated:YES scrollPosition:UITableViewScrollPositionBottom];} 阅读全文
posted @ 2011-04-25 11:18 英怀 阅读(9049) 评论(0) 推荐(0) 编辑

2011年4月21日

摘要: iPhone Development 101:User Interface:Sizes of iPhone UI ElementsElementSize (in points)Window (including status bar)320 x 480 ptsStatus Bar(How to hide the status bar)20 ptsView inside window(visible status bar)320 x 460Navigation Bar44 ptsNav Bar Image /Toolbar Imageup to 20 x 20 pts (transparent 阅读全文
posted @ 2011-04-21 22:22 英怀 阅读(537) 评论(0) 推荐(0) 编辑

2011年4月20日

摘要: 1.进入appstore,然后打分NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d", m_appleID ];[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];2.进入首页NSString *str = [NSStri 阅读全文
posted @ 2011-04-20 16:49 英怀 阅读(477) 评论(0) 推荐(0) 编辑

2011年4月7日

摘要: NSArray *insertIndexPaths = [NSArray arrayWithObjects: [NSIndexPath indexPathForRow:indexPath.row+1 inSection:0], [NSIndexPath indexPathForRow:indexPath.row+2 inSection:0], [NSIndexPath indexPathForRow:indexPath.row+3 inSection:0], [NSIndexPath indexPathForRow:indexPath.row+4 inSection:0], nil]; [r. 阅读全文
posted @ 2011-04-07 10:49 英怀 阅读(362) 评论(0) 推荐(0) 编辑

2011年3月30日

摘要: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] init 阅读全文
posted @ 2011-03-30 13:37 英怀 阅读(717) 评论(0) 推荐(0) 编辑

摘要: 原文地址:http://www.codza.com/how-to-debug-exc_bad_access-on-iphone当程序出现“EXC_BAD_ACCESS”时,就像不解风情的妻子对你说:“亲爱的,今晚不行”。这两种情况都是非常不幸的。让我们先看看EXC_BAD_ACCESS到底是什么。向已经释放的对象发送消息时会出现EXC_BAD_ACCESS。当出现错误时,通常会调用堆栈信息,特别是在多线程的情况下。怎样提供一个dummy,当释放一个对象导致程序终止时,在堆栈上告诉我们错误信息,好,下面我们将告诉你怎么去做。如果你设置了NSZombiEnabled环境变量,当销毁一个对象时,ob 阅读全文
posted @ 2011-03-30 13:37 英怀 阅读(1844) 评论(0) 推荐(0) 编辑

摘要: 只要在图片名上加个"@2x"就可以了,真有暴力简单美。比如两个图片Button.pngButton@2x.png使用代码UIImage* anImage = [UIImage imageNamed"Button.png"];程序会根据iphone种类自动调用不同图片。 阅读全文
posted @ 2011-03-30 12:53 英怀 阅读(219) 评论(0) 推荐(0) 编辑

2011年3月21日

摘要: 来自于:http://cenphoenix.javaeye.com/blog/709691某些打不开需FQCustomizing the background/border colors of a UITableView (grouped style)http://pessoal.org/blog/2009/02/25/customizing-the-background-border-colors-of-a-uitableview/UITableViewCell Dynamic Heighthttp://www.cimgf.com/2009/09/23/uitableviewcell-dyn 阅读全文
posted @ 2011-03-21 18:19 英怀 阅读(311) 评论(0) 推荐(0) 编辑

2011年3月8日

摘要: 打开“终端”,输入以下代码:Xml代码defaultswrite~/Library/Preferences/com.apple.finderAppleShowAllFiles-booltrue然后重启 Finder 即可。恢复隐藏的代码:Xml代码defaultswrite~/Library/Preferences/com.apple.finderAppleShowAllFiles-boolfalse 完了记得重启Finder重启方法:第一种方式 : 终端命令方式重启Finder最先想到的,终端命令方式还是对我们有很大的帮助的打开终端工具命令行输入(如下图)killall Finderkill 阅读全文
posted @ 2011-03-08 09:02 英怀 阅读(1735) 评论(0) 推荐(0) 编辑

2011年3月5日

摘要: [NSThread sleepForTimeInterval:5]; 阅读全文
posted @ 2011-03-05 14:19 英怀 阅读(616) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页