摘要: NSXMLParser解析xml格式的数据 用法如下:首先,NSXMLParser必须继续NSXMLParserDelegate协议@interface XMLHelper : NSObject <NSXMLParserDelegate>首先设置XML数据,并初始化NSXMLParser- (void)viewDidLoad {NSMutableString *Strxml=[NSMutableString stringWithString:@"<Body><xml1>11111111</xml1><xml2><xml 阅读全文
posted @ 2012-05-30 23:57 高笑228 阅读(209) 评论(0) 推荐(0)
摘要: 第一种:直接从场景切换到UIViewController视图(网上流传的版本)- (void) showUIViewController:(UIViewController *) controller{ [[Director sharedDirector] pause];[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:.5]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:[[Director share 阅读全文
posted @ 2012-05-30 14:36 高笑228 阅读(320) 评论(0) 推荐(0)
摘要: 慎用ViewCtrl的跳转!搞iphone开发的,应该都知道MVC,顶半边天的UIViewCtrl,区分好Modle、View、Controller各自的作用。这里要提醒的是,勿滥用UIViewCtrl的跳转。从一个Controller跳转到另一个Controller时,一般有以下2种:1、利用UINavigationController,调用pushViewController,进行跳转;这种采用压栈和出栈的方式,进行Controller的管理。调用popViewControllerAnimated方法可以返回。2、利用UIViewController自身的presentModalViewC 阅读全文
posted @ 2012-05-30 14:32 高笑228 阅读(3528) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/likendsl/article/details/7417878 阅读全文
posted @ 2012-05-30 01:25 高笑228 阅读(201) 评论(0) 推荐(0)