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


ピックアップ記事

“URL file- access is disabled in the server configuration”というメッセージが表示された場合の対処法

2010年07月07日 過去Blog
■php.iniの設定が変更可能な場合 PHP コード スニペットを使用していて、ウェブページに "URL file-access is disabled in the server configuration" (URL ファイル アクセスはサーバーの設定で無効になっています) エラー メッセージが表示される場合は、ウェブマスターまたはホスティング プロバイダに連絡して、PHP サーバーの設定…
「“URL file- access is disabled in the server configuration”というメッセージが表示された場合の対処法」をはてなブックマークに追加

UIDatePicker + UIActionSheet で日付選択が面を作成

2011年05月03日 過去Blog
http://stackoverflow.com/questions/349858/fitting-a-uidatepicker-into-a-uiactionsheet 上記サイトの一番したのコメント内のコードが正常に動きます。 showInViewで設定するviewは以下のサイトを参考に http://d.hatena.ne.jp/griffin-stewie/20090220/p1
「UIDatePicker + UIActionSheet で日付選択が面を作成」をはてなブックマークに追加

htmlファイルでphpを動かすための.htaccessファイルの設定

2009年11月20日 過去Blog
htmlファイルでphpを動かすための.htaccessファイルの設定 .htaccessファイル内に以下の行を記述します。 AddType application/x-httpd-php .htm .html 当然の前提条件として、htaccessの動作が許可されているサーバに限ります。…
「htmlファイルでphpを動かすための.htaccessファイルの設定」をはてなブックマークに追加

MacのFTPソフト

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

エラー : fsockopen関係でエラーが出る

2009年11月25日 過去Blog
ページランク取得のプログラムをMODxやWordpress内で動かそうとすると以下のエラーが出る。 Error: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known CMSの内部ではなく、以下のようにphpファイルを直接動かすと正常…
「エラー : fsockopen関係でエラーが出る」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy