タグ

ブックマーク / iphone-app-developer.seesaa.net (3)

  • UITableViewの中に、UISwitchを実装する

    Copyright (C) iPhoneアプリ開発備忘録 All rights reserved. ブログ内で記したコード、内容の正確性は保証いたしません。 記載内容を実装したことにより発生した不具合・損害等の責任は一切負いません。 テーブルセルの中に、スイッチを表示させる実装方法。 セクション分けしたテーブルを使用して、アプリの設定を行う画面を作るときに利用できる。 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [self._itemTable dequeueReusableCellWithIdentifier:@"RegularCell"]; if (cell == nil)

    UITableViewの中に、UISwitchを実装する
    mistofforest
    mistofforest 2011/01/30
    cell.accessoryView = switchObj;
  • UITabBarController に UINavigationController を組み込む

    Copyright (C) iPhoneアプリ開発備忘録 All rights reserved. ブログ内で記したコード、内容の正確性は保証いたしません。 記載内容を実装したことにより発生した不具合・損害等の責任は一切負いません。 UITabBarController に UINavigationController を組み込む タブ画面(UITabBarController)の下層にナビゲーション画面(UINavigationController)を配置するという形になる。 従って、既にNavigation-based Applicationベースでアプリケーションを開発している場合、新たにTab Bar Applicationで開発しなおす必要がある。 但し、既にNavigation-based Applicationベースで開発したアプリケーションの大部分は流用することができる。

    UITabBarController に UINavigationController を組み込む
  • CLLocationで現在位置を取得する

    Copyright (C) iPhoneアプリ開発備忘録 All rights reserved. ブログ内で記したコード、内容の正確性は保証いたしません。 記載内容を実装したことにより発生した不具合・損害等の責任は一切負いません。 現在地情報を取得する方法。 1. XcodeでプロジェクトにCoreLocation.framework を追加する。 2. ヘッダファイルに CLLocationManagerDelegate の指定、 CoreLocation.frameworkのヘッダファイルを追加する。 RootViewController.h #import <CoreLocation/CoreLocation.h> @interface RootViewController : UIViewController <CLLocationManagerDelegate> { CLLoc

    CLLocationで現在位置を取得する
    mistofforest
    mistofforest 2011/01/03
    位置取得後にstopUpdatingLocationを呼び出す(またstartさせるのだろう)
  • 1