objc.io publishes books, videos, and articles on advanced techniques for iOS and macOS development.
日本語ドメインやクエリに含まれる日本語を簡単に変換してくれるNSStringカテゴリを見つけました。 Wevah/Punycode-Cocoa 2つのファイル NSStringPunycodeAdditions.h/m をプロジェクトの中に入れ #import "NSStringPunycodeAdditions.h" で読み込みます。 // ホスト例1 .com NSString *target1 = @"お名前.com"; NSLog(@"%@: %@", target1, [target1 IDNAEncodedString]); // => お名前.com: xn--t8jx73hngb.com // ホスト例2 .jp NSString *target2 = @"総務省.jp"; NSLog(@"%@: %@", target2, [target2 IDNAEncodedStri
By Ole Begemann More about me and contact info May 21, 2014 Last update: June 30, 2014 Update June 30, 2014: Updated to reflect changes I made to OLEContainerScrollView’s public interface. The container scroll view now exposes a read-only contentView property. You should add any subviews you want managed by the container scroll view directly to its content view. In this article, I am introducing O
platform :ios pod "BlocksKit" pod "BlockInjection" # ↓ 今回のコードを試す際は入れてください。 pod "SIAlertView" BlocksKit( https://github.com/pandamonia/BlocksKit )とBlockInjection( https://github.com/tokorom/BlockInjection )だ。 どちらもチュートリアルを見れば用途や使い方は理解していただけるだろう。 ちなみに今回例に挙げさせていただくSIAlertViewはボタンが押された時やdismissされるときの処理をブロック記法で書けるところがコーディングの際に都合が良い。 BlocksKitを用いるのはUIAlertViewのほうをブロックで扱えるので好都合であるからだ。 コード AppDelegateのappl
Objective-C唯一のiOSファイルパスライブラリ、YKFileとは まず唯一かどうかは定かではない。 もしかしたら嘘をついていたら本当にすまない。 しかし自分が探す限り、現在Cocoapods内では他に同等なライブラリは見つからなかった。 YKFileとはYKFileという名のクラスのインスタンス1つが、iOSアプリが生成するファイル(Documents以下など)の1つをピックアップするためのライブラリである。 https://github.com/GeneralD/YKFile 早速使い方を説明する。 インストール をPodfileに記述しインストールするのが最も手っ取り早い。 Cocoapodsの基本的な使い方については割愛したいのでQiita内の他の方の記事のリンクを貼っておく。 http://qiita.com/yaakaito@github/items/66457a0d5
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く