Log in to iCloud to access your photos, mail, notes, documents and more. Sign in with your Apple ID or create a new account to start using Apple services.
※ページが正常に表示されない場合 AddBlockなどの広告ブロックツールがONになっていると、ページの一部が表示されないことがあります。これらのツールをOFFにしてみてください。
記録をとっていくタイプのアプリを開発中で、その記録をplistファイルに保存していくことにした。 Xcodeで作成したplistファイルに保存でなくて、iPhone内にファイルを作成して保存していく。 同じファイル名のファイルがない場合は、新規作成して、ある場合は、そのファイルを読み込むというもの。 ネットで検索していると、事前にファイルを作られたplistファイルを読み込みというのはあったんだけど、アプリで作成した場合の方法がなかなか無かったので、記録として残しておく。 NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString
UINavigationControllerに表示されるBackボタンの処理をどうにかハンドリングできないか悩んでいた時、 actionにselectorを指定していたのだが、これがだめだった。 [Bugle Diary][Objective-C][iPhone sdk]やっぱり、backBarButtonItem の動作は やってはいけないことだとわかった後、 ふと、デリゲートでやれと言ってるんだから用意されているのでは?と思い直し、再度デリゲートを調べなおした。 そしたらあった。 [iPhoneアプリ開発と留学]ナビゲーションバーのボタンが押されたときに呼ばれるdelegateを設定する UINavigationControllerを継承したクラスでデリゲートを行い、 そのクラスをUINavigationControllerのインスタンス代わりに生成。 無事、デリゲートの処理が行われて
2011年3月6日日曜日 【Cocoaプログラミング】UINavigationControllerの使い方 作りたかったのはナビゲーションバーを使ったこのようなアプリでした。 1枚目: アプリ起動後に表示される、最初のビュー。 ここにはナビゲーションバーを見せない。 2枚目: 次のビューを表示する、のボタンを押した後に表示されるビュー。 ナビゲーションバーが付く。 ナビゲーションバーの左側に、最初のビューに戻るためのボタンが表示される。 ナビゲーションバーの下にテーブルビューがあり、いくつかの項目が表示される。 3枚目: 項目を押すと、ビューが切り替わり、次の項目が表示される。 前のビューへ戻るためのボタン、ナビゲーションバーの”Back”が表示される。 4枚目: 最終的には、次のビューに進めない、行き止まりのビューに行き着く。 2枚目以降で、ナビゲーションバー
Cocos2d-x ver.3 で cocos コマンドという便利なコマンドラインツールが追加されました。実際に使用してみたので、備忘録兼ねてまとめておきます。 最近公式サイトのドキュメントがかなり充実してきていますので、英語が苦ではない方は公式ドキュメントを参考にするとよいかと思います。 How To Start A New Game Cocos2d-x ver.3 をインストールしたディレクトリを ~/cocos2d-x/ として進めていきます。 (続きを読む…)
こんにちは、こーじーです。 iPhoneアプリの開発を始めて僕が最初にハマったのは画面遷移です。 画面を移動する為に主に3つの方法があるのですが、そのうちNavigationControllerを使う方法でかなりはまりました。 基底となるViewControllerを設定していなかったり、もともとIBを使わずにコードだけで画面を作っていたものを後からXib化すると動かないとか。 3つの方法って?という方もいらっしゃるのではないでしょうか? これです! 1、 AddSubViewを使ったパターン 2、 modalViewを使ったパターン 3、 NavigationControllerを使ったパターン そのうち一番めんどうなのがNavigationControllerを使ったパターンだと思いますねー 基本となるのが1番目のAddSubViewのパターンです。 でも、僕が一番好きなのは2番の
日頃より楽天のサービスをご利用いただきましてありがとうございます。 サービスをご利用いただいておりますところ大変申し訳ございませんが、現在、緊急メンテナンスを行わせていただいております。 お客様には、緊急のメンテナンスにより、ご迷惑をおかけしており、誠に申し訳ございません。 メンテナンスが終了次第、サービスを復旧いたしますので、 今しばらくお待ちいただけますよう、お願い申し上げます。
よくわかるiPhoneアプリ開発の教科書【Xcode 4対応版】 Xcode 4.2に関する補足情報(2011/10/26) 本書は、Xcode 4.0を使った解説になっていますが、Xcode 4.2でもほぼそのまま使えます。ただ、若干の違いがありますので以下の3項目に分けて説明します。 A)Xcode 4.2で変わったところについて B)本書のサンプルファイルをXcode 4.2で読み込むとき C)本書の手順でXcode 4.2で作る際の注意点について A)Xcode 4.2で変わったところについて まずは、Xcode 4.2になって大きく変わったところについて説明します。 1)新規プロジェクトのテンプレートの名称が変わりました。 アイコンや名称がリニューアルしましたが、基本的は同じです。新しくなったテンプレートを選択して始めましょう。 「View-based Applicatio
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く