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


ピックアップ記事

[8]:SQLiteを使ってToDoリストアプリを作成(3)

2010年12月10日 過去Blog
この記事はタイトルの通り「SQLiteを使ってToDoリストアプリを作成」の第三部になるので、前回までの記事を既に読んでくださっている方を対象にしています。 [6]:SQLiteを使ってToDoリストアプリを作成(1) [7]:SQLiteを使ってToDoリストアプリを作成(2) このチュートリアルのメインは、選択されたtodoアイテムを表示することです。todoステータスを更新する方法も扱います。 …
「[8]:SQLiteを使ってToDoリストアプリを作成(3)」をはてなブックマークに追加

Macからのssh接続でエラー

2011年04月25日 過去Blog
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT …
「Macからのssh接続でエラー」をはてなブックマークに追加

PHP 日付の減算・差分を求める

2010年06月01日 過去Blog
define( "ONE_DAY_SEC", 24 * 3600 ); // 日付けの差分をとる関数 function dateDiff( $date1, $date2 ) { return ( strtotime( $date1 ) - strtotime( $date2 ) ) / ONE_DAY_SEC; } // 実行サンプル $date1 = date('Y/m/d…
「PHP 日付の減算・差分を求める」をはてなブックマークに追加

ドロップキャッチとは

2010年03月08日 過去Blog
ドロップキャッチとは (ドメインドロップキャッチ,drop catch,) ドロップキャッチとは、登録有効期限の切れたドメイン名を、再取得可能になったタイミングで取得することである。 ドメイン名は基本的に早い者勝ちであり、同じドメインを重複して取得することはできないが、登録有効期限の切れたドメイン名は一定期間の経過後に再度取得できるようになる。 たとえば、3文字程度の短い文字列や、魅力的な単語の…
「ドロップキャッチとは」をはてなブックマークに追加

Apacheの負荷軽減

2010年03月31日 過去Blog
Apacheのチューニングについて。 今のところ、大丈夫かなと思いますが、いずれ試してみようと思います。 http://tech.bayashi.net/svr/doc/apache/tune.html hostingreviewssite.com
「Apacheの負荷軽減」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy