iOS4ではいよいよマルチタスキングを実現できるようになったわけですが、開発者にとっては注意しなければならないことが圧倒的に多くなったのも事実です。 個人的に調べたときの呟きメモ、それにTL上で気になった情報をまとめましたので、参考にしてみてください。 補足などはぜひコメントへ!!
Cookieは通常サーバ側で自動的にセットされるが、場合によってはiPhone側で制御したい場合もあり、その方法のメモ。 iPhoneは、アプリ単位で、共有クッキーストレージと呼ばれるものを持っており、iPhoneの通信APIはその共有クッキーストレージを参照しているらしい。 なので、クッキーをセットする手順としては、クッキーを作成してから、共有ストレージにセットすることになる。 //指定パラメータのクッキーをセット //value: クッキーの値 //key: クッキーのキー名 //domain: クッキーを適用するドメイン(xxxx.ne.jp) //path: クッキーの有効適用範囲(サーバ上のパス) //expires: クッキーの有効期限(0は無限) - (void)setCookie:(NSString *)value forKey:(NSString *)key domain
Copyright (C) iPhoneアプリ開発備忘録 All rights reserved. ブログ内で記したコード、内容の正確性は保証いたしません。 記載内容を実装したことにより発生した不具合・損害等の責任は一切負いません。 XcodeとiPhone実機を接続してアプリケーションをテスト中にXcodeを強制終了した後、再度Xcodeを起動してiPhoneにアプリケーションをインストールしようとすると、Couldn't register xxxx.xxxx with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.プログラムは
ソフト開発に必須なUnitTestですが、Xcodeで動くUnitTest としてはiPhone Dev Center: iPhone Development Guide: Unit Testing Applications があります。このページに丁寧に使い方が書かれているので説明通りに設定する事で UnitTest が使えるようになります。ただし、この SenTestingKit にはいくつかの問題があります。 まずテストが結果がコンパイルエラーのように表示されるので、チェックするのがめんどうです。 そして、テストが通らなかった場合にデバックしようとしてもコンソール等にログを出したりできません ^^); この問題は致命的です。 そこで、他のUnitTestツールを探したところGoogle Toolbox for Mac の iPhoneUnitTesting というものがありました。こ
OSC(Open Sound Control)のパケットを送信する/受信するまでやった続き。 送受信する相手のIPとポートをちまちま手入力するのは禿げるので、Bonjourでかっこよく設定できるようにする。 まずは相手に見つけてもらう方。 Bonjourは マシン名(iPhoneならiTunesで設定した機器名称) サービス名(任意で決めた名前) プロトコル名(TCPなら._tcp、UDPなら._udp) ドメイン名(基本的に.local) でホストを探索するから、NSNetServiceでサービスを開始すればいい。 OSCの場合はサービス名は_oscが推奨っぽい。 supercollider、OSCulator、TouchOSCは_osc._udpでOKだし、vvoscの実装も_osc._udpになってた。 コードは大体こんな感じ。 NSString *domain = @"local"
他人の(自分以外の)iPhoneやiPadをテスト機として使用する方法をご紹介しておきます。 友人などにテストに協力してもらう場合には、iTunesを利用して識別子(UDID)を取得してもらいデバイス登録を行います。 デバイス登録が完了したら、Ad Hoc配布用のプロビジョニング・プロファイル(Provisioning Profile)を作成し、Provisioning Profileとアプリ本体を渡して、iTunesに取り込んで同期してもらうという流れになります。 iTunesを利用した識別子の取得 (iPhoneの持ち主側の作業) まずは同期するときと同様にiPhoneをiTunesに接続します。 iTunesにiPhoneの項目(項目名はiPhoneの初期登録時に付けた名前になります)が出てきますので、その項目をクリックし、iPhoneの電話番号などの概要が書かれた画面を表示します。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く