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のバックアップ/復元

2011年01月13日 過去Blog
iPhone 上のデータをバックアップ&復元する方法です。 バックアップ iTunesにつなぎます。 iTunes 上に表示されたiPhoneを右クリック(または「control」キーを押しながらクリック)して、「バックアップ」を選択します。 これでバックアップ完了です。とても簡単ですね。 …
「iPhoneのバックアップ/復元」をはてなブックマークに追加

PHP フォームの処理

2010年04月17日 過去Blog
# stripcslashes() ---- C言語と同様にバックスラッシュでクォートされた文字列を元に戻す # htmlentities() ---- 適用可能な文字を全てHTML エンティティに変換する # nl2br() ---- 改行文字の前にHTMLの改行タグを挿入する # strip_tags() ---- 文字列からHTMLタグ、および PHPタグを取り除く …
「PHP フォームの処理」をはてなブックマークに追加

期限切れの中古ドメインがドロップされるタイミング、時間帯

2010年03月27日 過去Blog
期限切れの中古ドメインが取得可能になる時間帯を調べてみると、中古ドメイン取得館さんのページで参考になりそうな情報を発見したのでメモしておきます。 時間帯 取得件数 00:00~00:09 0 00:10~00:19 40 00:20~00:29 75 00:30~00:39 10 00:40~00:49 5 計 134 中古ドメイン取得館さんのページを見るとほとんどのドメインが…
「期限切れの中古ドメインがドロップされるタイミング、時間帯」をはてなブックマークに追加

Drupal 6.2 日本語版でTinyMCE 3.0.7を使う

2011年05月09日 過去Blog
■ダウンロード SourceForge.JP: TinyMCE Japan Project File List http://sourceforge.jp/projects/tinymce-ja/files/ ■アップロード後の作業手順(ダウンロードファイルに同梱されている「はじめに.txt」から引用) 1.TinyMCEモジュールを有効化 [管理セクション} > [モジュール]をクリックし…
「Drupal 6.2 日本語版でTinyMCE 3.0.7を使う」をはてなブックマークに追加

サーバの時刻調整

2010年03月05日 過去Blog
サーバの時刻設定 1. 時刻確認 date 2. 時刻設定 date -s "2006/02/20 19:03" linux上で、上記のコマンドを実行すれば、調整出来ます。 参照元:http://memorva.jp/memo/linux/date_ntp.php buy anabolics online…
「サーバの時刻調整」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy