iOS Xcode connecting to MySQL database

前端 未结 4 721
刺人心
刺人心 2020-12-29 09:00

I\'m currently making an iOS App for my school, and have no previous experience with iOS programming. However, I do have experience with HTML/PHP/MySQL.

Currently w

4条回答
  •  温柔的废话
    2020-12-29 09:50

    You need to create an NSMutableURLRequest and initialize an NSURLConnection with it to send an HTTP message. Something like that:

    NSURL *url = [NSURL URLWithString:@"http://xyz.com"];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
    [request setHTTPMethod:@"POST"];
    NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
    

提交回复
热议问题