【发布时间】:2013-02-07 20:00:50
【问题描述】:
不确定这是错误还是我遗漏了什么,很可能是后者。我的 AFHTTPClient 的基本 url 是:
#define kBaseURL @"http://localhost:4567/api/"
self.client = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:kBaseURL]];
当我向例如'/games' 发出请求时,它实际上将请求发送到http://localhost:4567/games,而忽略了API 部分。
【问题讨论】:
-
“这是编译器/操作系统/库错误吗?”的答案总是“不,这是你的代码。”
-
@H2CO3...我知道你在说什么,但总是?我们有这个developer.apple.com/bugreporter 是有原因的 :)
标签: ios objective-c cocoa-touch afnetworking nsurlrequest