-
-
Save tikidunpon/ce138f3d4cc12e820ac6 to your computer and use it in GitHub Desktop.
Mantleでエンコード時の振る舞いを変えたい ref: http://qiita.com/tikidunponpon/items/98ce63c9ee3ab27f1b10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* エンコードから除外したいプロパティを記載する | |
*/ | |
+ (NSDictionary *)encodingBehaviorsByPropertyKey { | |
NSDictionary *excludeProperties = @{ | |
NSStringFromSelector(@selector(keyChainStore)): @(MTLModelEncodingBehaviorExcluded) | |
}; | |
NSDictionary *encodingBehaviors = [[super encodingBehaviorsByPropertyKey] mtl_dictionaryByAddingEntriesFromDictionary:excludeProperties]; | |
return encodingBehaviors; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment