2011年01月17日 過去Blog
– (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @”Cell”; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } //ref of Addressbook ABAddressBookRef book = ABAddressBookCreate(); //Count of Addressbook //CFIndex cnt = ABAddressBookGetPersonCount(book); //NSLog(@”addressbook count is %d “,cnt); //AllRecords of Addressbook CFArrayRef records = ABAddressBookCopyArrayOfAllPeople(book); //record at index=i ABRecordRef person = CFArrayGetValueAtIndex(records,indexPath.row); NSString *firstName = (NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty); NSString *lastName = (NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty); if (firstName == nil) { firstName = @””; } if (lastName == nil) { lastName = @””; } cell.textLabel.text = [NSString stringWithFormat:@”%@ %@”,lastName,firstName]; return cell; }

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

xreaサーバ phpMyAdminへのログイン

2010年08月26日 過去Blog
二段階で認証があって毎回忘れてしまうので、メモ。。。 最初の認証は、xreaのデータベース画面下の方にある 「ページ入室の際はログ閲覧画面の認証パスワード(ユーザー名:****,パスワード:@@@@)をご利用下さい。」 の箇所の通り入力。 phpMyAdminの認証は使いたいデータベース名とそのパスワード。 ポップ認証 ユーザー名:userID,パスワード:wpec(4文字) ウェブ認証 …
「xreaサーバ phpMyAdminへのログイン」をはてなブックマークに追加

/etc/hosts ファイルの変更を反映させる

2009年12月05日 過去Blog
hostsファイルの設定を変えた場合は、 # /etc/rc.d/init.d/network resatart または、 # /etc/rc.d/init.d/network reload で反映させる。
「/etc/hosts ファイルの変更を反映させる」をはてなブックマークに追加

[4]:View間での移動について

2010年11月30日 過去Blog
今回は、あるviewから他のviewへ移動させる方法を実装します。UINavigationController を利用し、以前の記事で制作済のコードを利用します。 以前の記事(とても簡単です。)をまだ読まれてない方は、そちらを読んでから、この記事をご覧ください。 今回学ぶこと: 新規ビューの追加 ビューコントローラを追加する ビューを移動するための設定 ビューとコードを接続 戻るボタンを設置 …
「[4]:View間での移動について」をはてなブックマークに追加

Macで顔文字を使う

2011年02月28日 過去Blog
windowsでは使う事も多かった顔文字もmacでは、特に使わないままで、やってきましたが、最近macでメールする事も増えてきて、顔文字を使いたいと思うようになったので、その設定のメモです。 1.顔文字辞書ダウンロード まず、顔文字辞書をダウンロードします。 今回は、こちらとこちらを利用させてもらいました。 2.ことえりに登録する ダウンロードしたファイルを解凍します。 その中から、必要な辞書…
「Macで顔文字を使う」をはてなブックマークに追加

zencart 商品ページの属性カテゴリ画像を表示させない

2010年06月29日 過去Blog
zencartで、商品を選ぶと、その商品の詳細ページが表示されますが、その詳細ページ内の上部にカテゴリの画像が表示されます。 ■それを消す、または、表示させる方法 一般設定 > 商品情報の設定 > カテゴリ名と画像の配置 0 = 非表示 1 = 表示
「zencart 商品ページの属性カテゴリ画像を表示させない」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy