2008年6月13日金曜日

1-09 Leveraging iPhone Location, Acceleration, Orientation, and System Information.m4v

ビデオのメモ

静的情報
 システムの情報
  System name
  System version
  Model name
   iPhone
   iPod touch
  User Name
   SettingとiTunesで表示されている内容
 取得方法

  UIDevice * myCurrentDevice = [UIDevice currentDevice];

  NS Log (@"%@ is an %@ running %@", [myCurrentDevice neme],
    [myCurrentDevice model],
    [myCurrentDevice systemVersion[);

  出力結果
   "Vicki's Music is an iPod touch running version 1.3"
 Unique IDが聞き事に提供されている
 オリエンテーション
  縦上、縦下、右横、左横、下向き、上向き、不明を知ることができる
  情報はPropertyやNotification設定で入手
  UIDevice.hで宣言
動的情報
 位置情報
  緯度 経度 高度 計測時そして前回の計測時が提供
  CLLocationManager
  消費電力に注意
  
 加速度センサ情報
  ゲームだけでなくユーザインタフェースとしても有用
  iPhoneを縦に置いて
   X方向 水平 右が+
   Y方向 垂直 上が+
   Z方向 前後 前が+
  UIAccelerometer 一定時間ごとに情報を入手
  UIAcceleration 呼び出したときのみ
  消費電力に注意

0 件のコメント:

Open Source

Appleが主催するdarwin-devのMailing listにAppleのDarwin TeamのWilliam SiegristがDeveloper Tools 3.1.3とiPhone OS 3.0関連のソース一部を公開したと投稿していました。 Developer To...