摘要: 最近在开发IOS中,用到了POST数据到服务器,并将返回的JSON格式数据进行处理。这里使用的是JSON库是JSON-framwork 1 -(IBAction)JsonConvert:(id)sender 2 { 3 NSString *urlAsString = @"http://192.168.1.8/ajax/SInfo.ashx"; 4 urlAsString = [urlAsString stringByAppendingString:@"?param1=First"]; 5 urlAsString = [urlAsString string 阅读全文
posted @ 2013-08-27 09:48 localitysoft 阅读(1013) 评论(0) 推荐(0)
摘要: 非常有用的一段代码,在IOS开发中2个View页面之间跳转。记录下来。1 -(IBAction)NextPage:(id)sender2 {3 Page_Second *control = [[[Page_Second alloc] initWithNibName:@"Page_Second" bundle:nil] autorelease]; //定义要跳转到页面4 [self.view.window setRootViewController:control];5 } 阅读全文
posted @ 2013-08-27 09:45 localitysoft 阅读(352) 评论(0) 推荐(0)