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..