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


ピックアップ記事

mySQL上で登録された内容に一致する文字列を置き換え

2009年12月25日 過去Blog
以下のようにSQLを実行することで該当箇所が置き換えされます。 phpのstr_replaceのような感じ。 UPDATE `テーブル名` SET フィールド名 =REPLACE (フィールド名,"置き換え前文字列","置き換え後文字列"); limo service san diego…
「mySQL上で登録された内容に一致する文字列を置き換え」をはてなブックマークに追加

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

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

ページランク更新

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

phpでランダムなパスワードを生成

2010年01月29日 過去Blog
使用例 //パスワード生成クラス読み込み require_once 'My/Password.php'; //デフォルトは8桁のパスワードが生成されます $password = My_Password::getPassword(); var_dump($password); //『32桁、小文字英字のみ』のパスワード生成 $password = My_Password::getPassword(32, 'small'); var_dump($password); …
「phpでランダムなパスワードを生成」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy