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


ピックアップ記事

iPhoneアプリをAppStoreに公開する手順(編集中)

2011年02月05日 過去Blog
iTunes Connectを利用してアプリケーションを送信し、App Storeでの公開を依頼するには、 以下のものが必要です。 ■ アプリケーションのバイナリ ■ iOS用のバイナリ:iPhoneおよびiPod touch用の57ピクセルのアイコンとオプションの114 ピクセルの高解像度アイコン、またはiPad用の50ピクセルのアイコンと72ピクセルのアイコン を含む パソコン用のApp…
「iPhoneアプリをAppStoreに公開する手順(編集中)」をはてなブックマークに追加

Hello world!

2011年05月10日 過去Blog
WordPress へようこそ。これは最初の投稿です。編集もしくは削除してブログを始めてください !
「Hello world!」をはてなブックマークに追加

xreaサーバ phpMyAdminへのログイン

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

Mac OSX ターミナルを起動 hosts設定

2010年10月14日 過去Blog
最近、iphoneアプリ開発のためにMacを触ることが増えたのですが、Windowsでは簡単にできることもMacでは、なかなか思うようにできません。。。。 同じような思いをしている方も多いのでは?と思うので、初歩的なことからいろいろとメモしておきます。 ■ターミナルをキーボードから起動させる まず、ターミナルの起動(Windowsでいうコマンドプロンプト)のショートカット? ctrl + …
「Mac OSX ターミナルを起動 hosts設定」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy