diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..4f6b2f4 --- /dev/null +++ b/Podfile @@ -0,0 +1,2 @@ + +pod 'HYBUnicodeReadable', '~> 0.0.1' diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..330cb37 --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,10 @@ +PODS: + - HYBUnicodeReadable (0.0.1) + +DEPENDENCIES: + - HYBUnicodeReadable (~> 0.0.1) + +SPEC CHECKSUMS: + HYBUnicodeReadable: 3ba06a721d27f08b9aaee9ae89173ef5d092b9d6 + +COCOAPODS: 0.39.0 diff --git a/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h new file mode 100644 index 0000000..8948278 --- /dev/null +++ b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h @@ -0,0 +1,23 @@ +// +// NSArray+HYBUnicodeReadable.h +// demo +// +// Created by huangyibiao on 15/12/29. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +/*! + * @author 黄仪标, 16-12-29 10:12:52 + * + * 请不要删除作者信息 + * + * @blog article http://www.henishuo.com/ios-unicode-readable/ + * @github https://github.com/CoderJackyHuang/HYBUnicodeReadable + * @email huangyibiao520@163.com + * @sinaweibo 标哥Jacky + */ +@interface NSArray (HYBUnicodeReadable) + +@end diff --git a/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.m b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.m new file mode 100644 index 0000000..ebac37b --- /dev/null +++ b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.m @@ -0,0 +1,45 @@ +// +// NSArray+HYBUnicodeReadable.m +// demo +// +// Created by huangyibiao on 15/12/29. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "NSArray+HYBUnicodeReadable.h" + +@implementation NSArray (HYBUnicodeReadable) + +- (NSString *)descriptionWithLocale:(id)locale indent:(NSUInteger)level { + NSMutableString *desc = [NSMutableString string]; + + NSMutableString *tabString = [[NSMutableString alloc] initWithCapacity:level]; + for (NSUInteger i = 0; i < level; ++i) { + [tabString appendString:@"\t"]; + } + + NSString *tab = @""; + if (level > 0) { + tab = tabString; + } + [desc appendString:@"\t(\n"]; + + for (id obj in self) { + if ([obj isKindOfClass:[NSDictionary class]] + || [obj isKindOfClass:[NSArray class]] + || [obj isKindOfClass:[NSSet class]]) { + NSString *str = [((NSDictionary *)obj) descriptionWithLocale:locale indent:level + 1]; + [desc appendFormat:@"%@\t%@,\n", tab, str]; + } else if ([obj isKindOfClass:[NSString class]]) { + [desc appendFormat:@"%@\t\"%@\",\n", tab, obj]; + } else { + [desc appendFormat:@"%@\t%@,\n", tab, obj]; + } + } + + [desc appendFormat:@"%@)", tab]; + + return desc; +} + +@end diff --git a/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h new file mode 100644 index 0000000..16b2f4c --- /dev/null +++ b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h @@ -0,0 +1,23 @@ +// +// NSDictionary+HYBUnicodeReadable.h +// demo +// +// Created by huangyibiao on 15/12/29. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +/*! + * @author 黄仪标, 16-12-29 10:12:52 + * + * 请不要删除作者信息 + * + * @blog article http://www.henishuo.com/ios-unicode-readable/ + * @github https://github.com/CoderJackyHuang/HYBUnicodeReadable + * @email huangyibiao520@163.com + * @sinaweibo 标哥Jacky + */ +@interface NSDictionary (HYBUnicodeReadable) + +@end diff --git a/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.m b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.m new file mode 100644 index 0000000..d3edcee --- /dev/null +++ b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.m @@ -0,0 +1,48 @@ +// +// NSDictionary+HYBUnicodeReadable.m +// demo +// +// Created by huangyibiao on 15/12/29. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "NSDictionary+HYBUnicodeReadable.h" + +@implementation NSDictionary (HYBUnicodeReadable) + +- (NSString *)descriptionWithLocale:(id)locale indent:(NSUInteger)level { + NSMutableString *desc = [NSMutableString string]; + + NSMutableString *tabString = [[NSMutableString alloc] initWithCapacity:level]; + for (NSUInteger i = 0; i < level; ++i) { + [tabString appendString:@"\t"]; + } + + NSString *tab = @""; + if (level > 0) { + tab = tabString; + } + + [desc appendString:@"\t{\n"]; + + // 遍历数组,self就是当前的数组 + for (id key in self.allKeys) { + id obj = [self objectForKey:key]; + + if ([obj isKindOfClass:[NSString class]]) { + [desc appendFormat:@"%@\t%@ = \"%@\",\n", tab, key, obj]; + } else if ([obj isKindOfClass:[NSArray class]] + || [obj isKindOfClass:[NSDictionary class]] + || [obj isKindOfClass:[NSSet class]]) { + [desc appendFormat:@"%@\t%@ = %@,\n", tab, key, [obj descriptionWithLocale:locale indent:level + 1]]; + } else { + [desc appendFormat:@"%@\t%@ = %@,\n", tab, key, obj]; + } + } + + [desc appendFormat:@"%@}", tab]; + + return desc; +} + +@end diff --git a/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h new file mode 100644 index 0000000..3c1f539 --- /dev/null +++ b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h @@ -0,0 +1,23 @@ +// +// NSSet+HYBUnicodeReadable.h +// demo +// +// Created by huangyibiao on 15/12/29. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +/*! + * @author 黄仪标, 16-12-29 10:12:52 + * + * 请不要删除作者信息 + * + * @blog article http://www.henishuo.com/ios-unicode-readable/ + * @github https://github.com/CoderJackyHuang/HYBUnicodeReadable + * @email huangyibiao520@163.com + * @sinaweibo 标哥Jacky + */ +@interface NSSet (HYBUnicodeReadable) + +@end diff --git a/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.m b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.m new file mode 100644 index 0000000..6855473 --- /dev/null +++ b/Pods/HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.m @@ -0,0 +1,45 @@ +// +// NSSet+HYBUnicodeReadable.m +// demo +// +// Created by huangyibiao on 15/12/29. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "NSSet+HYBUnicodeReadable.h" + +@implementation NSSet (HYBUnicodeReadable) + +- (NSString *)descriptionWithLocale:(id)locale indent:(NSUInteger)level { + NSMutableString *desc = [NSMutableString string]; + + NSMutableString *tabString = [[NSMutableString alloc] initWithCapacity:level]; + for (NSUInteger i = 0; i < level; ++i) { + [tabString appendString:@"\t"]; + } + + NSString *tab = @"\t"; + if (level > 0) { + tab = tabString; + } + [desc appendString:@"\t{(\n"]; + + for (id obj in self) { + if ([obj isKindOfClass:[NSDictionary class]] + || [obj isKindOfClass:[NSArray class]] + || [obj isKindOfClass:[NSSet class]]) { + NSString *str = [((NSDictionary *)obj) descriptionWithLocale:locale indent:level + 1]; + [desc appendFormat:@"%@\t%@,\n", tab, str]; + } else if ([obj isKindOfClass:[NSString class]]) { + [desc appendFormat:@"%@\t\"%@\",\n", tab, obj]; + } else { + [desc appendFormat:@"%@\t%@,\n", tab, obj]; + } + } + + [desc appendFormat:@"%@)}", tab]; + + return desc; +} + +@end diff --git a/Pods/HYBUnicodeReadable/LICENSE b/Pods/HYBUnicodeReadable/LICENSE new file mode 100644 index 0000000..fb2c9dd --- /dev/null +++ b/Pods/HYBUnicodeReadable/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015 JackyHuang + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/Pods/HYBUnicodeReadable/README.md b/Pods/HYBUnicodeReadable/README.md new file mode 100644 index 0000000..fb89faa --- /dev/null +++ b/Pods/HYBUnicodeReadable/README.md @@ -0,0 +1,35 @@ +# HYBUnicodeReadable +解决打印日志对于Unicode编码不能正常显示中文的问题,只需要将文件导入工程,不需要引用,就能达到打印日志显示Unicode编码中文数据 + +#用途 + +在开发中,通常希望在console中打印出的信息能够显示出Unicode编码对应的中文,由此作者研究了一下如何解决此问题。 +在这里,将此解决方案贡献给大家,如果觉得有用,请给个star! + +#效果图 + +![image](https://github.com/CoderJackyHuang/HYBUnicodeReadable/blob/master/screenshot.gif) + +#讲解 + +为了更详细地说明如何使用,笔者写了一篇博文,大家可以阅读:[http://www.henishuo.com/ios-unicode-readable/](http://www.henishuo.com/ios-unicode-readable/) + +#维护 + +笔者会一直维护,如果使用过程中出现任何bug,请反馈给作者,谢谢您的支持!!! + +#关注我 + +如果在使用过程中遇到问题,或者想要与我交流,可加入有问必答**QQ群:[324400294]()** + +关注微信公众号:[**iOSDevShares**]() + +关注新浪微博账号:[标哥Jacky](http://weibo.com/u/5384637337) + +#支持并捐助 + +如果您觉得文章对您很有帮助,希望得到您的支持。您的捐肋将会给予我最大的鼓励,感谢您的支持! + +支付宝捐助 | 微信捐助 +------------- | ------------- +![image](http://www.henishuo.com/wp-content/uploads/2015/12/alipay-e1451124478416.jpg) | ![image](http://www.henishuo.com/wp-content/uploads/2015/12/weixin.jpg) diff --git a/Pods/Headers/Private/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h b/Pods/Headers/Private/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h new file mode 120000 index 0000000..405a851 --- /dev/null +++ b/Pods/Headers/Private/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h @@ -0,0 +1 @@ +../../../HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h \ No newline at end of file diff --git a/Pods/Headers/Private/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h b/Pods/Headers/Private/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h new file mode 120000 index 0000000..b085a37 --- /dev/null +++ b/Pods/Headers/Private/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h @@ -0,0 +1 @@ +../../../HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h \ No newline at end of file diff --git a/Pods/Headers/Private/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h b/Pods/Headers/Private/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h new file mode 120000 index 0000000..69eb788 --- /dev/null +++ b/Pods/Headers/Private/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h @@ -0,0 +1 @@ +../../../HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h \ No newline at end of file diff --git a/Pods/Headers/Public/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h b/Pods/Headers/Public/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h new file mode 120000 index 0000000..405a851 --- /dev/null +++ b/Pods/Headers/Public/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h @@ -0,0 +1 @@ +../../../HYBUnicodeReadable/HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h \ No newline at end of file diff --git a/Pods/Headers/Public/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h b/Pods/Headers/Public/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h new file mode 120000 index 0000000..b085a37 --- /dev/null +++ b/Pods/Headers/Public/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h @@ -0,0 +1 @@ +../../../HYBUnicodeReadable/HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h \ No newline at end of file diff --git a/Pods/Headers/Public/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h b/Pods/Headers/Public/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h new file mode 120000 index 0000000..69eb788 --- /dev/null +++ b/Pods/Headers/Public/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h @@ -0,0 +1 @@ +../../../HYBUnicodeReadable/HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h \ No newline at end of file diff --git a/Pods/Manifest.lock b/Pods/Manifest.lock new file mode 100644 index 0000000..330cb37 --- /dev/null +++ b/Pods/Manifest.lock @@ -0,0 +1,10 @@ +PODS: + - HYBUnicodeReadable (0.0.1) + +DEPENDENCIES: + - HYBUnicodeReadable (~> 0.0.1) + +SPEC CHECKSUMS: + HYBUnicodeReadable: 3ba06a721d27f08b9aaee9ae89173ef5d092b9d6 + +COCOAPODS: 0.39.0 diff --git a/Pods/Pods.xcodeproj/project.pbxproj b/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fcaf446 --- /dev/null +++ b/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,452 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0836ADB4A8615AA972D4AA8F3FD08D98 /* NSArray+HYBUnicodeReadable.m in Sources */ = {isa = PBXBuildFile; fileRef = 6550073C3546412FB3B89D9A37B63719 /* NSArray+HYBUnicodeReadable.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 0FE229B87CA9013F5D29D56342988954 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; + 34E4950A9C7F832530162B3E9BA07B28 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */; }; + 3EFF832C631B219CC3A25B5014B0F7D7 /* NSArray+HYBUnicodeReadable.h in Headers */ = {isa = PBXBuildFile; fileRef = 485FA14CF66122F2E82961B2E7A06012 /* NSArray+HYBUnicodeReadable.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63BAB1E8B82160C8C263044A368AD178 /* NSSet+HYBUnicodeReadable.h in Headers */ = {isa = PBXBuildFile; fileRef = DE6C78569D6C9FD68B474D58F98A57EA /* NSSet+HYBUnicodeReadable.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 64149ACE6BE6681C7D1CBF075A29072C /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 272643F56613CA0D336AE3DBF19DC404 /* Pods-dummy.m */; }; + 8601FF9D67997CFE59537E3267B85983 /* HYBUnicodeReadable-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2CE0C1B260C895FD00F97ABCD56A6086 /* HYBUnicodeReadable-dummy.m */; }; + D6CF5F64F26778C15E00AFA7EB04B187 /* NSDictionary+HYBUnicodeReadable.h in Headers */ = {isa = PBXBuildFile; fileRef = 7FF804FBC98DD013A93E36316BA4E7B1 /* NSDictionary+HYBUnicodeReadable.h */; settings = {ATTRIBUTES = (Public, ); }; }; + D85BD2535FB39B1CBCDA28BE90977C8B /* NSSet+HYBUnicodeReadable.m in Sources */ = {isa = PBXBuildFile; fileRef = F22A2DB1CCEB27745D06342D44FD7E6D /* NSSet+HYBUnicodeReadable.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + E31930CE730FEFA1B38764F329E11EDC /* NSDictionary+HYBUnicodeReadable.m in Sources */ = {isa = PBXBuildFile; fileRef = A1FFBC1E8A32BF1B14995D696E61A62A /* NSDictionary+HYBUnicodeReadable.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + D0075E5FB15D1916010EF23D1ABCF9FC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = CF4405E19DD99D7A6C6EF5065C000E2F; + remoteInfo = HYBUnicodeReadable; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 10834806BD7B412BC24F347361FA2C8E /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-acknowledgements.plist"; sourceTree = ""; }; + 272643F56613CA0D336AE3DBF19DC404 /* Pods-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-dummy.m"; sourceTree = ""; }; + 2CE0C1B260C895FD00F97ABCD56A6086 /* HYBUnicodeReadable-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "HYBUnicodeReadable-dummy.m"; sourceTree = ""; }; + 37DB56D75062CC75FCB0966E1C6E8A8E /* Pods-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-acknowledgements.markdown"; sourceTree = ""; }; + 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 472E13C1677239E7B9556F659CCE2B6F /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 485FA14CF66122F2E82961B2E7A06012 /* NSArray+HYBUnicodeReadable.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSArray+HYBUnicodeReadable.h"; path = "HYBUnicodeReadable/NSArray+HYBUnicodeReadable.h"; sourceTree = ""; }; + 4E762F23EC34ED4A6FF3312D84E33A40 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.debug.xcconfig; sourceTree = ""; }; + 6550073C3546412FB3B89D9A37B63719 /* NSArray+HYBUnicodeReadable.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSArray+HYBUnicodeReadable.m"; path = "HYBUnicodeReadable/NSArray+HYBUnicodeReadable.m"; sourceTree = ""; }; + 6911BECA35E7518D864239B7E898EEF3 /* Pods-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-frameworks.sh"; sourceTree = ""; }; + 7FF804FBC98DD013A93E36316BA4E7B1 /* NSDictionary+HYBUnicodeReadable.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSDictionary+HYBUnicodeReadable.h"; path = "HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.h"; sourceTree = ""; }; + 98C98CDFB3F20F2925F6CD1F141BB14F /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.release.xcconfig; sourceTree = ""; }; + A1A36D34413696BE466E2CA0AFF194DA /* Pods-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-resources.sh"; sourceTree = ""; }; + A1FFBC1E8A32BF1B14995D696E61A62A /* NSDictionary+HYBUnicodeReadable.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSDictionary+HYBUnicodeReadable.m"; path = "HYBUnicodeReadable/NSDictionary+HYBUnicodeReadable.m"; sourceTree = ""; }; + B8726015D23EC062A1D8D1006E66BE79 /* HYBUnicodeReadable.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = HYBUnicodeReadable.xcconfig; sourceTree = ""; }; + BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + C3670D79FC08E6E1C580B7F3F84FCCB6 /* HYBUnicodeReadable-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "HYBUnicodeReadable-prefix.pch"; sourceTree = ""; }; + D56E885F96BC54B8BC1FBEB8A6630C00 /* libHYBUnicodeReadable.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHYBUnicodeReadable.a; sourceTree = BUILT_PRODUCTS_DIR; }; + DE6C78569D6C9FD68B474D58F98A57EA /* NSSet+HYBUnicodeReadable.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSSet+HYBUnicodeReadable.h"; path = "HYBUnicodeReadable/NSSet+HYBUnicodeReadable.h"; sourceTree = ""; }; + F22A2DB1CCEB27745D06342D44FD7E6D /* NSSet+HYBUnicodeReadable.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "NSSet+HYBUnicodeReadable.m"; path = "HYBUnicodeReadable/NSSet+HYBUnicodeReadable.m"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 666C99C66372B7C6C11E7C5FCCEA3835 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 34E4950A9C7F832530162B3E9BA07B28 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D7F9FC1C46AA18CA6AB1365F061DFB55 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0FE229B87CA9013F5D29D56342988954 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 037C0CA694176A3C0915F62C9D20B3E6 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + B3D1D13E0C6553800746CB8FD61CF946 /* Pods */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 6D501A69D7EB6EF0C0B5A157F85B9B2C /* Pods */ = { + isa = PBXGroup; + children = ( + BDF535FB72CAE3CC9847118992A08AA9 /* HYBUnicodeReadable */, + ); + name = Pods; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, + 6D501A69D7EB6EF0C0B5A157F85B9B2C /* Pods */, + F48ACADB7A11232E4852810D4D3C9775 /* Products */, + 037C0CA694176A3C0915F62C9D20B3E6 /* Targets Support Files */, + ); + sourceTree = ""; + }; + 9913DCF0DB50FB3AB6480D902FA24F2C /* Support Files */ = { + isa = PBXGroup; + children = ( + B8726015D23EC062A1D8D1006E66BE79 /* HYBUnicodeReadable.xcconfig */, + 2CE0C1B260C895FD00F97ABCD56A6086 /* HYBUnicodeReadable-dummy.m */, + C3670D79FC08E6E1C580B7F3F84FCCB6 /* HYBUnicodeReadable-prefix.pch */, + ); + name = "Support Files"; + path = "../Target Support Files/HYBUnicodeReadable"; + sourceTree = ""; + }; + B3D1D13E0C6553800746CB8FD61CF946 /* Pods */ = { + isa = PBXGroup; + children = ( + 37DB56D75062CC75FCB0966E1C6E8A8E /* Pods-acknowledgements.markdown */, + 10834806BD7B412BC24F347361FA2C8E /* Pods-acknowledgements.plist */, + 272643F56613CA0D336AE3DBF19DC404 /* Pods-dummy.m */, + 6911BECA35E7518D864239B7E898EEF3 /* Pods-frameworks.sh */, + A1A36D34413696BE466E2CA0AFF194DA /* Pods-resources.sh */, + 4E762F23EC34ED4A6FF3312D84E33A40 /* Pods.debug.xcconfig */, + 98C98CDFB3F20F2925F6CD1F141BB14F /* Pods.release.xcconfig */, + ); + name = Pods; + path = "Target Support Files/Pods"; + sourceTree = ""; + }; + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { + isa = PBXGroup; + children = ( + BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + BDF535FB72CAE3CC9847118992A08AA9 /* HYBUnicodeReadable */ = { + isa = PBXGroup; + children = ( + 485FA14CF66122F2E82961B2E7A06012 /* NSArray+HYBUnicodeReadable.h */, + 6550073C3546412FB3B89D9A37B63719 /* NSArray+HYBUnicodeReadable.m */, + 7FF804FBC98DD013A93E36316BA4E7B1 /* NSDictionary+HYBUnicodeReadable.h */, + A1FFBC1E8A32BF1B14995D696E61A62A /* NSDictionary+HYBUnicodeReadable.m */, + DE6C78569D6C9FD68B474D58F98A57EA /* NSSet+HYBUnicodeReadable.h */, + F22A2DB1CCEB27745D06342D44FD7E6D /* NSSet+HYBUnicodeReadable.m */, + 9913DCF0DB50FB3AB6480D902FA24F2C /* Support Files */, + ); + path = HYBUnicodeReadable; + sourceTree = ""; + }; + BF6342C8B29F4CEEA088EFF7AB4DE362 /* iOS */ = { + isa = PBXGroup; + children = ( + 3E4E89230EF59BC255123B67864ACF77 /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + F48ACADB7A11232E4852810D4D3C9775 /* Products */ = { + isa = PBXGroup; + children = ( + D56E885F96BC54B8BC1FBEB8A6630C00 /* libHYBUnicodeReadable.a */, + 472E13C1677239E7B9556F659CCE2B6F /* libPods.a */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 46EFF4F3F6B37CC2F406116DEC1DDED8 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 3EFF832C631B219CC3A25B5014B0F7D7 /* NSArray+HYBUnicodeReadable.h in Headers */, + D6CF5F64F26778C15E00AFA7EB04B187 /* NSDictionary+HYBUnicodeReadable.h in Headers */, + 63BAB1E8B82160C8C263044A368AD178 /* NSSet+HYBUnicodeReadable.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + CF4405E19DD99D7A6C6EF5065C000E2F /* HYBUnicodeReadable */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9BB837112B60D79DDB79D5B3FFF500EF /* Build configuration list for PBXNativeTarget "HYBUnicodeReadable" */; + buildPhases = ( + A7FEB46B46AE1919A5C998CCCA4EE403 /* Sources */, + 666C99C66372B7C6C11E7C5FCCEA3835 /* Frameworks */, + 46EFF4F3F6B37CC2F406116DEC1DDED8 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = HYBUnicodeReadable; + productName = HYBUnicodeReadable; + productReference = D56E885F96BC54B8BC1FBEB8A6630C00 /* libHYBUnicodeReadable.a */; + productType = "com.apple.product-type.library.static"; + }; + F8CAB9B6D2C4FDA32742464BEB5285A3 /* Pods */ = { + isa = PBXNativeTarget; + buildConfigurationList = 71A242FC789E85E96DE2F75C218F22E8 /* Build configuration list for PBXNativeTarget "Pods" */; + buildPhases = ( + BB3B285DD84F275545480BE93D58318F /* Sources */, + D7F9FC1C46AA18CA6AB1365F061DFB55 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 559D5354550EDE7E5961D6D7F8F06848 /* PBXTargetDependency */, + ); + name = Pods; + productName = Pods; + productReference = 472E13C1677239E7B9556F659CCE2B6F /* libPods.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0700; + LastUpgradeCheck = 0700; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = F48ACADB7A11232E4852810D4D3C9775 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CF4405E19DD99D7A6C6EF5065C000E2F /* HYBUnicodeReadable */, + F8CAB9B6D2C4FDA32742464BEB5285A3 /* Pods */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + A7FEB46B46AE1919A5C998CCCA4EE403 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8601FF9D67997CFE59537E3267B85983 /* HYBUnicodeReadable-dummy.m in Sources */, + 0836ADB4A8615AA972D4AA8F3FD08D98 /* NSArray+HYBUnicodeReadable.m in Sources */, + E31930CE730FEFA1B38764F329E11EDC /* NSDictionary+HYBUnicodeReadable.m in Sources */, + D85BD2535FB39B1CBCDA28BE90977C8B /* NSSet+HYBUnicodeReadable.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + BB3B285DD84F275545480BE93D58318F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 64149ACE6BE6681C7D1CBF075A29072C /* Pods-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 559D5354550EDE7E5961D6D7F8F06848 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = HYBUnicodeReadable; + target = CF4405E19DD99D7A6C6EF5065C000E2F /* HYBUnicodeReadable */; + targetProxy = D0075E5FB15D1916010EF23D1ABCF9FC /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 1C0529148E15DCB4C38B599ED3738A85 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 98C98CDFB3F20F2925F6CD1F141BB14F /* Pods.release.xcconfig */; + buildSettings = { + ENABLE_STRICT_OBJC_MSGSEND = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MACH_O_TYPE = staticlib; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + }; + name = Release; + }; + 1F2746E94657BC5C602AE4F59E41F20C /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B8726015D23EC062A1D8D1006E66BE79 /* HYBUnicodeReadable.xcconfig */; + buildSettings = { + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 3EF48C0125CCAEA8850C969B5F44C051 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 4E762F23EC34ED4A6FF3312D84E33A40 /* Pods.debug.xcconfig */; + buildSettings = { + ENABLE_STRICT_OBJC_MSGSEND = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MACH_O_TYPE = staticlib; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 8D1534490D941DCA47C62AC4314182AF /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + ONLY_ACTIVE_ARCH = YES; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + C5A18280E9321A9268D1C80B7DA43967 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + C5FB4DE8334E0461EF191F3B84B342C8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B8726015D23EC062A1D8D1006E66BE79 /* HYBUnicodeReadable.xcconfig */; + buildSettings = { + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_PREFIX_HEADER = "Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_NAME = "$(TARGET_NAME)"; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8D1534490D941DCA47C62AC4314182AF /* Debug */, + C5A18280E9321A9268D1C80B7DA43967 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 71A242FC789E85E96DE2F75C218F22E8 /* Build configuration list for PBXNativeTarget "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3EF48C0125CCAEA8850C969B5F44C051 /* Debug */, + 1C0529148E15DCB4C38B599ED3738A85 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9BB837112B60D79DDB79D5B3FFF500EF /* Build configuration list for PBXNativeTarget "HYBUnicodeReadable" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1F2746E94657BC5C602AE4F59E41F20C /* Debug */, + C5FB4DE8334E0461EF191F3B84B342C8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/HYBUnicodeReadable.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/HYBUnicodeReadable.xcscheme new file mode 100644 index 0000000..117de64 --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/HYBUnicodeReadable.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/Pods.xcscheme b/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/Pods.xcscheme new file mode 100644 index 0000000..85b9ac4 --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/Pods.xcscheme @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/xcschememanagement.plist b/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..822375c --- /dev/null +++ b/Pods/Pods.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + HYBUnicodeReadable.xcscheme + + isShown + + + Pods.xcscheme + + isShown + + + + SuppressBuildableAutocreation + + CF4405E19DD99D7A6C6EF5065C000E2F + + primary + + + F8CAB9B6D2C4FDA32742464BEB5285A3 + + primary + + + + + diff --git a/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-dummy.m b/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-dummy.m new file mode 100644 index 0000000..54d6880 --- /dev/null +++ b/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_HYBUnicodeReadable : NSObject +@end +@implementation PodsDummy_HYBUnicodeReadable +@end diff --git a/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-prefix.pch b/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-prefix.pch new file mode 100644 index 0000000..aa992a4 --- /dev/null +++ b/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable-prefix.pch @@ -0,0 +1,4 @@ +#ifdef __OBJC__ +#import +#endif + diff --git a/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable.xcconfig b/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable.xcconfig new file mode 100644 index 0000000..01a4e5e --- /dev/null +++ b/Pods/Target Support Files/HYBUnicodeReadable/HYBUnicodeReadable.xcconfig @@ -0,0 +1,4 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/HYBUnicodeReadable" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/HYBUnicodeReadable" +PODS_ROOT = ${SRCROOT} +SKIP_INSTALL = YES \ No newline at end of file diff --git a/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown b/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown new file mode 100644 index 0000000..95d1a29 --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown @@ -0,0 +1,29 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## HYBUnicodeReadable + +The MIT License (MIT) + +Copyright (c) 2015 JackyHuang + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +Generated by CocoaPods - http://cocoapods.org diff --git a/Pods/Target Support Files/Pods/Pods-acknowledgements.plist b/Pods/Target Support Files/Pods/Pods-acknowledgements.plist new file mode 100644 index 0000000..4ed2eac --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods-acknowledgements.plist @@ -0,0 +1,59 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + The MIT License (MIT) + +Copyright (c) 2015 JackyHuang + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + Title + HYBUnicodeReadable + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - http://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Pods/Target Support Files/Pods/Pods-dummy.m b/Pods/Target Support Files/Pods/Pods-dummy.m new file mode 100644 index 0000000..ade64bd --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods : NSObject +@end +@implementation PodsDummy_Pods +@end diff --git a/Pods/Target Support Files/Pods/Pods-frameworks.sh b/Pods/Target Support Files/Pods/Pods-frameworks.sh new file mode 100755 index 0000000..6f76344 --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods-frameworks.sh @@ -0,0 +1,84 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" + /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + diff --git a/Pods/Target Support Files/Pods/Pods-resources.sh b/Pods/Target Support Files/Pods/Pods-resources.sh new file mode 100755 index 0000000..16774fb --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods-resources.sh @@ -0,0 +1,95 @@ +#!/bin/sh +set -e + +mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +realpath() { + DIRECTORY="$(cd "${1%/*}" && pwd)" + FILENAME="${1##*/}" + echo "$DIRECTORY/$FILENAME" +} + +install_resource() +{ + case $1 in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.framework) + echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" + xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + /*) + echo "$1" + echo "$1" >> "$RESOURCES_TO_COPY" + ;; + *) + echo "${PODS_ROOT}/$1" + echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; + esac + + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "`realpath $PODS_ROOT`*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Pods/Target Support Files/Pods/Pods.debug.xcconfig b/Pods/Target Support Files/Pods/Pods.debug.xcconfig new file mode 100644 index 0000000..aea3502 --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods.debug.xcconfig @@ -0,0 +1,5 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/HYBUnicodeReadable" +OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/HYBUnicodeReadable" +OTHER_LDFLAGS = $(inherited) -ObjC -l"HYBUnicodeReadable" +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Pods/Target Support Files/Pods/Pods.release.xcconfig b/Pods/Target Support Files/Pods/Pods.release.xcconfig new file mode 100644 index 0000000..aea3502 --- /dev/null +++ b/Pods/Target Support Files/Pods/Pods.release.xcconfig @@ -0,0 +1,5 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/HYBUnicodeReadable" +OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/HYBUnicodeReadable" +OTHER_LDFLAGS = $(inherited) -ObjC -l"HYBUnicodeReadable" +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/README.md b/README.md index 96bb033..eb5b5c5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,24 @@ # RuntimeDemo 学习Runtime + +#文章讲解 + +[标哥的技术博客](http://www.henishuo.com/runtime-model-dictionary-convert/) + +#关注我 + + +如果在使用过程中遇到问题,或者想要与我交流,可加入有问必答**QQ群:[324400294]()** + +关注微信公众号:[**iOSDevShares**]() + + 关注新浪微博账号:[标哥Jacky](http://weibo.com/u/5384637337) + +#支持并捐助 + + 如果您觉得文章对您很有帮助,希望得到您的支持。您的捐肋将会给予我最大的鼓励,感谢您的支持! + + 支付宝捐助 | 微信捐助 + ------------- | ------------- + ![image](http://www.henishuo.com/wp-content/uploads/2015/12/alipay-e1451124478416.jpg) | ![image](http://www.henishuo.com/wp-content/uploads/2015/12/weixin.jpg) + diff --git a/RuntimeDemo.xcodeproj/project.pbxproj b/RuntimeDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3e7f0e0 --- /dev/null +++ b/RuntimeDemo.xcodeproj/project.pbxproj @@ -0,0 +1,627 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 303C7F5F03832071E9D4019A /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 38B8A79A2F4B8D8AA2D898F1 /* libPods.a */; }; + 69654F5B1C2CDE6600FFB5AC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F5A1C2CDE6600FFB5AC /* main.m */; }; + 69654F5E1C2CDE6600FFB5AC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F5D1C2CDE6600FFB5AC /* AppDelegate.m */; }; + 69654F611C2CDE6600FFB5AC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F601C2CDE6600FFB5AC /* ViewController.m */; }; + 69654F641C2CDE6600FFB5AC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69654F621C2CDE6600FFB5AC /* Main.storyboard */; }; + 69654F661C2CDE6600FFB5AC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 69654F651C2CDE6600FFB5AC /* Assets.xcassets */; }; + 69654F691C2CDE6600FFB5AC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 69654F671C2CDE6600FFB5AC /* LaunchScreen.storyboard */; }; + 69654F741C2CDE6600FFB5AC /* RuntimeDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F731C2CDE6600FFB5AC /* RuntimeDemoTests.m */; }; + 69654F7F1C2CDE6600FFB5AC /* RuntimeDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F7E1C2CDE6600FFB5AC /* RuntimeDemoUITests.m */; }; + 69654F931C30214500FFB5AC /* UIControl+HYBBlock.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F921C30214500FFB5AC /* UIControl+HYBBlock.m */; }; + 69654F941C30214500FFB5AC /* UIControl+HYBBlock.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F921C30214500FFB5AC /* UIControl+HYBBlock.m */; }; + 69654F951C30214500FFB5AC /* UIControl+HYBBlock.m in Sources */ = {isa = PBXBuildFile; fileRef = 69654F921C30214500FFB5AC /* UIControl+HYBBlock.m */; }; + 6980598D1C30D6070021085B /* HYBTestModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6980598C1C30D6070021085B /* HYBTestModel.m */; }; + 6980598E1C30D6070021085B /* HYBTestModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6980598C1C30D6070021085B /* HYBTestModel.m */; }; + 6980598F1C30D6070021085B /* HYBTestModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 6980598C1C30D6070021085B /* HYBTestModel.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 69654F701C2CDE6600FFB5AC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 69654F4E1C2CDE6600FFB5AC /* Project object */; + proxyType = 1; + remoteGlobalIDString = 69654F551C2CDE6600FFB5AC; + remoteInfo = RuntimeDemo; + }; + 69654F7B1C2CDE6600FFB5AC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 69654F4E1C2CDE6600FFB5AC /* Project object */; + proxyType = 1; + remoteGlobalIDString = 69654F551C2CDE6600FFB5AC; + remoteInfo = RuntimeDemo; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 2BDAA9539E871117ED795ADE /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; + 38B8A79A2F4B8D8AA2D898F1 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 54494B247380150E00DCBCF2 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; + 69654F561C2CDE6600FFB5AC /* RuntimeDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RuntimeDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 69654F5A1C2CDE6600FFB5AC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 69654F5C1C2CDE6600FFB5AC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 69654F5D1C2CDE6600FFB5AC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 69654F5F1C2CDE6600FFB5AC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 69654F601C2CDE6600FFB5AC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 69654F631C2CDE6600FFB5AC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 69654F651C2CDE6600FFB5AC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 69654F681C2CDE6600FFB5AC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 69654F6A1C2CDE6600FFB5AC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 69654F6F1C2CDE6600FFB5AC /* RuntimeDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RuntimeDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 69654F731C2CDE6600FFB5AC /* RuntimeDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RuntimeDemoTests.m; sourceTree = ""; }; + 69654F751C2CDE6600FFB5AC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 69654F7A1C2CDE6600FFB5AC /* RuntimeDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RuntimeDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 69654F7E1C2CDE6600FFB5AC /* RuntimeDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RuntimeDemoUITests.m; sourceTree = ""; }; + 69654F801C2CDE6600FFB5AC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 69654F911C30214500FFB5AC /* UIControl+HYBBlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIControl+HYBBlock.h"; sourceTree = ""; }; + 69654F921C30214500FFB5AC /* UIControl+HYBBlock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIControl+HYBBlock.m"; sourceTree = ""; }; + 6980598B1C30D6070021085B /* HYBTestModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HYBTestModel.h; sourceTree = ""; }; + 6980598C1C30D6070021085B /* HYBTestModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HYBTestModel.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 69654F531C2CDE6600FFB5AC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 303C7F5F03832071E9D4019A /* libPods.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 69654F6C1C2CDE6600FFB5AC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 69654F771C2CDE6600FFB5AC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1574F27037C5422C34CA2FA9 /* Pods */ = { + isa = PBXGroup; + children = ( + 54494B247380150E00DCBCF2 /* Pods.debug.xcconfig */, + 2BDAA9539E871117ED795ADE /* Pods.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 69654F4D1C2CDE6600FFB5AC = { + isa = PBXGroup; + children = ( + 69654F581C2CDE6600FFB5AC /* RuntimeDemo */, + 69654F721C2CDE6600FFB5AC /* RuntimeDemoTests */, + 69654F7D1C2CDE6600FFB5AC /* RuntimeDemoUITests */, + 69654F571C2CDE6600FFB5AC /* Products */, + 1574F27037C5422C34CA2FA9 /* Pods */, + A4EC37D5D490197569607E30 /* Frameworks */, + ); + sourceTree = ""; + }; + 69654F571C2CDE6600FFB5AC /* Products */ = { + isa = PBXGroup; + children = ( + 69654F561C2CDE6600FFB5AC /* RuntimeDemo.app */, + 69654F6F1C2CDE6600FFB5AC /* RuntimeDemoTests.xctest */, + 69654F7A1C2CDE6600FFB5AC /* RuntimeDemoUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 69654F581C2CDE6600FFB5AC /* RuntimeDemo */ = { + isa = PBXGroup; + children = ( + 6980598A1C30D5E90021085B /* Dict-Model */, + 69654F5C1C2CDE6600FFB5AC /* AppDelegate.h */, + 69654F5D1C2CDE6600FFB5AC /* AppDelegate.m */, + 69654F5F1C2CDE6600FFB5AC /* ViewController.h */, + 69654F601C2CDE6600FFB5AC /* ViewController.m */, + 69654F621C2CDE6600FFB5AC /* Main.storyboard */, + 69654F651C2CDE6600FFB5AC /* Assets.xcassets */, + 69654F671C2CDE6600FFB5AC /* LaunchScreen.storyboard */, + 69654F6A1C2CDE6600FFB5AC /* Info.plist */, + 69654F591C2CDE6600FFB5AC /* Supporting Files */, + 69654F911C30214500FFB5AC /* UIControl+HYBBlock.h */, + 69654F921C30214500FFB5AC /* UIControl+HYBBlock.m */, + ); + path = RuntimeDemo; + sourceTree = ""; + }; + 69654F591C2CDE6600FFB5AC /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 69654F5A1C2CDE6600FFB5AC /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 69654F721C2CDE6600FFB5AC /* RuntimeDemoTests */ = { + isa = PBXGroup; + children = ( + 69654F731C2CDE6600FFB5AC /* RuntimeDemoTests.m */, + 69654F751C2CDE6600FFB5AC /* Info.plist */, + ); + path = RuntimeDemoTests; + sourceTree = ""; + }; + 69654F7D1C2CDE6600FFB5AC /* RuntimeDemoUITests */ = { + isa = PBXGroup; + children = ( + 69654F7E1C2CDE6600FFB5AC /* RuntimeDemoUITests.m */, + 69654F801C2CDE6600FFB5AC /* Info.plist */, + ); + path = RuntimeDemoUITests; + sourceTree = ""; + }; + 6980598A1C30D5E90021085B /* Dict-Model */ = { + isa = PBXGroup; + children = ( + 6980598B1C30D6070021085B /* HYBTestModel.h */, + 6980598C1C30D6070021085B /* HYBTestModel.m */, + ); + name = "Dict-Model"; + sourceTree = ""; + }; + A4EC37D5D490197569607E30 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 38B8A79A2F4B8D8AA2D898F1 /* libPods.a */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 69654F551C2CDE6600FFB5AC /* RuntimeDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 69654F831C2CDE6600FFB5AC /* Build configuration list for PBXNativeTarget "RuntimeDemo" */; + buildPhases = ( + E8F35A7A0E95DED9B0C66F9F /* Check Pods Manifest.lock */, + 69654F521C2CDE6600FFB5AC /* Sources */, + 69654F531C2CDE6600FFB5AC /* Frameworks */, + 69654F541C2CDE6600FFB5AC /* Resources */, + 89BB4FA307D36FC42F0BE172 /* Embed Pods Frameworks */, + 64E012AA1CA97E018A940BB2 /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RuntimeDemo; + productName = RuntimeDemo; + productReference = 69654F561C2CDE6600FFB5AC /* RuntimeDemo.app */; + productType = "com.apple.product-type.application"; + }; + 69654F6E1C2CDE6600FFB5AC /* RuntimeDemoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 69654F861C2CDE6600FFB5AC /* Build configuration list for PBXNativeTarget "RuntimeDemoTests" */; + buildPhases = ( + 69654F6B1C2CDE6600FFB5AC /* Sources */, + 69654F6C1C2CDE6600FFB5AC /* Frameworks */, + 69654F6D1C2CDE6600FFB5AC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 69654F711C2CDE6600FFB5AC /* PBXTargetDependency */, + ); + name = RuntimeDemoTests; + productName = RuntimeDemoTests; + productReference = 69654F6F1C2CDE6600FFB5AC /* RuntimeDemoTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 69654F791C2CDE6600FFB5AC /* RuntimeDemoUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 69654F891C2CDE6600FFB5AC /* Build configuration list for PBXNativeTarget "RuntimeDemoUITests" */; + buildPhases = ( + 69654F761C2CDE6600FFB5AC /* Sources */, + 69654F771C2CDE6600FFB5AC /* Frameworks */, + 69654F781C2CDE6600FFB5AC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 69654F7C1C2CDE6600FFB5AC /* PBXTargetDependency */, + ); + name = RuntimeDemoUITests; + productName = RuntimeDemoUITests; + productReference = 69654F7A1C2CDE6600FFB5AC /* RuntimeDemoUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 69654F4E1C2CDE6600FFB5AC /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = huangyibiao; + TargetAttributes = { + 69654F551C2CDE6600FFB5AC = { + CreatedOnToolsVersion = 7.2; + }; + 69654F6E1C2CDE6600FFB5AC = { + CreatedOnToolsVersion = 7.2; + TestTargetID = 69654F551C2CDE6600FFB5AC; + }; + 69654F791C2CDE6600FFB5AC = { + CreatedOnToolsVersion = 7.2; + TestTargetID = 69654F551C2CDE6600FFB5AC; + }; + }; + }; + buildConfigurationList = 69654F511C2CDE6600FFB5AC /* Build configuration list for PBXProject "RuntimeDemo" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 69654F4D1C2CDE6600FFB5AC; + productRefGroup = 69654F571C2CDE6600FFB5AC /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 69654F551C2CDE6600FFB5AC /* RuntimeDemo */, + 69654F6E1C2CDE6600FFB5AC /* RuntimeDemoTests */, + 69654F791C2CDE6600FFB5AC /* RuntimeDemoUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 69654F541C2CDE6600FFB5AC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 69654F691C2CDE6600FFB5AC /* LaunchScreen.storyboard in Resources */, + 69654F661C2CDE6600FFB5AC /* Assets.xcassets in Resources */, + 69654F641C2CDE6600FFB5AC /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 69654F6D1C2CDE6600FFB5AC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 69654F781C2CDE6600FFB5AC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 64E012AA1CA97E018A940BB2 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 89BB4FA307D36FC42F0BE172 /* Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + E8F35A7A0E95DED9B0C66F9F /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 69654F521C2CDE6600FFB5AC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 69654F611C2CDE6600FFB5AC /* ViewController.m in Sources */, + 69654F5E1C2CDE6600FFB5AC /* AppDelegate.m in Sources */, + 69654F5B1C2CDE6600FFB5AC /* main.m in Sources */, + 6980598D1C30D6070021085B /* HYBTestModel.m in Sources */, + 69654F931C30214500FFB5AC /* UIControl+HYBBlock.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 69654F6B1C2CDE6600FFB5AC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 69654F741C2CDE6600FFB5AC /* RuntimeDemoTests.m in Sources */, + 69654F941C30214500FFB5AC /* UIControl+HYBBlock.m in Sources */, + 6980598E1C30D6070021085B /* HYBTestModel.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 69654F761C2CDE6600FFB5AC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 69654F7F1C2CDE6600FFB5AC /* RuntimeDemoUITests.m in Sources */, + 69654F951C30214500FFB5AC /* UIControl+HYBBlock.m in Sources */, + 6980598F1C30D6070021085B /* HYBTestModel.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 69654F711C2CDE6600FFB5AC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 69654F551C2CDE6600FFB5AC /* RuntimeDemo */; + targetProxy = 69654F701C2CDE6600FFB5AC /* PBXContainerItemProxy */; + }; + 69654F7C1C2CDE6600FFB5AC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 69654F551C2CDE6600FFB5AC /* RuntimeDemo */; + targetProxy = 69654F7B1C2CDE6600FFB5AC /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 69654F621C2CDE6600FFB5AC /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 69654F631C2CDE6600FFB5AC /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 69654F671C2CDE6600FFB5AC /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 69654F681C2CDE6600FFB5AC /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 69654F811C2CDE6600FFB5AC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 69654F821C2CDE6600FFB5AC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 69654F841C2CDE6600FFB5AC /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 54494B247380150E00DCBCF2 /* Pods.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = RuntimeDemo/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.huangyibiao.RuntimeDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 69654F851C2CDE6600FFB5AC /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2BDAA9539E871117ED795ADE /* Pods.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = RuntimeDemo/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.huangyibiao.RuntimeDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 69654F871C2CDE6600FFB5AC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = RuntimeDemoTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.huangyibiao.RuntimeDemoTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RuntimeDemo.app/RuntimeDemo"; + }; + name = Debug; + }; + 69654F881C2CDE6600FFB5AC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = RuntimeDemoTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.huangyibiao.RuntimeDemoTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RuntimeDemo.app/RuntimeDemo"; + }; + name = Release; + }; + 69654F8A1C2CDE6600FFB5AC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = RuntimeDemoUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.huangyibiao.RuntimeDemoUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = RuntimeDemo; + USES_XCTRUNNER = YES; + }; + name = Debug; + }; + 69654F8B1C2CDE6600FFB5AC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = RuntimeDemoUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.huangyibiao.RuntimeDemoUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = RuntimeDemo; + USES_XCTRUNNER = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 69654F511C2CDE6600FFB5AC /* Build configuration list for PBXProject "RuntimeDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 69654F811C2CDE6600FFB5AC /* Debug */, + 69654F821C2CDE6600FFB5AC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 69654F831C2CDE6600FFB5AC /* Build configuration list for PBXNativeTarget "RuntimeDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 69654F841C2CDE6600FFB5AC /* Debug */, + 69654F851C2CDE6600FFB5AC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 69654F861C2CDE6600FFB5AC /* Build configuration list for PBXNativeTarget "RuntimeDemoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 69654F871C2CDE6600FFB5AC /* Debug */, + 69654F881C2CDE6600FFB5AC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 69654F891C2CDE6600FFB5AC /* Build configuration list for PBXNativeTarget "RuntimeDemoUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 69654F8A1C2CDE6600FFB5AC /* Debug */, + 69654F8B1C2CDE6600FFB5AC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 69654F4E1C2CDE6600FFB5AC /* Project object */; +} diff --git a/RuntimeDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/RuntimeDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..c0a7d5e --- /dev/null +++ b/RuntimeDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/RuntimeDemo.xcodeproj/project.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/UserInterfaceState.xcuserstate b/RuntimeDemo.xcodeproj/project.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..df77bbe Binary files /dev/null and b/RuntimeDemo.xcodeproj/project.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ b/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/RuntimeDemo.xcscheme b/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/RuntimeDemo.xcscheme new file mode 100644 index 0000000..ce49102 --- /dev/null +++ b/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/RuntimeDemo.xcscheme @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/xcschememanagement.plist b/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..f304504 --- /dev/null +++ b/RuntimeDemo.xcodeproj/xcuserdata/huangyibiao.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + RuntimeDemo.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 69654F551C2CDE6600FFB5AC + + primary + + + 69654F6E1C2CDE6600FFB5AC + + primary + + + 69654F791C2CDE6600FFB5AC + + primary + + + + + diff --git a/RuntimeDemo.xcworkspace/contents.xcworkspacedata b/RuntimeDemo.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..79241be --- /dev/null +++ b/RuntimeDemo.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/RuntimeDemo.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/UserInterfaceState.xcuserstate b/RuntimeDemo.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..fe6f64b Binary files /dev/null and b/RuntimeDemo.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/RuntimeDemo.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/RuntimeDemo.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..ed9a9b4 --- /dev/null +++ b/RuntimeDemo.xcworkspace/xcuserdata/huangyibiao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/RuntimeDemo/AppDelegate.h b/RuntimeDemo/AppDelegate.h new file mode 100644 index 0000000..e01b8fa --- /dev/null +++ b/RuntimeDemo/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// RuntimeDemo +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/RuntimeDemo/AppDelegate.m b/RuntimeDemo/AppDelegate.m new file mode 100644 index 0000000..d44025f --- /dev/null +++ b/RuntimeDemo/AppDelegate.m @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// RuntimeDemo +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/RuntimeDemo/Assets.xcassets/AppIcon.appiconset/Contents.json b/RuntimeDemo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..118c98f --- /dev/null +++ b/RuntimeDemo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RuntimeDemo/Base.lproj/LaunchScreen.storyboard b/RuntimeDemo/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..2e721e1 --- /dev/null +++ b/RuntimeDemo/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RuntimeDemo/Base.lproj/Main.storyboard b/RuntimeDemo/Base.lproj/Main.storyboard new file mode 100644 index 0000000..be3f204 --- /dev/null +++ b/RuntimeDemo/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RuntimeDemo/HYBTestModel.h b/RuntimeDemo/HYBTestModel.h new file mode 100644 index 0000000..0a9023e --- /dev/null +++ b/RuntimeDemo/HYBTestModel.h @@ -0,0 +1,42 @@ +// +// HYBTestModel.h +// RuntimeDemo +// +// Created by huangyibiao on 15/12/28. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +@protocol HYBEmptyPropertyProperty + +// 设置默认值,若为空,则取出来的就是默认值 +- (NSDictionary *)defaultValueForEmptyProperty; + +@end + +@interface HYBTestModel : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, copy) NSString *title; +@property (nonatomic, strong) NSNumber *count; +@property (nonatomic, assign) int commentCount; +@property (nonatomic, strong) NSArray *summaries; +@property (nonatomic, strong) NSDictionary *parameters; +@property (nonatomic, strong) NSSet *results; + +@property (nonatomic, strong) HYBTestModel *testModel; + +// 只读属性 +@property (nonatomic, assign, readonly) NSString *classVersion; + +// 通过这个方法来实现自动生成model +- (instancetype)initWithDictionary:(NSDictionary *)dictionary; + +// 转换成字典 +- (NSDictionary *)toDictionary; + +// 测试 ++ (void)test; + +@end diff --git a/RuntimeDemo/HYBTestModel.m b/RuntimeDemo/HYBTestModel.m new file mode 100644 index 0000000..3286bf7 --- /dev/null +++ b/RuntimeDemo/HYBTestModel.m @@ -0,0 +1,172 @@ +// +// HYBTestModel.m +// RuntimeDemo +// +// Created by huangyibiao on 15/12/28. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "HYBTestModel.h" +#import +#import + +@implementation HYBTestModel + +- (instancetype)initWithDictionary:(NSDictionary *)dictionary { + if (self = [super init]) { + for (NSString *key in dictionary.allKeys) { + id value = [dictionary objectForKey:key]; + + if ([key isEqualToString:@"testModel"]) { + HYBTestModel *testModel = [[HYBTestModel alloc] initWithDictionary:value]; + value = testModel; + self.testModel = testModel; + + continue; + } + + SEL setter = [self propertySetterWithKey:key]; + if (setter != nil) { + ((void (*)(id, SEL, id))objc_msgSend)(self, setter, value); + } + } + } + + return self; +} + +- (NSDictionary *)toDictionary { + unsigned int outCount = 0; + objc_property_t *properties = class_copyPropertyList([self class], &outCount); + + if (outCount != 0) { + NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithCapacity:outCount]; + + for (unsigned int i = 0; i < outCount; ++i) { + objc_property_t property = properties[i]; + const void *propertyName = property_getName(property); + NSString *key = [NSString stringWithUTF8String:propertyName]; + + // 继承于NSObject的类都会有这几个在NSObject中的属性 + if ([key isEqualToString:@"description"] + || [key isEqualToString:@"debugDescription"] + || [key isEqualToString:@"hash"] + || [key isEqualToString:@"superclass"]) { + continue; + } + + // 我们只是测试,不做通用封装,因此这里不额外写方法做通用处理,只是写死测试一下效果 + if ([key isEqualToString:@"testModel"]) { + if ([self respondsToSelector:@selector(toDictionary)]) { + id testModel = [self.testModel toDictionary]; + if (testModel != nil) { + [dict setObject:testModel forKey:key]; + } + continue; + } + } + + SEL getter = [self propertyGetterWithKey:key]; + if (getter != nil) { + // 获取方法的签名 + NSMethodSignature *signature = [self methodSignatureForSelector:getter]; + + // 根据方法签名获取NSInvocation对象 + NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; + // 设置target + [invocation setTarget:self]; + // 设置selector + [invocation setSelector:getter]; + + // 方法调用 + [invocation invoke]; + + // 接收返回的值 + __unsafe_unretained NSObject *propertyValue = nil; + [invocation getReturnValue:&propertyValue]; + + // id propertyValue = [self performSelector:getter]; + + if (propertyValue == nil) { + if ([self respondsToSelector:@selector(defaultValueForEmptyProperty)]) { + NSDictionary *defaultValueDict = [self defaultValueForEmptyProperty]; + + id defaultValue = [defaultValueDict objectForKey:key]; + propertyValue = defaultValue; + } + } + + if (propertyValue != nil) { + [dict setObject:propertyValue forKey:key]; + } + } + } + + free(properties); + + return dict; + } + + free(properties); + return nil; +} + +- (SEL)propertyGetterWithKey:(NSString *)key { + if (key != nil) { + SEL getter = NSSelectorFromString(key); + + if ([self respondsToSelector:getter]) { + return getter; + } + } + + return nil; +} + +- (SEL)propertySetterWithKey:(NSString *)key { + NSString *propertySetter = key.capitalizedString; + propertySetter = [NSString stringWithFormat:@"set%@:", propertySetter]; + + // 生成setter方法 + SEL setter = NSSelectorFromString(propertySetter); + + if ([self respondsToSelector:setter]) { + return setter; + } + + return nil; +} + +#pragma mark - HYBEmptyPropertyProperty +- (NSDictionary *)defaultValueForEmptyProperty { + return @{@"name" : [NSNull null], + @"title" : [NSNull null], + @"count" : @(1), + @"commentCount" : @(1), + @"classVersion" : @"0.0.1"}; +} + ++ (void)test { + NSMutableSet *set = [NSMutableSet setWithArray:@[@"可变集合", @"字典->不可变集合->可变集合"]]; + NSDictionary *dict = @{@"name" : @"标哥的技术博客", + @"title" : @"http://www.henishuo.com", + @"count" : @(11), + @"results" : [NSSet setWithObjects:@"集合值1", @"集合值2", set , nil], + @"summaries" : @[@"sm1", @"sm2", @{@"keysm": @{@"stkey": @"字典->数组->字典->字典"}}], + @"parameters" : @{@"key1" : @"value1", @"key2": @{@"key11" : @"value11", @"key12" : @[@"三层", @"字典->字典->数组"]}}, + @"classVersion" : @(1.1), + @"testModel" : @{@"name" : @"标哥的技术博客", + @"title" : @"http://www.henishuo.com", + @"count" : @(11), + @"results" : [NSSet setWithObjects:@"集合值1", @"集合值2", set , nil], + @"summaries" : @[@"sm1", @"sm2", @{@"keysm": @{@"stkey": @"字典->数组->字典->字典"}}], + @"parameters" : @{@"key1" : @"value1", @"key2": @{@"key11" : @"value11", @"key12" : @[@"三层", @"字典->字典->数组"]}}, + @"classVersion" : @(1.1)}}; + HYBTestModel *model = [[HYBTestModel alloc] initWithDictionary:dict]; + + NSLog(@"%@", model); + + NSLog(@"model->dict: %@", [model toDictionary]); +} + +@end diff --git a/RuntimeDemo/Info.plist b/RuntimeDemo/Info.plist new file mode 100644 index 0000000..6905cc6 --- /dev/null +++ b/RuntimeDemo/Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/RuntimeDemo/UIControl+HYBBlock.h b/RuntimeDemo/UIControl+HYBBlock.h new file mode 100644 index 0000000..90c8795 --- /dev/null +++ b/RuntimeDemo/UIControl+HYBBlock.h @@ -0,0 +1,17 @@ +// +// UIControl+HYBBlock.h +// RuntimeDemo +// +// Created by huangyibiao on 15/12/27. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +typedef void (^HYBTouchUpBlock)(id sender); + +@interface UIControl (HYBBlock) + +@property (nonatomic, copy) HYBTouchUpBlock hyb_touchUpBlock; + +@end diff --git a/RuntimeDemo/UIControl+HYBBlock.m b/RuntimeDemo/UIControl+HYBBlock.m new file mode 100644 index 0000000..6013515 --- /dev/null +++ b/RuntimeDemo/UIControl+HYBBlock.m @@ -0,0 +1,45 @@ +// +// UIControl+HYBBlock.m +// RuntimeDemo +// +// Created by huangyibiao on 15/12/27. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "UIControl+HYBBlock.h" +#import + +static const void *sHYBUIControlTouchUpEventBlockKey = "sHYBUIControlTouchUpEventBlockKey"; + +@implementation UIControl (HYBBlock) + +- (void)setHyb_touchUpBlock:(HYBTouchUpBlock)hyb_touchUpBlock { + objc_setAssociatedObject(self, + sHYBUIControlTouchUpEventBlockKey, + hyb_touchUpBlock, + OBJC_ASSOCIATION_COPY); + + [self removeTarget:self + action:@selector(hybOnTouchUp:) + forControlEvents:UIControlEventTouchUpInside]; + + if (hyb_touchUpBlock) { + [self addTarget:self + action:@selector(hybOnTouchUp:) + forControlEvents:UIControlEventTouchUpInside]; + } +} + +- (HYBTouchUpBlock)hyb_touchUpBlock { + return objc_getAssociatedObject(self, sHYBUIControlTouchUpEventBlockKey); +} + +- (void)hybOnTouchUp:(UIButton *)sender { + HYBTouchUpBlock touchUp = self.hyb_touchUpBlock; + + if (touchUp) { + touchUp(sender); + } +} + +@end diff --git a/RuntimeDemo/ViewController.h b/RuntimeDemo/ViewController.h new file mode 100644 index 0000000..5362bfe --- /dev/null +++ b/RuntimeDemo/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// RuntimeDemo +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/RuntimeDemo/ViewController.m b/RuntimeDemo/ViewController.m new file mode 100644 index 0000000..50a3ca2 --- /dev/null +++ b/RuntimeDemo/ViewController.m @@ -0,0 +1,34 @@ +// +// ViewController.m +// RuntimeDemo +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import "ViewController.h" +#import +#import +#import "HYBTestModel.h" + +@interface ViewController () + + + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + + [HYBTestModel test]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/RuntimeDemo/main.m b/RuntimeDemo/main.m new file mode 100644 index 0000000..63b3e99 --- /dev/null +++ b/RuntimeDemo/main.m @@ -0,0 +1,16 @@ +// +// main.m +// RuntimeDemo +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/RuntimeDemoTests/Info.plist b/RuntimeDemoTests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/RuntimeDemoTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/RuntimeDemoTests/RuntimeDemoTests.m b/RuntimeDemoTests/RuntimeDemoTests.m new file mode 100644 index 0000000..b2ba9fd --- /dev/null +++ b/RuntimeDemoTests/RuntimeDemoTests.m @@ -0,0 +1,39 @@ +// +// RuntimeDemoTests.m +// RuntimeDemoTests +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +@interface RuntimeDemoTests : XCTestCase + +@end + +@implementation RuntimeDemoTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end diff --git a/RuntimeDemoUITests/Info.plist b/RuntimeDemoUITests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/RuntimeDemoUITests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/RuntimeDemoUITests/RuntimeDemoUITests.m b/RuntimeDemoUITests/RuntimeDemoUITests.m new file mode 100644 index 0000000..b138240 --- /dev/null +++ b/RuntimeDemoUITests/RuntimeDemoUITests.m @@ -0,0 +1,40 @@ +// +// RuntimeDemoUITests.m +// RuntimeDemoUITests +// +// Created by huangyibiao on 15/12/25. +// Copyright © 2015年 huangyibiao. All rights reserved. +// + +#import + +@interface RuntimeDemoUITests : XCTestCase + +@end + +@implementation RuntimeDemoUITests + +- (void)setUp { + [super setUp]; + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + self.continueAfterFailure = NO; + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + [[[XCUIApplication alloc] init] launch]; + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +@end