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


ピックアップ記事

iPadでiOS Dev Center内のリファレンスを見ると(^^)

2011年01月08日 過去Blog
iPad用に最適化されていて、とても使いやすくなっています(^_^) 私は、さっき気付いたんですが、既にご存知の方も多いのかもしれませんが、、、(^_^;)…
「iPadでiOS Dev Center内のリファレンスを見ると(^^)」をはてなブックマークに追加

MacのFTPソフト

2011年04月04日 過去Blog
windowsでは無料のFTPクライアントはたくさんあって、FFFTPのような定番ソフトもありますが、MacのFTPソフトがどれを使っても、なかなかいい感じのが見つかりません (^_^;A 今はFileZillaを使っています。最近使いはじめたばかりなので、使ってみての感想は、また記事に出来たらと思います。 MacユーザーのみなさんはFTPは何を使用されているんでしょうか? もし、おすすめのF…
「MacのFTPソフト」をはてなブックマークに追加

PHP 現在表示中のドメイン名、ファイル名取得

2010年07月15日 過去Blog
//絶対パス echo __FILE__ . ''; //ディレクトリパス echo dirname(__FILE__) . ''; //スクリプト名 echo basename(__FILE__) . ''; echo $_SERVER["SERVER_NAME"]; echo $_SERVER["SCRIPT_NAME"]; echo '?'; echo $_SERVER["QUERY_…
「PHP 現在表示中のドメイン名、ファイル名取得」をはてなブックマークに追加

phpでRSSを取得後の日付表示方法を変更する

2009年12月05日 過去Blog
FC2ブログからRSSを取得すると、日付は以下のようになる。 <dc:date>2009-12-24T00:20:00+09:00</dc:date> このままでは、少しかっこが悪いので、以下のように修正。 $date ="2009-12-05T05:55:00+09:00"; $date = strtotime($date); $date = date('Y/m/d …
「phpでRSSを取得後の日付表示方法を変更する」をはてなブックマークに追加

PCのバックアップ

2010年10月05日 過去Blog
PCのバックアップ箇所のメモ デスクトップ マイドキュメント アウトルック(dbx,アカウント) ffftp hostsファイル IE,fireFox ブックマーク
「PCのバックアップ」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy