サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
iPhone 16e
ddeville.me
Categories are a great way to add functionality to existing classes in Objective-C without extending them. Say you want to add a method to MD5 hash a particular string. A Java way of doing this would be to create your own string class by subclassing NSString and add the hashMD5 method to it. With Objective-C, you don't have to subclass at all, you can simply write a category on NSString that decla
このページを最初にブックマークしてみませんか?
『ddeville.me』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く