我想在一個陣列中打開一個URL,但它不工作打開URL。這是我的代碼:與陣列的iOS SDK
NSArray *platformarray = [[NSArray alloc] initWithObjects:iphonestring,ipadstring,androidstring,blackberrystring, windowsstring,nil];
NSString *url = [NSString stringWithFormat:@"http://xxx.nl/appofferte.php?hoedanigheid=%@&bedrijfsnaam=%@&naam=%@&email=%@&telefoon=%@&platformen=%@", hoedanigheid, bedrijf.text, naam.text, email.text, telefoon.text, platformarray];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
誰能幫我把數組放在1個變量中?
做它沒有更多鈔票給你像這樣做,,的NSString * URL = [的NSString stringWithFormat:@「http://xxx.nl/appofferte.php?hoedanigheid=%@&bedrijfsnaam=%@&naam=%@&email=%@&telefoon=%@&platformen= %@%@%@%@%@「,hoedanigheid,b edrijf.text,naam.text,email.text,telefoon.text,iphonestring,ipadstring,androidstring,blackberrystring,windowsstring]; – Dilip 2013-02-25 13:47:22
是該陣列,其中可變 – NAZIK 2013-02-25 13:47:36
@Dilip否,PHP-文件發送電子郵件,所以它是1個可變更爲具體。是否有可能在1個變量中發送「platformarray」? – 2013-02-25 13:49:26