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


ピックアップ記事

WordPressの記事中でphpを使うスクリプト

2009年11月24日 過去Blog
http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/ http://bono.s206.xrea.com/2006/03/112-runphp/ Zencartにも応用できる?
「WordPressの記事中でphpを使うスクリプト」をはてなブックマークに追加

UTCと日本時間

2010年03月24日 過去Blog
UTCの0時を日本の時間に変換すると朝の九時(UTC + 9時間)。 UTC Wednesday, 24 March 2010, 00:00:00 ↓↓↓↓↓↓ Kyoto (Japan) Wednesday, 24 March 2010, 09:00:00 UTC+9 hours
「UTCと日本時間」をはてなブックマークに追加

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

[3]:Interface Builder と Xcode を接続する方法

2010年11月30日 過去Blog
今回は、Interface Builder を使って、UITextField, UILabel, そして ボタンを配置し、Xcode で書いたコードと接続し、動作させてみます。 アプリケーションの仕様 ユーザーがテキストボックスをタップすると入力用のキーボードが表示される ユーザーは自分の名前(任意の文字列)を入力する 実行ボタンを押す ボタンを押すとラベルが、「Hello! ユーザー名!」のような表示に更新される もし、テキストボックスが空のまま実行されると、警告を表示させる …
「[3]:Interface Builder と Xcode を接続する方法」をはてなブックマークに追加

jQueryの基本

2011年06月16日 過去Blog
ここでは、jQuery初心者の方へ向けに、jQueryの基本的な使い方、使うメリットなどをまとめていきます。jQueryは簡単なコードで、サイトに大きな効果をつけることが可能ですので、デザイナーさんやコーダーの方も是非、試してみてください☆…
「jQueryの基本」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy