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

后端 未结 1 1989
粉色の甜心
粉色の甜心 2021-01-26 13:47

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条回答
  •  孤独总比滥情好
    2021-01-26 14:40

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

    0 讨论(0)
提交回复
热议问题