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
A simple functional toolbelt for Objective-C Asterism is a yet another functional toolbelt for Objective-C. It tries to be typesafe and elegant. Using common higher-order functions such as map, reduce and filter, Asterism allows you to manipulate Foundation's data structures with ease. It makes use of overloaded C-Functions to keep its interface simple while maintaining compile-time safety. For in
JSONから生成したNSDictionaryをオブジェクトにマッピングするのって面倒ですよね。 こんなん。 NSDictionary *jsonDictionary = @{ @"id": @123, @"username": @"taro yamada" }; User *user = [[User alloc] init]; user.id = jsonDictionary[@"id"]; user.name = jsonDictionary[@"username"]; この手のマッピング用ライブラリはたくさんあるんですが、探した中ではRPJSONMapperが使いやすそうでした。 マッピング定義が辞書で簡単に書ける マッピング定義を一箇所に書ける トランスフォーム(型変換)が出来る 例えばJSONリストをマッピングしてみる。 @implementation Note @propert
iOS7からは10分→3分と短くなっている。本格的な処理はiOS7から導入されたバックグラウンド送受信を使い、こちらはそこまで大げさではないちょっとした処理の延長で使う位置づけになったのだと思う。 使い方は簡単で基本1行のみ。AppDelegateの中で setupメソッドを1回呼ぶ。 #import "LKTaskCompletion.h" - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [LKTaskCompletion.sharedInstance setup]; : } バックグラウンドのタスクが終了した時はできれば下記を呼んでおく。 [LKTaskCompletion.sharedInstance endBa
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く