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


ピックアップ記事

AVIファイルからSWF作成 MotionSWF

2010年10月07日 過去Blog
AVIからSWFファイルに変換する際に便利なソフト MotionSWF http://www.vector.co.jp/soft/dl/win95/art/se226046.html vps…
「AVIファイルからSWF作成 MotionSWF」をはてなブックマークに追加

PHP での SimpleXML 処理>>RSS取得

2009年12月05日 過去Blog
phpでrssの情報を抜き出したい場合は、titleやlinkの要素は以下の通りで抜き出せます。 <?php // Load and parse the XML document $rss = simplexml_load_file('http://partners.userland.com/nytRss/nytHomepage.xml'); $title = $rss->channel->title; ?> …
「PHP での SimpleXML 処理>>RSS取得」をはてなブックマークに追加

tabBar + navigationBar + tableView

2011年01月19日 過去Blog
http://www.edumobile.org/iphone/iphone-programming-tutorials/tabbarcontroller-with-navigationcontroller-and-tableview-in-iphone/ http://iphone-app-developer.seesaa.net/article/130194298.html house cl…
「tabBar + navigationBar + tableView」をはてなブックマークに追加

MacのFTPソフト

2011年04月04日 過去Blog
windowsでは無料のFTPクライアントはたくさんあって、FFFTPのような定番ソフトもありますが、MacのFTPソフトがどれを使っても、なかなかいい感じのが見つかりません (^_^;A 今はFileZillaを使っています。最近使いはじめたばかりなので、使ってみての感想は、また記事に出来たらと思います。 MacユーザーのみなさんはFTPは何を使用されているんでしょうか? もし、おすすめのF…
「MacのFTPソフト」をはてなブックマークに追加

表氏中のデスクトップ画面を動画として保存する

2010年09月04日 過去Blog
映像の編集などをしていて、ブラウザに表示中のものや、ブラウザの動きなどをそのまま動画にして利用したいなという場面がありましたので、その際に便利だなと思ったサイトをあげておきます。 特別な登録作業なども不要ですぐ利用できます。 参照元:http://japan.cnet.com/news/society/story/0,3800104748,20413709,00.htm サービスサイト:htt…
「表氏中のデスクトップ画面を動画として保存する」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy