摘要:通过self调用propery和直接调用propery的区别 ? 这个问题一直困扰我好久,比如在当前的tableViewController里又个属性叫name。实现了如下 方法.h文件定义内部属性NSString *name@property(nonatomic,retain)NSString *name; .m文件@synthesize name; 通过以上方法,就设定了controller的属性 name.比如我们在ViewDidLoad里通过如下的方法设置这个属性name = [NSString stringWithFormate:@"testName"];然后在下
阅读全文
03 2011 档案
摘要: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
阅读全文
摘要:扫描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
阅读全文
摘要:在网上搜了下,确实只能用如下步骤来进行: 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
阅读全文
摘要:- (NSString *)getMimeType:(NSString *)fileAbsolutePath error:(NSError *)error{ NSString* fullPath = [fileAbsolutePath stringByExpandingTildeInPath]; NSURL* fileUrl = [NSURL fileURLWithPath:fullPath]; NSURLRequest* fileUrlRequest = [NSURLRequest requestWithURL: fileUrl]; NSURLResponse* response = nil
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文