jQT A Zepto/jQuery plugin for mobile web development on the iPhone, Android, iPod Touch, and other forward-thinking devices.
■ iPhoneユーザが目の色を変えるAndroidの機能紹介(1) - インテント あ、なんか釣りっぽいタイトルになってしまった(笑)。 いやね、行く先々で「たださん、Androidどうですか」って聞かれるんだけど、けっこうみんな、Androidのこと知らないんだよ。GoogleがAppleに対抗して作ったiPhoneOSの真似っこにすぎなくて、たいして違わないと思い込んでる(白状すると、おれもそう思っていた)。で、iPhoneとの違いを重点的に説明してあげると、「わー、いいなー」っていう反応がかなり返ってくるんだな*1。 というわけで、(だんだん個別に説明するのが面倒になってきたので)ウケのいい機能をいくつかピックアップしてみようと思う。まずはマルチタスクOSの面目躍如、アプリケーション間連携機能「インテント」について。 iPhoneで撮った写真をメールで送るという場面を考えてみる。i
加速度センサを使うには、UIAccelerometerDelegateをdelegateしたいオブジェクト(controlerとかviewとか)にプロトコルを追加。具体的には // UIViewにUIAccelerometerDelegateプロトコルを追加 @interface EAGLView : UIView <UIAccelerometerDelegate> { とか // アプリクラスにUIAccelerometerDelegateプロトコルを追加 @interface MyAppDelegate : NSObject <UIApplicationDelegate,UIAccelerometerDelegate> { とか こんな感じで追加したいトコに記述(ViewControllerとかのがいいかも) これで初期化時に以下の記述を追加してやれば、加速度センサイベント起きるように
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く