How can I create a registeration form connected with an xml webservice?

ぃ、小莉子 提交于 2019-12-20 07:47:13

问题


I have to create a registration form in my app. It should be connected to the web service. How do I create it? Are there any good tutorials about this?


回答1:


You can send only data to web service... e.g If you have text fileds in your form then you can make a method in which you can pass your link and in link you can pass the value of your text field... for example:

-(void)sendData
{
 NSString *registeruser = [NSString stringWithFormat:@"http://yourlink//username=%@",yourTextfiled.text];
   NSLog(@"registeruser...%@",registeruser);
}

and call this method where you want.. If you want to call this method on Register Button then make button action and call this method.. for example..

 -(IBAction)RegisterAction:(id)sender
 {
   [self sendData];
 }

Hope it will help you..



来源:https://stackoverflow.com/questions/13872698/how-can-i-create-a-registeration-form-connected-with-an-xml-webservice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!