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/MJPropertyKey.m |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/screendisplay/Pods/MJExtension/MJExtension/MJPropertyKey.m b/screendisplay/Pods/MJExtension/MJExtension/MJPropertyKey.m
new file mode 100644
index 0000000..438d019
--- /dev/null
+++ b/screendisplay/Pods/MJExtension/MJExtension/MJPropertyKey.m
@@ -0,0 +1,25 @@
+//
+//  MJPropertyKey.m
+//  MJExtensionExample
+//
+//  Created by MJ Lee on 15/8/11.
+//  Copyright (c) 2015��� ���������. All rights reserved.
+//
+
+#import "MJPropertyKey.h"
+
+@implementation MJPropertyKey
+
+- (id)valueInObject:(id)object
+{
+    if ([object isKindOfClass:[NSDictionary class]] && self.type == MJPropertyKeyTypeDictionary) {
+        return object[self.name];
+    } else if ([object isKindOfClass:[NSArray class]] && self.type == MJPropertyKeyTypeArray) {
+        NSArray *array = object;
+        NSUInteger index = self.name.intValue;
+        if (index < array.count) return array[index];
+        return nil;
+    }
+    return nil;
+}
+@end

--
Gitblit v1.8.0