2. iPhone SDK 勉強会 参考URL iOS App Development Workflow Guide http://developer.apple.com/library/ios/#documentation/Xcode/ Conceptual/ios_̲development_̲workflow/135-‐‑‒Unit_̲Testing_̲Applications/ unit_̲testing_̲applications.html
iOSアプリでHTTP通信を実装するベーシックな方法はFoundation Frameworkで提供されているNSURLConnectionを利用すること。ドキュメントの「URL Loading System Programming Guide」を一通り読んだので、その基本的な使い方をまとめてみる。 デフォルト設定でGET通信 まずはコードから。Window-based Applicationのプロジェクトテンプレートに対して、処理のエントリポイントをapplication:didFinishLaunchingWithOptions:に追加、他のメソッドは新規で作成。receivedDataはヘッダで定義されているNSMutableData型の変数。あ、テストコードなのでメモリ管理とか気にせず書いてます、あしからず。 - (BOOL)application:(UIApplication *
iPhone 4 の Retina Display の高解像度表示にアプリケーションを対応させるための方法をいくつか書きます。 これだけですべての場面に対応できるわけではないですが(例えば OpenGL での描画など)何かの役に立てばと思います。 高解像度の画像リソースを用意する Retina Display は従来のディスプレイの倍の解像度を持っているので、倍の解像度に合わせた画像を用意します。 もちろん単純に拡大しただけではダメなので、解像度が高くなったぶん、なめらかな画像を用意することになります。 上記の例は、上が従来の画像、下が Retina Display 対応の画像です。 命名規則によって自動的に解像度に合わせた画像を読み分ける [UIImage ImageNamed:] で読み込む場合は、ファイル名のサフィックスを判断して自動的にディスプレイの解像度に合わせた画像を読み分けて
本記事は「NSMutableDataを使ってテキストをDocumentディレクトリへ保存する - iOSアプリ開発の逆引き辞典」に転記しました。 Documentディレクトリのパスを取得する Documentディレクトリのパスは、NSSearchPathForDirectoriesInDomains関数にNSDocumentDirectoryを指定すると取得する事が出来ます。 NSArray* paths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); NSString* docDir = [paths objectAtIndex:0]; Document配下にディレクトリを作成する Documentディレクトリ配下のcacheディレクトリにファイルを配置したい場合は、デ
iPhone/iPad(iOS)アプリの開発情報の発信を行っていきます。 presented by NEXT-SYSTEM iOS Developers Tasaki です。 ここのところ、Quartz の機能紹介の特集みたいになってますが、 今回もその辺りの話です。 Mac のプログラミング経験がある方は、難なく扱えるのでしょうが、 なにぶん、iPhone アプリ開発に際して初めて Mac に 触れた僕のような方は、結構いらっしゃるかと思いますので 参考になれば幸いです。 さて、Quartz にはグラデーションを描画するための機能が 備わっており、そのためのデータ型として CGGradient が用意されています。 また、そのパターンも線形と放射状の2通りがあります。 この辺の話は公式ドキュメントの Quartz 2D Programming Guide に 詳しく書かれています。 今回
iPhoneアプリ開発に関する本は溢れていますが、iOSはとても奥が深く、本だけでは自分に必要な情報を集めきることは不可能です。そこで、突っ込んだ情報はインターネットを使って、探していくことが必要です。今回は、インターネットで公開されている有益なサイトをまとめてみました。 iPhoneアプリ開発の基礎 いまさら聞けないiPhone/iPadアプリの作り方の基礎 目指せ!iPhoneアプリ開発エキスパート iPhoneプログラミングの基礎:View Controller 第2回 iOSアプリ開発の準備 iOS Developer Programへの登録方法 C言語すら知らなかった私が2ヶ月でiPhoneアプリをリリースするまでにやった事。 Objective-Cについて Objective-C入門 Objective-C 最速基礎文法マスター Obejctive-C 3分クッキング 苦しんで
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く