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)」をはてなブックマークに追加

Ushahidi API の使用方法

2011年04月08日 過去Blog
http://wiki.ushahidi.com/doku.php?id=ushahidi_api(英語版) http://wiki.ushahidi.com/doku.php?id=ushahidi_api_jp (日本語版) web hosting reviews…
「Ushahidi API の使用方法」をはてなブックマークに追加

/etc/hosts ファイルの変更を反映させる

2009年12月05日 過去Blog
hostsファイルの設定を変えた場合は、 # /etc/rc.d/init.d/network resatart または、 # /etc/rc.d/init.d/network reload で反映させる。
「/etc/hosts ファイルの変更を反映させる」をはてなブックマークに追加

PHP フォームの処理

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

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