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


ピックアップ記事

Start it now!!

2009年11月18日 過去Blog
今日からブログを開始することにしました。 どれぐらいの頻度で更新出きるかは不明ですが、ほどほどにがんばってみます。 とりあえず、気になるのは、記事にコメントした場合に表示される、無意味な<div class="reply"></div>のタグです・・・。 コメントへの返答をするためのリンクが表示される箇所かなと思うのですが、空のタグだけが表示されているようです。 放…
「Start it now!!」をはてなブックマークに追加

デジカメのメモリやUSBメモリのデータを誤って削除、フォーマットしてしまった場合の復元方法

2010年10月07日 過去Blog
以下のフリーソフトで復元できました。 http://www.powerdatarecovery.com/ 日本の有料の物も試してみましたが、上記の無料のソフトのほうが精度が高かったです。 anabolic pharma - your personal online pharmacy store…
「デジカメのメモリやUSBメモリのデータを誤って削除、フォーマットしてしまった場合の復元方法」をはてなブックマークに追加

[LINUX] PHPでサーバにユーザーを追加 useradd

2010年02月02日 過去Blog
PHPからUSERADDを実行する $id = "username"; $passwd = crypt("passwd"); $cmd = "echo 'sudoPasswd' | sudo -S useradd -p $passwd $id"; exec($cmd, $output); ROOTディレクトリを表示 //ls -a /root $cmd2 = "echo…
「[LINUX] PHPでサーバにユーザーを追加 useradd」をはてなブックマークに追加

UIDatePicker + UIActionSheet で日付選択が面を作成

2011年05月03日 過去Blog
http://stackoverflow.com/questions/349858/fitting-a-uidatepicker-into-a-uiactionsheet 上記サイトの一番したのコメント内のコードが正常に動きます。 showInViewで設定するviewは以下のサイトを参考に http://d.hatena.ne.jp/griffin-stewie/20090220/p1
「UIDatePicker + UIActionSheet で日付選択が面を作成」をはてなブックマークに追加

zencart サイトタイトル・サイトキーワードの変更

2010年06月29日 過去Blog
SEO対策のためには、サイトのタイトルやキーワードを設定することになると思いますが、zencartで構築されたサイトのタイトルやキーワードを変更するには、includes/languages/japanese/meta_tag.php を編集します。 ■サイトのタイトルを変更 「TITLE」、「SITE_TAGLINE」を変更する。 ■キーワードを変更 「CUSTOM_KEYWORDS」を変更…
「zencart サイトタイトル・サイトキーワードの変更」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy