Blocksを使ってこんな感じで書ける。お手軽。
- (void)fetchSomething
{
[[LRResty client] get:@"http://www.example.com" withBlock:^(LRRestyResponse *r) {
NSLog(@"That's it! %@", [r asString]);
}];
}
ライセンス:
その他:ARC対応、TouchJSON と OCHamcrestを使用。
Published on 2011年12月15日木曜日 Leave your thoughts »
|
|
Tweet |
Blocksを使ってこんな感じで書ける。お手軽。
- (void)fetchSomething
{
[[LRResty client] get:@"http://www.example.com" withBlock:^(LRRestyResponse *r) {
NSLog(@"That's it! %@", [r asString]);
}];
}
This post is archived under ライブラリ