If you have already started playing with swift, you probably thought about how to include third party libraries into your project or how to distribute yours. Apple provides a mechanism to distribute code via frameworks (eventually, for iOS too), so making a custom framework, which will include both ObjC and Swift code is very easy. But let’s dig deeper and create a pure Swift module, like apple do
こんにちは。haranicleです。 この前の#yhiosでBlocksKitつかってるひとーって聞いてみたら、10人中2人だけで驚きました。 みんな、どうやってUIAlertViewのコード書いてるんだろう。 BlocksKit UIAlertViewのボタン押下時の処理を普通に書くと、このデリゲートで -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex alertViewのタグからどのalertなのかを判定して、clickedButtonAtIndexでどのボタンが押されたのかを判定して..と吐きそうになるぐらいif文を書かないといけないけど、BlocksKitならこんな感じで書けます。 UIAlertView *alert = [UIAlertView bk_a
1. 段落にスタイルを当てるだけ 段落ごとにスタイルを当てるのがこのエディターの基本操作。段落の上のアイコンを見ればスタイルが一目瞭然です。 2. プレビューモードで表示を確認 「リーダーで表示したらどう見えるんだろう?」そう思ったらプレビューモードですぐ確認できます。 3. 設定は見た目にすぐ反映 目次や奥付の設定は意外と奥深い。NRエディターは変更した箇所がすぐ反映されるので思い通りに設定できます。 4. 完成したら「変換」を押すだけ 原稿が完成したら最終確認を忘れずに。最後に「変換する」を押したら、あとは待つだけ!
The mission of the CSV on the Web Working Group, part of the Data Activity, is to provide technologies whereby data dependent applications on the Web can provide higher interoperability when working with datasets using the CSV (Comma-Separated Values) or similar formats. As well as single CSV files, the group will define mechanisms for interpreting a set of CSVs as relational data. This will inclu
source map rev.3の実装であるsource-mapを調べてみた。 https://github.com/mozilla/source-map このモジュールの提供するsource map generatorとしては、プリミティブなSourceMapGeneratorとより抽象化したSourceNodeが提供されている。 SourceMapGeneratorは、オリジナルと生成コードの対応関係を一つ一つ自分で追加してゆき、最終的にsource mapを生成する。 SourceNodeはコンパイラがJSを生成する際の中間表現として使うことを想定されており、オリジナルと生成コードの対応の計算をある程度自動的に行なってくれるようだ。 とりあえずSourceMapGeneratorを触ってみる。インターフェイスは極めて単純で、コンストラクタとaddMapping()とtoString(
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く