Taking Objective-C to the next level. UA Mobile 2016.UA Mobile
I have the following simple code to connect to a SSL webpage NSMutableURLRequest *urlRequest=[NSMutableURLRequest requestWithURL:url]; [ NSURLConnection sendSynchronousRequest: urlRequest returningResponse: nil error: &error ]; Except it gives an error if the cert is a self signed one Error Domain=NSURLErrorDomain Code=-1202 UserInfo=0xd29930 "untrusted server certificate". Is there a way to set i
EvaCameraCloneはiPhone用のオープンソース・ソフトウェア。iPhoneアプリ開発の話はたびたび聞かれるようになってきた。とは言え全くの新規性をもったアプリというのは意外と多くなく、大抵は元ネタがあっての焼き回しだったりする。 電光石火の開発 先日Twitter上でつぶやかれたカメラアプリ開発依頼の話も同様だ。カメラ機能にイラストのレイヤー載せたエヴァカメラというアプリに似たものを残り時間24時間で開発して欲しいというものだ。そして開発されたのがEvaCameraCloneだ。 EvaCameraCloneはカメラの上にレイヤーを載せて写真を撮影できるという、まさにエヴァカメラの仕様を踏襲したものだ。開発時間はわずか2時間(リソースは除く)、まさに電光石火(or ジェバンニ)だ。iPhoneアプリ開発者にとっても参考になると思われるのでソースを見てみよう。 筆者のアプリでは
iPhone SDKiPhone アプリの開発でぶちあたる壁、EXC_BAD_ACCESS。何度見てもいらっとしてしまうのは、とにかくエラーの原因がわからない。トレースは出るけど、なんでそこで???というのがほとんど。gdb で追いかけるのもいいが、もしかしたらこの設定であっさりと原因がわかるかもしれない。設定箇所は左ペインの「実行可能ファイル」にある実行ファイルをダブルクリック。そこの引数タブの環境変数に「NSZombieEnabled」を追加して値を「YES」にするだけ。こんなかんじ。 これにチェックをつければ、実行時に有効になるんでさくっとチェックをつけること。たぶんデフォルトはチェックあり。 運が良ければ、「すでにリリースしたオブジェクトのメッセージをコールしてるよ」とか教えてくれる。運が悪ければ、、、なにも出ないのでいろいろコードを変更するとかして Try & Out で調べてみ
File names for categories should include the name of the class being extended, e.g. GTMNSString+Utils.h or GTMNSTextView+Autocomplete.h Within a source file, Objective-C++ follows the style of the function/method you're implementing. In order to minimize clashes between the differing naming styles when mixing Cocoa/Objective-C and C++, follow the style of the method being implemented. If you're in
WidgetKit Widgets are becoming even more powerful in even more places. Now you can use WidgetKit to build support for interactivity and animated transitions, so people can take action right in your widget. Users can now place your widgets right on the desktop, interact with them with just a click and, through the magic of Continuity, access the extensive ecosystem of iPhone widgets right on their
iPhone 用の画像ダウンロードライブラリ、ImageStore のソースコードを公開します。 http://github.com/psychs/imagestore/tree/master ライセンスは、New BSD ライセンスです。 使い方 まず、ImageStore を初期化して、インスタンス変数に保持しておきます。 imageStore = [[ImageStore alloc] initWithDelegate:self];そして、画像をダウンロードしたくなったら、getImage を呼び、画像の URL を渡してやります。 [imageStore getImage:imageUrl];getImage の呼び出しはすぐに戻り、ImageStore は裏で非同期に画像のダウンロードをはじめます。 ダウンロードが終わると、delegate の imageStoreDidGetN
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く