From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 12 Jul 2018 13:44:34 +0800 Subject: [PATCH] bug修复和功能优化 --- screendisplay/Pods/MJExtension/MJExtension/NSObject+MJCoding.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/MJExtension/MJExtension/NSObject+MJCoding.h b/screendisplay/Pods/MJExtension/MJExtension/NSObject+MJCoding.h new file mode 100755 index 0000000..d4327dd --- /dev/null +++ b/screendisplay/Pods/MJExtension/MJExtension/NSObject+MJCoding.h @@ -0,0 +1,55 @@ +// +// NSObject+MJCoding.h +// MJExtension +// +// Created by mj on 14-1-15. +// Copyright (c) 2014��� ���������. All rights reserved. +// + +#import <Foundation/Foundation.h> +#import "MJExtensionConst.h" + +/** + * Codeing������ + */ +@protocol MJCoding <NSObject> +@optional +/** + * ��������������������������������������������� + */ ++ (NSArray *)mj_allowedCodingPropertyNames; +/** + * ������������������������������������������������������������ + */ ++ (NSArray *)mj_ignoredCodingPropertyNames; +@end + +@interface NSObject (MJCoding) <MJCoding> +/** + * ������������������������������������ + */ +- (void)mj_decode:(NSCoder *)decoder; +/** + * ������������������������������������ + */ +- (void)mj_encode:(NSCoder *)encoder; +@end + +/** + ��������������� + */ +#define MJCodingImplementation \ +- (id)initWithCoder:(NSCoder *)decoder \ +{ \ +if (self = [super init]) { \ +[self mj_decode:decoder]; \ +} \ +return self; \ +} \ +\ +- (void)encodeWithCoder:(NSCoder *)encoder \ +{ \ +[self mj_encode:encoder]; \ +} + +#define MJExtensionCodingImplementation MJCodingImplementation \ No newline at end of file -- Gitblit v1.8.0