iOSアプリ開発のメモ置き場

ささたつがiOSアプリ開発で知ったObjective-Cのtipsなどを書いていく所存

2013-12-09から1日間の記事一覧

RestKit の Example を実行する方法

v0.20.3 を持ってきて、Edit Scheme から Executable のところから実行したいサンプルを選択する

SDWebImage を使うと画像をちょー簡単に非同期読み込みにしてくれる

#import <SDWebImage/UIImageView+WebCache.h> NSURL *userImageURL = [NSURL URLWithString:url]; // setImageWithURL が表示したい画像、placeholderImage が画像を取得してくる間での間とりあえず表示したい画像 [self.imageView setImageWithURL:userImageURL placeholderImage:[UIImage ima</sdwebimage/uiimageview+webcache.h>…

xib ファイルを UITableViewCell として使うときの Tips

普通はこう書くけど、 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"]; if (!cell) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier]; } xib ファイルを使…