Addresponse - 仅添加到内存(XCode)

And*_*ard 5 xcode cocoa cocoa-touch objective-c

我正在尝试将我的项目连接到php文件,但每次显示:

ADDRESPONSE - ADDING TO MEMORY ONLY
Run Code Online (Sandbox Code Playgroud)

我以前从未见过它.这是我使用的代码:

//Gets the php
FindURL = [NSString stringWithFormat:@"http://domain.com/Myfile.php?username=%@", Username.text];
// to execute php code
URLData = [NSData dataWithContentsOfURL:[NSURL URLWithString:FindURL]];

// to receive the returend value
DataResult = [[NSString alloc] initWithData:URLData encoding:NSUTF8StringEncoding];

NSLog(@"%@",DataResult);
Run Code Online (Sandbox Code Playgroud)

我能做什么?

提前致谢

更新代码:

- (IBAction)UpdateList:(id)sender{



    NSURLRequest *request=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://domain.com/Myfile.php"]
        cachePolicy:NSURLRequestUseProtocolCachePolicy
        timeoutInterval:15.0];
    NSURLConnection *Connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
    if (Connection) {
        //Connect
    }else{
        //Error
    }

}

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
    DataResult = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];

    NSLog(@"%@", DataResult);

}
Run Code Online (Sandbox Code Playgroud)

Tou*_*bey 2

我遇到了同样的问题 - 查看以下内容,这可能会对您 有所帮助:Log Messages I did not request for in Xcode 4.5 with iOS 6.0

到目前为止我还没有找到解决方案,但由于我现在知道这个日志是由操作系统生成的,所以我不再在我的源中寻找它的起源:)