iPhone シミュレータでオプション (option) キーを押しながらマウスを操作すると、2本指でのピンチイン、ピンチアウトのシミュレートができます。 さらに、オプション (option) + シフト (shift) を押すと、カーソルをその状態で固定したまま、平行に移動することができます。 これを利用すると、2本指のスクロールなどのテストがシミュレータで実行できます。 (2本指のスクロールは Safari のテキストエリア (Textarea) のスクロールなどで使用されています) またこの平行移動を上手に利用すると、同時タップの動作をシミュレータでテストすることが可能です。 まず、オプションキーを使用したピンチイン、アウトの動きで2点間の距離と角度を調整します。 2点の位置関係がちょうどいい感じになったら、すかさずシフトを押して固定します。 その状態でテスト対象のボタンなどに合うよ
objectForKey: は NSDictionary のメソッドですが、 valueForKey: は KVC (Key Value-Coding) 由来のメソッドです。 If key does not start with “@”, invokes objectForKey:. If key does start with “@”, strips the “@” and invokes [super valueForKey:] with the rest of the key. NSDictionary Class Reference 上記の通り、たいていの場合 valueForKey: は objectForKey: と同じ結果を返しますが、キー値が「@」から始まる場合、異なる動作をします。 キー値が「@」から始まる場合、「@」を除いた値を引数にしてスーパークラスの valueFo
Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up-to-date; please be wary of broken code or potentially out-of-date information. Read "A new era for Cocoa with Love" for more. You don't have to look far to find people suggesting that constructing views in code will increase the speed of your program. Since interface performance is a
You can actually grab the model fetched property and add the sort descriptors to it (again, in code). I did this in the standard method that XCode generates in your AppDelegate if you choose one of the templates with Core Data: By the way. This sorts ALL fetched properties on ALL models in your data model. You could get fancy and adaptive with it, but it was the most succinct way to handle sorting
えと、アプリ内課金を実際に開発始めようとしたときに、結構細かい挙動について質問を受けるので、ちょっと個々でも掲載しておきます。dodaiiのお客さんには個別にサポートしてる内容です。 そもそもこの3つの違いは? Consumable こんしゅーまぶる 消費可能 たとえばコイン300ゴールド、薬草1個、など何度でも購入できるアイテムです。 Non-Consumable のんこんしゅーまぶる 消費できない たとえば写真集vol001、フル機能版へのアップグレードとか1度しか購入できないアイテムです。 Subscription さぶすくりぷしょん 購読 たとえば1ヶ月利用チケット、3ヶ月利用チケットなど何度でも購入できるアイテムです。 NonConsumableとそれ以外の違い NonConsumableは、一度しか購入できない、それ以外は何度でも購入できるという違いだけに思えますが、もう一つ大
アプリAとアプリBがあり、アプリAでテキストボックスに文字を入力しボタンを押すとテキストボックスの内容をアプリBの画面に表示するサンプルを使って説明します。 iPhoneの場合 iPhone では UIApplication クラスの openURL メソッドを使うと他のアプリを起動することができます(Safariもこの方法で起動できます)。iPhone は単一アプリしか立ち上げることができないので openURL メソッドが呼びだされたときに呼び出し元アプリは終了してしまいます。そこでアプリを呼び出す際に呼び出し元アプリのURLを渡し、呼び出されたアプリの作業終了後に戻りURLを使って再び呼び出し元アプリを起動します。このようにすることであたかもアプリ間連携しているかのようにできます。 呼び出される側の実装 URLパターンを決める 他のアプリから起動できるようにするためにまずは呼び出しに
というタイトルで先日、(財)ふくい産業支援センター主催イベント「アップグレードふくいVol.26」にて発表を行いました。 ご来場いただいた皆様、誠にありがとうございました。 (※追記:2012年度版のおすすめiPhoneアプリ開発書籍記事を書きました!→「iPhoneアプリ開発10冊のおすすめ書籍 -2012- - モノバイトとスマートフォンアプリと他何か」) さて…イベントから10日以上経過しまして、主催者の方からイベントのアンケート結果をいただきました。 私の発表に「満足」と回答していただいた皆様、ありがとうございます! 私の発表に「不満」と回答していただいた皆様、本当にすみませんでした! で、一番不満点で多かったご意見…それは… スライドのページをめくるのが速すぎて書籍名がメモれません 本当にすみませんでした! スライドの下部にも常時、書籍名は出していたのですが文字が小さかったとのこ
Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up-to-date; please be wary of broken code or potentially out-of-date information. Read "A new era for Cocoa with Love" for more. NSXMLDocument is the normal tree-based XML parser in Cocoa. But if you're writing for the iPhone, this class isn't available. Even on the Mac, sometimes you w
iPhoneでは標準でlibxml2とNSXMLParserという2種類のXMLをパースするためのライブラリが使えるのだが、XPathQueryという前者のlibxml2のラッパーをMatt Gallagherさんという方が作っているので、その使い方をメモしておく。 [設定] 1. XPathQueryのサイトからソースコードが入ったzipファイルをダウンロード。 2. zipファイルに含まれるXPathQuery.mとXPathQuery.hをiPhoneのプロジェクトにコピーする 3. XCodeのプロジェクトの設定で、ビルドのヘッダ検索パスに/usr/include/libxml2を追加する 4. XCodeのプロジェクトにlibxml2.dylibのライブラリを追加する [使い方] 例えば以下のようなXMLファイルをダウンロードしてきてパースしたいとする。 <?xml versio
Upon first glance, the UIButton class doesn’t seem to provide what you might expect in terms of customization. This often causes developers to resort to creating buttons in an image editor and then specifying that in the Background field in Interface Builder. This is a fine solution and will likely give you what you need, but with Core Animation layers there is a simpler way to achieve the look yo
総額5,000ポイントでよろしくお願い致します。当方は個人でiPhoneアプリを作成しているものですが、同じく個人でiPhoneアプリのデザインをやってみたい(もしくは既にやっている)というデザイナーさん(もしくはその卵)を探しております。つきましては、このような募集を掲示するのに適したサイトやTwitter/Facebook/etcのアカウント等を教えて頂けないでしょうか? 下記が今のところ私の唯一の作品となっている「今日は何の日」というアプリです(iTunesが開きます)。 http://itunes.apple.com/jp/app/id317295986?mt=8 まずはこのアプリのデザイン向上を手がかりに作業を進めていきたいと思っておりますが、もし仕事が上手くいくようでしたら、次の作品では早い段階から共同作業等してみたいと考えております。 以上です。よろしくお願い致します。
iPhoneで動く、オープンソースのQRコード読み取りソフトとして ZXing ("Zebra Crossing") があります。このプロジェクトには iPhone 用のサンプルアプリ barcodes が入っていますが、色々な機能を持たせているのでQRコード読み取りライブラリーの使い方を知るには複雑すぎます。そこでカメラで画像を撮りQRコード読み取りを行う簡単なアプリを作ってみました。 サンプル アプリ ZXingのQRコード読み取りライブラリー Decoder は Decoder.hのメソッドと、DecoderDelegate.hに定義されているデリゲートメソッドを以下の流れで使います。 Decodeの初期化は initWithNibName:bundle:内で行います decodeImage:cropRect: メソッドで画像と画像の範囲を指定して読み取りを開始 decoder:di
お仕事の中で、QRコードを表示する必要がありiPhoneで動くオープンソースでGPLではないQRコード作成ソフトを探したのですが見つからなかったので作ってみました。 まずQRコード作成ライブラリーですが、GPLで無いものということで Ruby の rqr で使われている フリーソフト -> QR Code Image | Psytec を使わせて頂きました。また、win2ansi.h は rqrの物を改造して使っています。ありがとうございます。 Objective-C から QR Code Imageを呼び出す QREncodeUIImage QREncodeUIImage は QR Code Image(QR_Encode.cpp) にQRコード化する文字列を渡し、結果のQRコード画像を UIImage で戻します。 QREncodeUIImage.h #import <Foundati
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
teehanlax.com expired on 09/09/2022 and is pending renewal or deletion.
注意 現在ObjectiveResourceは iOS4.0 に対応できてないようです。 詳しくは こちら iPhoneはゲームのようにiPhoneだけで完結するアプリもありますが、たいていのアプリはサーバーと連携することで大きな可能性を得る事ができると思います。 その際にサーバー側のシステムとiPhone側のサーバーとの通信をどうするかは悩みどころですが、ObjectiveResource + Ruby on Rails を使うと本当に簡単にサーバー側と通信を行う事が出来ます。 サーバー側は Ruby on Rails ご存知のように、Ruby on Rails を使う事で高機能なWebサイトが短期間で構築できます。 例えば、上の画像のようなToDo を管理するようなWebアプリは 以下の様にコマンドを入力するだけで出来てしまいます。 % rails todo % cd todo % .
やっとiPhone SDKについて書ける項目ができた・・・・. 不特定多数の人にソフトウェアを公開するにはApp Storeを使うしかないと私も考えていたが,よくよく考えるとAd Hocビルドがある.Ad Hocビルドはソフトウェアを使用する人のデバイスをUDIDを登録した配布プロファイルを利用する.Ad Hocビルドを利用すれば,100台までのデバイスにApp Storeを介さずにアプリケーションをインストールすることができる. 概要 ビルドの流れを説明する.Xcodeの使い方やプロビジョニングファイルに関する説明はしない.NDAに抵触しそう. 1.配布したい相手のUDIDを教えてもらう. 2.UDIDを登録し,Ad Hoc配布プロビジョニングファイルをダウンロードする. 3.プロビジョニングファイルを利用してAd Hocビルドする.参考情報Appleの掲示板 4.プロビジョニングファイ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く