码迷,mamicode.com
首页 >  
搜索关键字:nil    ( 2740个结果
Lua1.1 虚拟机指令分析(二)
(接上篇) > EQOP ???case?EQOP: ???{ ????Object?*l?=?top-2; ????Object?*r?=?top-1; ????--top; ????if?(tag(l)?!=?tag(r)) ?????tag(top-1)?=?T_NIL; ????else ...
分类:其他好文   时间:2014-09-15 14:26:49    阅读次数:156
XML解析 DOM(2)
获取解析文件路径NSString*xmlPath=[[NSBundlemainBundle]pathForResource:@"Person"ofType:@"xml"];2.初始化xml字符串NSString*xmlStr=[NSStringstringWithContentsOfFile:xmlPathencoding:NSUTF8StringEncodingerror:nil];3.初始化一个GDataXMLDocument对象,因为解析时所有的..
分类:其他好文   时间:2014-09-15 11:30:29    阅读次数:149
XML解析 DOM(2)
获取解析文件路径NSString*xmlPath=[[NSBundlemainBundle]pathForResource:@"Person"ofType:@"xml"];2.初始化xml字符串NSString*xmlStr=[NSStringstringWithContentsOfFile:xmlPathencoding:NSUTF8StringEncodingerror:nil];3.初始化一个GDataXMLDocument对象,因为解析时所有的..
分类:其他好文   时间:2014-09-15 03:27:28    阅读次数:149
JSON (字符串解析) 字符串解析为数组
1.获取文件路径NSString*jsonPath=[[NSBundlemainBundle]pathForResource:@"Student"ofType:@"json"];2.将文件内容转化为字符串NSString*jsonStr=[NSStringstringWithContentsOfFile:jsonPathencoding:NSUTF8StringEncodingerror:nil];3.解析,通过JSON将文件字符串转化为数组.N..
分类:Web程序   时间:2014-09-15 03:27:08    阅读次数:235
XML解析(简单)
获取解析文件路径NSString*xmlPath=[[NSBundlemainBundle]pathForResource:@"Citys"ofType:@"xml"];2.初始化xml字符串NSString*xmlStr=[NSStringstringWithContentsOfFile:xmlPathencoding:NSUTF8StringEncodingerror:nil];3.初始化一个GDataXMLDocument对象,因为解析时所有的..
分类:其他好文   时间:2014-09-15 03:23:08    阅读次数:132
虚函数的特点就是执行的时候会下降到子类去执行同名覆盖函数
var t: TBitBtn;begin t:=TBitBtn.Create(nil); t.Name:='BitBtn100'; t.parent :=Self; // 这里下断点end;一路跟踪就会发现以下函数执行的时候下降(执行子类覆盖函数):TBitBtn.CreateHandle;...
分类:其他好文   时间:2014-09-14 05:47:26    阅读次数:167
UIActionSheet 警告,提示调用showFromTabBar方法
UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"选择图片" delegate:(self) cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherB...
分类:其他好文   时间:2014-09-13 21:26:35    阅读次数:279
使用Cocos Code Ide开发之:lua继承的理解
边写边错,边错边改,边改变搜,再改,改出了些心得。可能会有错误,多包涵,接受批评。 1 ---Base.lua 2 3 Base = {} 4 5 Base.__index = Base 6 Base.value = nil 7 8 ...
分类:其他好文   时间:2014-09-12 18:47:13    阅读次数:193
iOS UIText 或 UILabel 显示 HTML 并正确选用编码
有的时候我们可能会选用 UIText 或 UILabel 来显示 HTML 代格式的文字。NSAttributedString *html = [[NSAttributedString alloc]initWithData:[NSLocalizedString(@"comment", nil) da...
分类:移动开发   时间:2014-09-10 17:37:20    阅读次数:141
使用SetTimer函数为Delphi的Win控件设置时钟
procedure Timertodo(var messag:Tmessage);message WM_TIMER;procedure TForm1.FormCreate(Sender: TObject);beginsettimer(form1.Handle,1001,600,nil);end;pr...
分类:Windows程序   时间:2014-09-10 17:27:40    阅读次数:300
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!