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年02月20日 過去Blog
参考元:http://www.enbridge.jp/blog/2007/08/17232951.php [php] <?php echo "処理を開始します。しばらくお待ちください...<br />n"; echo str_pad(" ",4096)."<br />n"; …
「PHP で プログレス表示(進み具合を表示させる)」をはてなブックマークに追加

ページランク更新

2010年01月04日 過去Blog
新年あけましておめでとうございます。 新年早々?ページランクの更新があったようですね。 当サイト公開後、初のページランク更新でしたが、今回の更新でページランクが1になりました。 特に、高いページランクを目指して運営してるわけではないのですが、公開してから、被リンク数やページランクがどのように推移していくのかを軽く把握したいと思う気持はあるので、今回の更新は、ちょっとだけレベルアップしたような…
「ページランク更新」をはてなブックマークに追加

PHP POSTデータの受信 extract($_POST);

2011年07月07日 過去Blog
POSTで送信された複数のデータを取得する際に便利です。 $_POST['key'] のようにkey部分を手動で指定しなくても、利用可能になります。 extract($_POST); これ便利! (/_・)/
「PHP POSTデータの受信 extract($_POST);」をはてなブックマークに追加

タグが勝手に表示されてしまう。

2009年11月27日 過去Blog
phpでURLを取得し、自動でリンクを貼るプログラムを作っていたのですが、その際に自動で生成されるリンクが以下のようになり、正常に表示されません。 http://www.example.org/site/<wbr>testtest/php.html <wbr>というのは、長いURLや長い英数字の羅列をホームページに記載すると文字列が改行されずテーブルやボックスが延々横長に表示されるのを防ぐためのタグ。 …
「タグが勝手に表示されてしまう。」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy