This domain may be for sale!
下記のような有名なログ出力マクロがありますが、 #ifdef DEBUG # define LOG_CURRENT_METHOD NSLog(@"%@/%@", NSStringFromClass([self class]), NSStringFromSelector(_cmd)) #else # define LOG_CURRENT_METHOD ; #endif これプラスアルファでちょっと便利なマクロをご紹介します。 下記マクロを定義して、 #ifdef DEBUG # define LOG_CURRENT_LINE(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); #else # define LOG_CURRENT_LINE(...) #endif たとえば
matttさんが作成されたObjective-Cのライブラリ、TTTAttributedLabelを使ってみました。 どんなもの? NSAttributedStringを使って書式の混在したUILabelを作成できるライブラリです。 太字・斜体だけじゃなく、文中にリンクの設定もできちゃいます。すごい! 対象OSは3.2〜。 わたしはTableViewCellのLabelをカスタムするのに使いました。 つかいかた ほぼREADME.mdそのままですが、使いかたはこんな感じ。 setTextの引数に、Labelに表示したい文(すべて)を、装飾したい文字はブロックの中でNSRangeとして指定。 IBは使えないので、適宜プロパティをセットして使います。 太字+ふつうの文字を生成: TTTAttributedLabel* label = [[[TTTAttributedLabel alloc] i
Construct 3 Create stunning games in the worlds best 2D game engine
Supplementary Characters for ECMAScript May 8, 2012 Terms and Definitions Text Interpretation Unicode Code Point Escape Sequences Regular Expressions Other Text Processing Functions Upgrade to Unicode with Supplementary Characters Code Point Based String Accessors What About UTF-32? History Update July 2015: This proposal has been integrated into the ECMAScript® 2015 Language Specification, which
Our applications need input and the default iOS keyboards are often not optimally suited to providing the sort of data we want. When we find that we really wish the keyboard had some extra controls or want to help our users enter a specific set of symbols it is time to customize our apps’ keyboards. What controls the keyboard anyway? Our first exposure to different keyboard types probably comes fr
Frederic Cambus March 18, 2012 [JavaScript] As some people asked for more information about how I render thumbnails for NodeCloud, I decided to document the process and post about it, so here we go. In order to take the screenshots, I'm using a simplified version of the rasterize.js file bundled with PhantomJS, configured with a viewport size of 1024x768 and modified to wait 2000 milliseconds befo
Testing your JavaScript and/or CofffeeScript applications is not nearly as difficult as you think. Learn how to quickly setup Jasmine in your Rails application and start testing your *script applications now!Read less
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く