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

2011年4月5日

摘要: Java平台提供了一个全新的集合框架。“集合框架”主要由一组用来操作对象的接口组成。不同接口描述一组不同数据类型。 Java 2集合框架图 集合接口:6个接口(短虚线表示),表示不同集合类型,是集合框架的基础。 抽象类:5个抽象类(长虚线表示),对集合接口的部分实现。可扩展为自定义集合类。 实现类:8个实现类(实线表示),对接口的具体实现。 在很大程度上,一旦您理解了接口,您就理解了框架。虽然您总要创建接口特定的实现,但访问实际集合的方法应该限制在接口方法的使用上;因此,允许您更改基本的数据结构而不必改变其它代码。 · Collection 接口是一组允许重复的对象。 · 阅读全文
posted @ 2011-04-05 00:10 Likwo 阅读(600) 评论(0) 推荐(0)

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 阅读(8819) 评论(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 阅读(6463) 评论(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 阅读(1392) 评论(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 阅读(6397) 评论(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 阅读(4522) 评论(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 阅读(920) 评论(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 阅读(1880) 评论(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 阅读(558) 评论(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 阅读(9911) 评论(1) 推荐(2)

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