use*_*142 22 iphone xcode nslog nsstring
-(void) postToDB:(NSString*) msg{
//print msg
NSString *myphp = @"/Applications/MAMP/htdocs/databases/test.php";
NSURL *url = [NSURL URLWithString:myphp];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:msg forKey:@"message"];
}
Run Code Online (Sandbox Code Playgroud)
在上面的方法中,如何使用NSLog打印'msg'?
非常感谢
| 归档时间: |
|
| 查看次数: |
34021 次 |
| 最近记录: |