You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
NSURLSessionってなに? iOS 7,OS X 10.9からNSURLSessionなるクラスが追加されました。NSURLSessionとは何か?それはズバリNSURLConnectionクラスに取って代わる、より使いやすくなったNSURLConnectionの強化版といったところでしょうか。NSURLSessionを利用するメリットは次の2つがあります。 今までNSURLConnectionより簡単・便利 バックグラウンドでダウンロード・アップロード処理が行える(!) 本記事ではこの新しく便利なクラスNSURLSessionについて解説していきたいと思います。 NSURLConnectionの復習 まずNSURLSessionの説明を始める前に、NSURLConnectionのできることを復習をしましょう。 NSURLConnectionはどんなクラスかと言うと、Webサーバや
As of Jan. 17, 2023, AFNetworking is deprecated and there will be no further releases. This repo will remain online in perpetuity as an archive. There are a couple options for continued AFNetworking use: Copy AFNetworking into your project and compile it directly. This gives you full control over the code. Fork AFNetworking and use the fork in your dependency manager. There will be no official for
The short version is that SPDY can make your HTTP requests faster. Sometimes a lot faster. For more details, see the following: http://www.chromium.org/spdy/spdy-whitepaper http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1 SPDY was originally designed at Google as an experimental successor to HTTP. It's a binary protocol (rather than human-readable, like HTTP), but is fully compati
The JSON specification is somewhat ambiguous about the details and requirements when it comes to Unicode, and it does not specify how Unicode issues and errors should be handled. Most of the ambiguity stems from the interpretation and scope RFC 4627 Section 3, Encoding: JSON text SHALL be encoded in Unicode. It is the authors opinion and interpretation that the language of RFC 4627 requires that a
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. In this post, I build and run a Cocoa Mac application on the command-line. This might not sound like a very difficult goal but I'll attempt to follow an addit
Cocoa を使ってアプリケーションを開発する場合,XCode の Interface Builder を利用するのが一般的かと思います.しかし,管理や配布の都合,アプリケーションの規模によっては,オブジェクトコード内に UI 情報を記述したい場合があります.本記事では,コンポーネントの種類やレイアウトをソース中に記述し,XCode を使用せずにアプリケーションを作成します. Keywords: Cocoa, gcc, without XCode Cocoa における MVC では,Controller に Mediator デザインパターンを適用することで,View と Controller,Controller と Model の 2 つの結合に分離する,よりシンプルな構造となります.本記事では,ウィンドウに UI コンポーネントを配置して View を決定し,View と Contr
最近話題のシンプル&リーダブルなObjective-C “Modern Objective-C”について 一度ちゃんと調べたいと思ってたので記事にしてみました。 本エントリでは、Modern Objective-Cになると何がどう嬉しいのか、 古い書き方”Legacy”と新しい書き方”Modern”の比較を通して見ていきます。 ちなみに、Modern Objective-Cの詳細については、iOS Dev Centerにて公開されている WWDC 2012の下記のセッションの資料にて詳しく説明されています。 Modern Objective-C (Patrick C Beard / Session 405) Migrating to Modern Objective-C (Session 413) また、日本語情報としては下記のエントリが参考になります。 今日からライオンでも使える!XCO
cocos2d や Unity などのゲームエンジンや openFrameworks では、標準で物理演算エンジンがサポートされていて手軽に扱えますが、ビューを作成したり画像を表示したりといった基本的な部分の実装方法や、ものによっては使用言語も違うため、「物理演算エンジンを使用したい」というだけの場合はかえって導入障壁が高くなる場合もあります。 それらを使用せず、UIKit ベースでの iOS アプリケーションに物理演算エンジンを単体で導入する方法、すなわち UIView オブジェクトを剛体として物理演算に基づいて動かす方法を紹介します。 準備 1. Box2D のソースをダウンロード 適当なフォルダで、次のように svn の checkout を実行します。
In this post, I start with the simplest C declarator and build in complexity until we get to Objective-C blocks syntax. It took me a while to get block syntax but once you understand how it is organized and where it comes from, there is no looking in Google every time you need to declare a block anymore. If you want to be able to write block declarations from the top of your head, read-on! I stron
☆文字列プログラミングガイド これは、 文字列プログラミングガイド をiOS用に翻訳(意訳)したものである。 UnicodeやそのエンコードであるUTF-16/UTF-8というものについて、ある程度の知識が無いと意味が分からない部分もある。 特に合成文字(composed character sequences)は他の文字コードにはない概念なので、難しい。 文字列オブジェクトは、Cocoa Touchフレームワークでの文字列を意味する。 文字列をオブジェクトとして表現することはカプセル化の利点も提供する。 文字列オブジェクトは、のUnicode文字(言い換えると、テキスト文字列)として実装される。 不変の文字列は、作られてから解放されるまで変わることができない。 不変の文字列を造って管理するには、NSStringクラスを使用する。 造った後変わることが出来る文字列の管理には、NSMutab
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く