How can I create a registeration form connected wi

2019-03-06 12:59发布

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条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-03-06 13:38

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

查看更多
登录 后发表回答