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


ピックアップ記事

PHP サーバの空き容量、ディレクトリ内のファイル一覧を調べる

2010年08月11日 過去Blog
//ファイル一覧を表示するパスを指定する $path = "../member"; //ディレクトリを表示する print("ディレクトリ「".$path."」の一覧"); //文法 disk_free_space( パス ) //disk_free_spaceは指定したパスに対応するドライブの空き容量をバイト数で //返す print("ドライブの空き容量 ".disk_free_spac…
「PHP サーバの空き容量、ディレクトリ内のファイル一覧を調べる」をはてなブックマークに追加

phpmyadmin のインポートサイズの最大値を変更する

2010年04月03日 過去Blog
php.iniを適当なサイズに変更します。 memory_limit 32M post_max_size 50M upload_max_filesize 50M php.iniを変更したら httpdをリスタートします。 service httpd restart これで、大きなサイズでもインポート可能になります。 cheapest generic xanax…
「phpmyadmin のインポートサイズの最大値を変更する」をはてなブックマークに追加

[7.5] iPhoneアプリに背景画像を設置する

2010年12月06日 過去Blog
iPhoneアプリの背景に独自の画像をいれたい場合の説明です。デフォルトのままでも特に気にならない方も多いかもしれませんが、少し味気ないので、背景を設定してみましょう。 …
「[7.5] iPhoneアプリに背景画像を設置する」をはてなブックマークに追加

Zencat : 共用SSLを利用する場合のセッション管理

2009年11月20日 過去Blog
Zencat のセッション管理については、「Zencart : セッションについて」で触れていますので、基本的な説明はそちらでご確認ください。 共用SSLを利用する場合のセッション管理についてですが、共用SSLを利用する場合は、基本的に自分の運用するドメインとSSLページは違うドメイン(サーバ会社のドメインなど)になることが多いと思います。 その場合は、ブラウザのクッキーに保存されているSSLページと非SSLページでのドメインが違うことになるので、セッションが正常に引き継げなくなり、カートが空になるなどの現象が起こります。 …
「Zencat : 共用SSLを利用する場合のセッション管理」をはてなブックマークに追加

html、CSS テキストの自動折り返しを禁止する

2010年04月16日 過去Blog
<strong>white-space</strong> normal 標準 (初期値) nowrap 自動的な折り返しを禁止する prozac and alcohol…
「html、CSS テキストの自動折り返しを禁止する」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy