Your Personal Knowledge Base Collect your thoughts, think, write, brainstorm, and create the perfectly looking notes with this powerful, all-purpose, productivity tool.
For full functionality of this site it is necessary to enable JavaScript. Here are the instructions how to enable JavaScript in your web browser.
Localizing apps that use Interface Builder is tedious. You have a few methods provided by Apple (like the ibtool) but they are hard to use, time consuming, difficult to mantain and their output format is not as clean as the one in Localizable.strings using NSLocalizableString. You can find more info about the problems of the standard ways here Localization in iOS apps made simple. By using AGi18n
NSLog(@"%@", array);で配列内の要素をログに出力することができますが、日本語(マルチバイト)文字列を含むと文字化け(正確に言うとUTF)して出力されます。 これを文字化けせずに出力する方法です。 きっかけ オブジェクトを文字列化するときの書式を変えるにてNSDateのdescriptionをMethodSwizzlingして書式を変えていたので、NSArrayも同じように解決するかなと思いやってみました。 実装 NSLog(@"%@", array);はdescriptionWithLocale:が暗黙的に呼ばれます。 ですのでdescriptionWithLocale:をMethodSwizzlingしその中でインデントを考慮した文字列を構築する必要があります。 以下の実装では、descriptionWithLocale:とdescriptionWithLocale:i
describe(@"SimpleRemoteObject", ^{ context(@"read remote post object using POST", ^{ beforeAll(^{ [SRRemoteConfig defaultConfig].baseurl = @"http://localhost:2000/"; }); it(@"should get object using POST method", ^{ NSDictionary *params = @{@"key":@"value"}; __block NSArray *ret; [PostObj postAsyncWithParams:params async:^(NSArray *allRemote, NSError *error){ ret = allRemote; }]; [[expectFutureVal
僕はよく「関数プログラミングの入門書には何がいいか」という質問を受ける。そのときは必ずこの本(と他のいくつか)を答えるようにしている。書評を書いたつもりになっていが、検索してみると書いてないようなので、反省して良書を紹介してみようと思う。 プログラミングの基礎 ((Computer Science Library)) 作者: 浅井健一出版社/メーカー: サイエンス社発売日: 2007/03/01メディア: 単行本購入: 17人 クリック: 409回この商品を含むブログ (127件) を見る 本書はプログラミングの経験のない人を対象としており、書名通りプログラミングの基礎が説明されている。使用する言語は OCaml である。著者の浅井先生は、お茶の水女子大学でプログラミングを教えている。授業の経験を元にした本にはよくあることだが、内容が実に整然としており、例題がこなれている。 初心者を対象と
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く