私は、構造体を持っている:iOS 5:plistファイルに構造体を書き込むことは可能ですか?以下で定義されているよう
typedef struct {
NSString *SportName;
NSInteger numberOfPeriods;
CFTimeInterval periodLength;
NSString *periodName;
CFTimeInterval secondaryClockTime;
NSString *LeftSecondaryCounterName;
NSString *RightSecondaryCounterName;
bool PossessionArrow;
} GamePreset;
それはplistファイルにタイプGamePresetの変数を記述することは可能ですか?
文字列としてエンコーディングするのは、 ' - (NSDictionary *)DictionaryFromGamePreset:(GamePreset)NewGamePreset'コマンドを書くのと同じくらい難しいでしょう。 – Itoqixer