博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 73 下一页

2011年4月4日

摘要: 今天写Tab的时候由于TAB的跳转问题去查资料,倒反而发现更有趣的问题,就是如何将TAB放置在屏幕的底端。效果如http://www.sisou.cn/read-htm-tid-451.html所示,的确是个好想法,这样貌似也的确漂亮一些,有点类似IPhone里的布局了,呵呵~(其实后来发现这个应该不是用TAB做的,而是ButtonBar做出来的吧,或者是他重写了TAB?总之不是简单地将TAB放置底端了)。 要放置底端,那么Android自带的例程是不可以做到的(例程参看development-ApiDemo)。先需要写一个xml的layout文档,命名为bottomtab.xml。<? 阅读全文
posted @ 2011-04-04 00:06 Likwo 阅读(8801) 评论(0) 推荐(0) 编辑

2011年4月1日

摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>APP foriPhoneDownloadPage</title><metaname="viewport"content="wid 阅读全文
posted @ 2011-04-01 18:48 Likwo 阅读(6442) 评论(0) 推荐(0) 编辑

2011年3月21日

摘要: 通过self调用propery和直接调用propery的区别 ? 这个问题一直困扰我好久,比如在当前的tableViewController里又个属性叫name。实现了如下 方法.h文件定义内部属性NSString *name@property(nonatomic,retain)NSString *name; .m文件@synthesize name; 通过以上方法,就设定了controller的属性 name.比如我们在ViewDidLoad里通过如下的方法设置这个属性name = [NSString stringWithFormate:@"testName"];然后在下 阅读全文
posted @ 2011-03-21 11:13 Likwo 阅读(1383) 评论(5) 推荐(0) 编辑

2011年3月15日

摘要: Iphone代码片段导航Iphone开发代码片段1Iphone开发代码片段2Iphone开发代码片段31.给UITableViewController添加ToolBar。self.navigationController.toolbarHidden = NO; //默认是隐藏的。//添加MessageToolBar ,messageToolBar是IBOutlet的一个ToolBar。self.toolbarItems = [[[NSMutableArray alloc] initWithArray:self.messageToolBar.items] autorelease];self.na 阅读全文
posted @ 2011-03-15 13:10 Likwo 阅读(6386) 评论(2) 推荐(2) 编辑

2011年3月13日

摘要: 扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的通讯协议:http://code.google.com/p/cocoaasyncsocket/voip/sip:http://code.google.com/p/siphon/http://code.google.com/p/asterisk-voicemai 阅读全文
posted @ 2011-03-13 13:33 Likwo 阅读(4505) 评论(0) 推荐(1) 编辑

2011年3月8日

摘要: 在网上搜了下,确实只能用如下步骤来进行: 1) Create the project in XCODE. 2) Setup subversion in XCODE and select the subversion repository for this project. 3) Use Xcode SCM > Repository and click on the IMPORT icon. This will move the local copy to the subversion repository. 5) Now delete your local copy (or move i 阅读全文
posted @ 2011-03-08 17:10 Likwo 阅读(908) 评论(0) 推荐(0) 编辑

2011年3月4日

摘要: - (NSString *)getMimeType:(NSString *)fileAbsolutePath error:(NSError *)error{ NSString* fullPath = [fileAbsolutePath stringByExpandingTildeInPath]; NSURL* fileUrl = [NSURL fileURLWithPath:fullPath]; NSURLRequest* fileUrlRequest = [NSURLRequest requestWithURL: fileUrl]; NSURLResponse* response = nil 阅读全文
posted @ 2011-03-04 18:12 Likwo 阅读(1866) 评论(0) 推荐(0) 编辑

2011年3月2日

摘要: mql作为外汇交易的编程语言,光掌握了mql还不够,还需要掌握相关外汇的知识。关于mql里手数,有时候感觉很不明白。 1.外汇交易中的手数是怎么算的。比如0.05,1等是什么算的外汇10万美元是一手,如果是1:100杠杆的话一手你用的保证金就是1000美元,保证金是500美元的话就是0.5手,以此类推2.mql的Point是什么?看老外的解释吧A point is one pip. If EurUsd is at 1.2080 one point would be 0.0001. So if you want to set a TP on the EurUsd of 50, you have 阅读全文
posted @ 2011-03-02 20:42 Likwo 阅读(539) 评论(1) 推荐(0) 编辑

摘要: iphone 使用委托(delegate)在不同的窗口之间传递数据在IOS里两个UIView窗口之间传递参数方法有很多,比如 1.使用SharedApplication,定义一个变量来传递.2.使用文件,或者NSUserdefault来传递3.通过一个单例的class来传递 4.通过Delegate来传递。 前面3种方法,暂且不说,这次主要学习如何使用通过Delegate的方法来在不同的UIView里传递数据 。比如: 在窗口1中打开窗口2,然后在窗口2中填入一个数字,这个数字又回传给窗口1。 窗口1窗口2窗口2的结果传递给窗口1 1.首先定义个一委托UIViewPassValueDelega 阅读全文
posted @ 2011-03-02 12:24 Likwo 阅读(9890) 评论(1) 推荐(2) 编辑

2011年2月28日

摘要: 转自Elton's Bloghttp://blog.prosight.me/index.php/2009/09/357很多时候,在调试程序的时候,我们很想马上知道错误的代码在哪一行。 而不想大概设置一个断点,逐行调试发现最终是哪一行代码出问题导致程序崩溃。 可以使用下面这个办法快速定位问题代码。选择Run–>Show–>Breakpoints,进入断点窗口Xcode的断点窗口首先需要为-[NSException raise]创建一个断点。 选择Global Breakpoints, 双击Double-click for Symbol框, 输入-[NSException ra 阅读全文
posted @ 2011-02-28 16:06 Likwo 阅读(3154) 评论(0) 推荐(0) 编辑

上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 73 下一页