在我的應用程序使用下面的代碼從我的服務器中檢索數據:如何從php頁面讀取數組?
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
NSLog(@"Want to redeem: %@", textField.text);
NSURL *url = [NSURL URLWithString:@"http://localhost:8888/iPhone/page.php"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setDelegate:self];
[request startAsynchronous];
// Hide keyword
[textField resignFirstResponder];
// Clear text field
textView.text = @"";
// Start hud
return TRUE;
}
現在我應該怎麼做才能讓我的$array
內容在requestFinished
功能