How can I create a registeration form connected wi

2019-03-06 13:39发布

问题:

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