├── KZWFoundation ├── Assets │ ├── .gitkeep │ ├── kongzhongjr.cer │ └── Images.xcassets │ │ ├── Contents.json │ │ ├── bg_nodata.imageset │ │ ├── bg_nodata.png │ │ ├── bg_nodata-1.png │ │ └── Contents.json │ │ ├── update_bg.imageset │ │ ├── update_bg.png │ │ ├── update_bg-1.png │ │ ├── update_bg-2.png │ │ └── Contents.json │ │ ├── bg_noserver.imageset │ │ ├── bg_noserver.png │ │ ├── bg_noserver-1.png │ │ ├── bg_noserver-2.png │ │ └── Contents.json │ │ ├── cancelimage.imageset │ │ ├── cancelimage.png │ │ ├── cancelimage-1.png │ │ ├── cancelimage-2.png │ │ └── Contents.json │ │ ├── update_head.imageset │ │ ├── update_head.png │ │ ├── update_head-1.png │ │ ├── update_head-2.png │ │ └── Contents.json │ │ └── ic_colorback.imageset │ │ ├── ic_colorback.png │ │ ├── ic_colorback-1.png │ │ ├── ic_colorback-2.png │ │ └── Contents.json └── Classes │ ├── .gitkeep │ ├── UI │ ├── KZWVersionModel.m │ ├── KZWBdgeButton.h │ ├── KZWBdgeImage.h │ ├── UILabel+KZWLabel.h │ ├── KZWNoPasteTextField.h │ ├── KZWBaseTextView.h │ ├── UITableView+KZWTableView.h │ ├── KZWVersionModel.h │ ├── KZWHUD.h │ ├── UILabel+KZWLabel.m │ ├── KZWProGressView.h │ ├── KZWBaseTextField.h │ ├── UIButton+KZWButton.h │ ├── KZWNoPasteTextField.m │ ├── KZWPasswordTextView.h │ ├── UICountingLabel.h │ └── KZWBdgeImage.m │ ├── Controller │ ├── KZWNavigationViewController.h │ ├── KZWRequestServerstatus.h │ ├── KZWWebViewController.h │ ├── KZWRequestServerstatus.m │ ├── KZWViewController.h │ ├── KZWNetStateView.h │ ├── LPDBItemViewControl.h │ └── KZWNavigationViewController.m │ ├── Config │ ├── KZWConstants.m │ ├── KZWRSAenscryptString.h │ ├── KZWJpushModel.m │ ├── KZWTosatView.h │ ├── KZWDebugService.h │ ├── WKCookieSyncManager.h │ ├── KZWCorrectLocation.h │ ├── KZWDSJavaScripInterface.h │ ├── KZWJavascripModel.m │ ├── KZWTosatView.m │ ├── RSA.h │ ├── KZWJpushModel.h │ ├── KZWJavascripModel.h │ ├── KZWDSJavaScripInterface.m │ └── KZWDebugService.m │ ├── Category │ ├── UILabel+KZWLineSpace.h │ ├── NSObject+Dictionary.h │ ├── NSURL+ELMFoundation.h │ ├── UIApplication+ELMFoundation.h │ ├── UIImageView+KZWCache.h │ ├── ELMKeychainUtil.h │ ├── UIScrollView+KZWRefresh.h │ ├── UIColor+KZWColor.h │ ├── UITabBarItem+WebCache.h │ ├── NSString+ELMFoundation.h │ ├── UINavigationController+KZWBackButtonHandler.h │ ├── UITabBar+CustomBadge.h │ ├── NSObject+LPDAssociatedObject.h │ ├── UILabel+KZWLineSpace.m │ ├── UIApplication+ELMFoundation.m │ ├── UIView+KZWCore.h │ ├── UIControl+Block.h │ ├── NSError+LPDErrorMessage.h │ ├── ZYImageCacheManager.h │ ├── NSObject+LPDAssociatedObject.m │ ├── NSString+KZWData.h │ ├── NSError+LPDErrorMessage.m │ ├── UINavigationController+KZWBackButtonHandler.m │ ├── ELMKeychainUtil.m │ ├── UIView+KZWCore.m │ ├── UIImageView+KZWCache.m │ └── UIScrollView+KZWRefresh.m │ ├── NetWork │ ├── LPDBModel.h │ ├── LPDBModel.m │ └── LPDBRequestObject.h │ ├── Router │ ├── UIViewController+ELMRouter.h │ ├── UIViewController+ELMRouter.m │ └── KZWRouterHelper.h │ └── KZWFoundationHear.h ├── Example ├── Tests │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── Tests-Info.plist ├── KZWFoundation │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── KZWEViewController.h │ ├── KZWEAppDelegate.h │ ├── KZWFoundation-Prefix.pch │ ├── main.m │ ├── KZWEViewController.m │ ├── KZWFoundation-Info.plist │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ └── Images.xcassets │ │ └── AppIcon.appiconset │ │ └── Contents.json ├── Pods │ ├── dsBridge │ │ └── dsbridge │ │ │ ├── dsbridge.h │ │ │ ├── InternalApis.h │ │ │ ├── DSCallInfo.m │ │ │ ├── DSCallInfo.h │ │ │ ├── JSBUtil.h │ │ │ └── InternalApis.m │ ├── MJRefresh │ │ ├── MJRefresh │ │ │ ├── MJRefresh.bundle │ │ │ │ ├── arrow@2x.png │ │ │ │ ├── zh-Hans.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── zh-Hant.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ └── en.lproj │ │ │ │ │ └── Localizable.strings │ │ │ ├── Base │ │ │ │ ├── MJRefreshBackFooter.h │ │ │ │ ├── MJRefreshAutoFooter.h │ │ │ │ ├── MJRefreshHeader.h │ │ │ │ └── MJRefreshFooter.h │ │ │ ├── Custom │ │ │ │ ├── Footer │ │ │ │ │ ├── Auto │ │ │ │ │ │ ├── MJRefreshAutoNormalFooter.h │ │ │ │ │ │ ├── MJRefreshAutoGifFooter.h │ │ │ │ │ │ └── MJRefreshAutoStateFooter.h │ │ │ │ │ └── Back │ │ │ │ │ │ ├── MJRefreshBackNormalFooter.h │ │ │ │ │ │ ├── MJRefreshBackGifFooter.h │ │ │ │ │ │ └── MJRefreshBackStateFooter.h │ │ │ │ └── Header │ │ │ │ │ ├── MJRefreshNormalHeader.h │ │ │ │ │ ├── MJRefreshGifHeader.h │ │ │ │ │ └── MJRefreshStateHeader.h │ │ │ ├── NSBundle+MJRefresh.h │ │ │ ├── MJRefresh.h │ │ │ ├── UIView+MJExtension.h │ │ │ ├── UIScrollView+MJExtension.h │ │ │ ├── UIScrollView+MJRefresh.h │ │ │ ├── UIView+MJExtension.m │ │ │ └── MJRefreshConst.m │ │ └── LICENSE │ ├── Target Support Files │ │ ├── Mantle │ │ │ ├── Mantle.modulemap │ │ │ ├── Mantle-dummy.m │ │ │ ├── Mantle-prefix.pch │ │ │ ├── Mantle.xcconfig │ │ │ ├── Info.plist │ │ │ └── Mantle-umbrella.h │ │ ├── Masonry │ │ │ ├── Masonry.modulemap │ │ │ ├── Masonry-dummy.m │ │ │ ├── Masonry-prefix.pch │ │ │ ├── Masonry.xcconfig │ │ │ ├── Info.plist │ │ │ └── Masonry-umbrella.h │ │ ├── dsBridge │ │ │ ├── dsBridge.modulemap │ │ │ ├── dsBridge-dummy.m │ │ │ ├── dsBridge-prefix.pch │ │ │ ├── dsBridge.xcconfig │ │ │ ├── dsBridge-umbrella.h │ │ │ └── Info.plist │ │ ├── MJRefresh │ │ │ ├── MJRefresh.modulemap │ │ │ ├── MJRefresh-dummy.m │ │ │ ├── MJRefresh-prefix.pch │ │ │ ├── MJRefresh.xcconfig │ │ │ ├── Info.plist │ │ │ └── MJRefresh-umbrella.h │ │ ├── SAMKeychain │ │ │ ├── SAMKeychain.modulemap │ │ │ ├── SAMKeychain-dummy.m │ │ │ ├── SAMKeychain-prefix.pch │ │ │ ├── SAMKeychain-umbrella.h │ │ │ ├── SAMKeychain.xcconfig │ │ │ └── Info.plist │ │ ├── AFNetworking │ │ │ ├── AFNetworking.modulemap │ │ │ ├── AFNetworking-dummy.m │ │ │ ├── AFNetworking-prefix.pch │ │ │ ├── AFNetworking.xcconfig │ │ │ ├── Info.plist │ │ │ └── AFNetworking-umbrella.h │ │ ├── KZWFoundation │ │ │ ├── KZWFoundation.modulemap │ │ │ ├── KZWFoundation-dummy.m │ │ │ ├── KZWFoundation-prefix.pch │ │ │ ├── ResourceBundle-KZWFundation-Info.plist │ │ │ ├── KZWFoundation.xcconfig │ │ │ └── Info.plist │ │ ├── MBProgressHUD │ │ │ ├── MBProgressHUD.modulemap │ │ │ ├── MBProgressHUD-dummy.m │ │ │ ├── MBProgressHUD-prefix.pch │ │ │ ├── MBProgressHUD-umbrella.h │ │ │ ├── MBProgressHUD.xcconfig │ │ │ └── Info.plist │ │ ├── Pods-KZWFoundation_Tests │ │ │ ├── Pods-KZWFoundation_Tests-acknowledgements.markdown │ │ │ ├── Pods-KZWFoundation_Tests.modulemap │ │ │ ├── Pods-KZWFoundation_Tests-dummy.m │ │ │ ├── Pods-KZWFoundation_Tests-umbrella.h │ │ │ ├── Info.plist │ │ │ ├── Pods-KZWFoundation_Tests-acknowledgements.plist │ │ │ ├── Pods-KZWFoundation_Tests.debug.xcconfig │ │ │ └── Pods-KZWFoundation_Tests.release.xcconfig │ │ └── Pods-KZWFoundation_Example │ │ │ ├── Pods-KZWFoundation_Example.modulemap │ │ │ ├── Pods-KZWFoundation_Example-dummy.m │ │ │ ├── Pods-KZWFoundation_Example-umbrella.h │ │ │ ├── Info.plist │ │ │ ├── Pods-KZWFoundation_Example.debug.xcconfig │ │ │ └── Pods-KZWFoundation_Example.release.xcconfig │ ├── SAMKeychain │ │ ├── Support │ │ │ └── SAMKeychain.bundle │ │ │ │ └── en.lproj │ │ │ │ └── SAMKeychain.strings │ │ └── LICENSE │ ├── Masonry │ │ ├── Masonry │ │ │ ├── MASLayoutConstraint.m │ │ │ ├── NSLayoutConstraint+MASDebugAdditions.h │ │ │ ├── MASLayoutConstraint.h │ │ │ ├── MASCompositeConstraint.h │ │ │ ├── Masonry.h │ │ │ ├── ViewController+MASAdditions.h │ │ │ ├── NSArray+MASShorthandAdditions.h │ │ │ ├── MASViewAttribute.m │ │ │ ├── MASViewAttribute.h │ │ │ ├── ViewController+MASAdditions.m │ │ │ ├── MASViewConstraint.h │ │ │ └── MASConstraint+Private.h │ │ └── LICENSE │ ├── Mantle │ │ └── Mantle │ │ │ ├── extobjc │ │ │ └── EXTScope.m │ │ │ ├── NSObject+MTLComparisonAdditions.m │ │ │ ├── NSObject+MTLComparisonAdditions.h │ │ │ ├── MTLTransformerErrorHandling.m │ │ │ ├── NSDictionary+MTLMappingAdditions.h │ │ │ ├── NSValueTransformer+MTLInversionAdditions.h │ │ │ ├── NSDictionary+MTLMappingAdditions.m │ │ │ ├── NSError+MTLModelException.h │ │ │ ├── Mantle.h │ │ │ ├── NSArray+MTLManipulationAdditions.h │ │ │ ├── NSArray+MTLManipulationAdditions.m │ │ │ ├── NSDictionary+MTLJSONKeyPath.h │ │ │ ├── NSDictionary+MTLManipulationAdditions.m │ │ │ ├── NSError+MTLModelException.m │ │ │ ├── NSDictionary+MTLManipulationAdditions.h │ │ │ ├── MTLReflection.h │ │ │ ├── NSValueTransformer+MTLInversionAdditions.m │ │ │ └── NSDictionary+MTLJSONKeyPath.m │ ├── MBProgressHUD │ │ └── LICENSE │ ├── AFNetworking │ │ ├── LICENSE │ │ ├── UIKit+AFNetworking │ │ │ ├── UIImage+AFNetworking.h │ │ │ └── UIKit+AFNetworking.h │ │ └── AFNetworking │ │ │ ├── AFCompatibilityMacros.h │ │ │ └── AFNetworking.h │ └── Local Podspecs │ │ └── KZWFoundation.podspec.json ├── KZWFoundation.xcodeproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── Podfile └── KZWFoundation.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── .clang-format ├── .travis.yml ├── .gitignore ├── LICENSE ├── README.md └── KZWFoundation.podspec /KZWFoundation/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/KZWFoundation/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/kongzhongjr.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/kongzhongjr.cer -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/Pods/dsBridge/dsbridge/dsbridge.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "JSBUtil.h" 3 | #import "DWKWebView.h" 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/arrow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/arrow@2x.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Mantle/Mantle.modulemap: -------------------------------------------------------------------------------- 1 | framework module Mantle { 2 | umbrella header "Mantle-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Masonry/Masonry.modulemap: -------------------------------------------------------------------------------- 1 | framework module Masonry { 2 | umbrella header "Masonry-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Mantle/Mantle-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Mantle : NSObject 3 | @end 4 | @implementation PodsDummy_Mantle 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/dsBridge/dsBridge.modulemap: -------------------------------------------------------------------------------- 1 | framework module dsBridge { 2 | umbrella header "dsBridge-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_nodata.imageset/bg_nodata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/bg_nodata.imageset/bg_nodata.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_bg.imageset/update_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/update_bg.imageset/update_bg.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh.modulemap: -------------------------------------------------------------------------------- 1 | framework module MJRefresh { 2 | umbrella header "MJRefresh-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Masonry/Masonry-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Masonry : NSObject 3 | @end 4 | @implementation PodsDummy_Masonry 5 | @end 6 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_nodata.imageset/bg_nodata-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/bg_nodata.imageset/bg_nodata-1.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_bg.imageset/update_bg-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/update_bg.imageset/update_bg-1.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_bg.imageset/update_bg-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/update_bg.imageset/update_bg-2.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MJRefresh : NSObject 3 | @end 4 | @implementation PodsDummy_MJRefresh 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SAMKeychain/SAMKeychain.modulemap: -------------------------------------------------------------------------------- 1 | framework module SAMKeychain { 2 | umbrella header "SAMKeychain-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/dsBridge/dsBridge-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_dsBridge : NSObject 3 | @end 4 | @implementation PodsDummy_dsBridge 5 | @end 6 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/bg_noserver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/bg_noserver.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/cancelimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/cancelimage.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_head.imageset/update_head.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/update_head.imageset/update_head.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AFNetworking/AFNetworking.modulemap: -------------------------------------------------------------------------------- 1 | framework module AFNetworking { 2 | umbrella header "AFNetworking-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/bg_noserver-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/bg_noserver-1.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/bg_noserver-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/bg_noserver-2.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/cancelimage-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/cancelimage-1.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/cancelimage-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/cancelimage-2.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/ic_colorback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/ic_colorback.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_head.imageset/update_head-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/update_head.imageset/update_head-1.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_head.imageset/update_head-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/update_head.imageset/update_head-2.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KZWFoundation/KZWFoundation.modulemap: -------------------------------------------------------------------------------- 1 | framework module KZWFoundation { 2 | umbrella header "KZWFoundation-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBProgressHUD/MBProgressHUD.modulemap: -------------------------------------------------------------------------------- 1 | framework module MBProgressHUD { 2 | umbrella header "MBProgressHUD-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SAMKeychain/SAMKeychain-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SAMKeychain : NSObject 3 | @end 4 | @implementation PodsDummy_SAMKeychain 5 | @end 6 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/ic_colorback-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/ic_colorback-1.png -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/ic_colorback-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/ic_colorback-2.png -------------------------------------------------------------------------------- /Example/Pods/SAMKeychain/Support/SAMKeychain.bundle/en.lproj/SAMKeychain.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/Example/Pods/SAMKeychain/Support/SAMKeychain.bundle/en.lproj/SAMKeychain.strings -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AFNetworking/AFNetworking-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AFNetworking : NSObject 3 | @end 4 | @implementation PodsDummy_AFNetworking 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hans.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ouyrp/KZWFoundation/HEAD/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hans.lproj/Localizable.strings -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KZWFoundation/KZWFoundation-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_KZWFoundation : NSObject 3 | @end 4 | @implementation PodsDummy_KZWFoundation 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBProgressHUD/MBProgressHUD-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MBProgressHUD : NSObject 3 | @end 4 | @implementation PodsDummy_MBProgressHUD 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/dsBridge/dsbridge/InternalApis.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "DWKWebView.h" 3 | 4 | @interface InternalApis : NSObject 5 | @property (nullable, nonatomic, weak) DWKWebView* webview; 6 | @end 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KZWFoundation_Tests { 2 | umbrella header "Pods-KZWFoundation_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/KZWFoundation.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Example/Pods-KZWFoundation_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KZWFoundation_Example { 2 | umbrella header "Pods-KZWFoundation_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KZWFoundation_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KZWFoundation_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '8.0' 4 | 5 | target 'KZWFoundation_Example' do 6 | pod 'KZWFoundation', :path => '../' 7 | 8 | target 'KZWFoundation_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Example/Pods-KZWFoundation_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KZWFoundation_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KZWFoundation_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/dsBridge/dsbridge/DSCallInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // DSCallInfo.m 3 | // dsbridge 4 | // 5 | // Created by du on 2018/1/30. 6 | // Copyright © 2018年 杜文. All rights reserved. 7 | // 8 | 9 | #import "DSCallInfo.h" 10 | 11 | @implementation DSCallInfo 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/dsBridge/dsbridge/DSCallInfo.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | @interface DSCallInfo : NSObject 5 | @property (nullable, nonatomic) NSString* method; 6 | @property (nullable, nonatomic) NSNumber* id; 7 | @property (nullable,nonatomic) NSArray * args; 8 | @end 9 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWVersionModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWVersionModel.m 3 | // KZWFoundation 4 | // 5 | // Created by ouyang on 2018/5/8. 6 | // Copyright © 2018年 ouyang. All rights reserved. 7 | // 8 | 9 | #import "KZWVersionModel.h" 10 | 11 | @implementation KZWVersionModel 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Mantle/Mantle-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Masonry/Masonry-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/dsBridge/dsBridge-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/KZWFoundation/KZWEViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWEViewController.h 3 | // KZWFoundation 4 | // 5 | // Created by ouyrp on 12/28/2018. 6 | // Copyright (c) 2018 ouyrp. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface KZWEViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KZWFoundation/KZWFoundation-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBProgressHUD/MBProgressHUD-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SAMKeychain/SAMKeychain-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/KZWFoundation.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/KZWFoundation.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASLayoutConstraint.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASLayoutConstraint.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASLayoutConstraint.h" 10 | 11 | @implementation MASLayoutConstraint 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshBackFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshFooter.h" 10 | 11 | @interface MJRefreshBackFooter : MJRefreshFooter 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWNavigationViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWNavigationViewController.h 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWNavigationViewController : UINavigationController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWBdgeButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWBdgeButton.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/3/26. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWBdgeButton : UIButton 12 | 13 | @property (nonatomic, assign) NSInteger kzwbdgeNumber; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWBdgeImage.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWBdgeImage.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/3/30. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWBdgeImage : UIImageView 12 | 13 | @property (nonatomic, copy) NSString *kzwbdgeNumber; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/KZWFoundation/KZWEAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWEAppDelegate.h 3 | // KZWFoundation 4 | // 5 | // Created by ouyrp on 12/28/2018. 6 | // Copyright (c) 2018 ouyrp. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface KZWEAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | BasedOnStyle: LLVM 4 | AccessModifierOffset: -4 5 | AlignAfterOpenBracket: DontAlign 6 | AlignOperands: false 7 | AlignTrailingComments: false 8 | ColumnLimit: 0 9 | IndentWidth: 4 10 | IndentCaseLabels: true 11 | MaxEmptyLinesToKeep: 2 12 | ObjCBlockIndentWidth: 4 13 | ObjCSpaceAfterProperty: true 14 | ... 15 | 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWRequestServerstatus.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWRequestServerstatus.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/4/3. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "LPDBRequestObject.h" 10 | #import 11 | 12 | @interface KZWRequestServerstatus : LPDBRequestObject 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/extobjc/EXTScope.m: -------------------------------------------------------------------------------- 1 | // 2 | // EXTScope.m 3 | // extobjc 4 | // 5 | // Created by Justin Spahr-Summers on 2011-05-04. 6 | // Copyright (C) 2012 Justin Spahr-Summers. 7 | // Released under the MIT license. 8 | // 9 | 10 | #import "EXTScope.h" 11 | 12 | void mtl_executeCleanupBlock (__strong mtl_cleanupBlock_t *block) { 13 | (*block)(); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWConstants.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWConstants.m 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWConstants.h" 10 | 11 | #pragma mark - key 12 | 13 | NSString *const YQYFINANCIALLOGINTOKEN = @"YQY_USER_LOGIN_TOKEN"; 14 | NSString *const KZWDEBUGKEY = @"KZW_DEBUG_KEY"; 15 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UILabel+KZWLineSpace.h: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+KZWLineSpace.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/5/3. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UILabel (KZWLineSpace) 12 | 13 | - (void)setLineSpace:(CGFloat)lineSpace withText:(NSString *)text; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWRSAenscryptString.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWRSAenscryptString.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/2/28. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWRSAenscryptString : NSObject 12 | 13 | + (NSString *)signStr:(NSMutableDictionary *)dict; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/UILabel+KZWLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+KZWLabel.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/5/16. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UILabel (KZWLabel) 12 | 13 | - (instancetype)initWithFrame:(CGRect)frame textColor:(UIColor *)textColor font:(CGFloat)font; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSObject+Dictionary.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+Dictionary.h 3 | // LPDCrowdsource 4 | // 5 | // Created by sq on 15/11/5. 6 | // Copyright © 2015年 elm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSObject (Dictionary) 12 | 13 | - (NSDictionary *)propertyDictionary; 14 | 15 | - (NSDictionary *)propertyToproperty; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWJpushModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWJpushModel.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/1/10. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWJpushModel.h" 10 | 11 | @implementation KZWJpushInfoModel 12 | 13 | @end 14 | 15 | @implementation KZWJpushAps 16 | 17 | @end 18 | 19 | @implementation KZWJpushModel 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWTosatView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWTosatView.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/8/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface KZWTosatView : NSObject 13 | 14 | + (void)showToastWithMessage:(NSString *)message view:(UIView *)view; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Example/KZWFoundation/KZWFoundation-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/KZWFoundation/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // KZWFoundation 4 | // 5 | // Created by ouyrp on 12/28/2018. 6 | // Copyright (c) 2018 ouyrp. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "KZWEAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([KZWEAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWDebugService.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWDebugService.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/7/10. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWDebugService : NSObject 12 | 13 | + (id)currentDebug; 14 | 15 | + (void)setCurrentDebug:(id)debug; 16 | 17 | + (void)saveDebug; 18 | 19 | + (void)deleteDebug; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/NSLayoutConstraint+MASDebugAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSLayoutConstraint+MASDebugAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * makes debug and log output of NSLayoutConstraints more readable 13 | */ 14 | @interface NSLayoutConstraint (MASDebugAdditions) 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWNoPasteTextField.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWTextField.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/5/26. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWNoPasteTextField : UITextField 12 | 13 | - (instancetype)initWithFrame:(CGRect)frame font:(CGFloat)font keyboardType:(UIKeyboardType)keyboardType placeholder:(NSString *)placeholder; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSURL+ELMFoundation.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSURL+ELMFoundation.h 3 | // ELMFoundation 4 | // 5 | // Created by Andy on 5/14/15. 6 | // Copyright (c) 2015 eleme. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSURL (ELMFoundation) 12 | 13 | + (NSString *)elm_queryStringFromParameters:(NSDictionary *)paramters; 14 | 15 | - (NSURL *)URLByAppendingQueryString:(NSString *)queryString; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWWebViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWWebViewController.h 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/15. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWViewController.h" 10 | #import 11 | #import 12 | #import 13 | 14 | @interface KZWWebViewController : KZWViewController 15 | @property (nonatomic, strong) DWKWebView *webView; 16 | @end 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBProgressHUD/MBProgressHUD-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "MBProgressHUD.h" 14 | 15 | FOUNDATION_EXPORT double MBProgressHUDVersionNumber; 16 | FOUNDATION_EXPORT const unsigned char MBProgressHUDVersionString[]; 17 | 18 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | PODS_BUILD_DIR = ${BUILD_DIR} 4 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 5 | PODS_ROOT = ${SRCROOT} 6 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/MJRefresh 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWRequestServerstatus.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWRequestServerstatus.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/4/3. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWRequestServerstatus.h" 10 | 11 | @implementation KZWRequestServerstatus 12 | 13 | - (instancetype)init { 14 | if (self = [super init]) { 15 | self.path = @"app/serverstatus"; 16 | } 17 | return self; 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoNormalFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoStateFooter.h" 10 | 11 | @interface MJRefreshAutoNormalFooter : MJRefreshAutoStateFooter 12 | /** 菊花的样式 */ 13 | @property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; 14 | @end 15 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/WKCookieSyncManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // WKCookieSyncManager.h 3 | // shoes 4 | // 5 | // Created by 奉强 on 16/4/5. 6 | // Copyright © 2016年 saygogo. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface WKCookieSyncManager : NSObject 13 | 14 | @property (nonatomic, strong) WKProcessPool *processPool; 15 | 16 | - (void)setCookie; 17 | 18 | + (instancetype)sharedWKCookieSyncManager; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_KZWFoundation_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_KZWFoundation_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Example/Pods-KZWFoundation_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_KZWFoundation_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_KZWFoundation_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_nodata.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "bg_nodata.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "bg_nodata-1.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SAMKeychain/SAMKeychain-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "SAMKeychain.h" 14 | #import "SAMKeychainQuery.h" 15 | 16 | FOUNDATION_EXPORT double SAMKeychainVersionNumber; 17 | FOUNDATION_EXPORT const unsigned char SAMKeychainVersionString[]; 18 | 19 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/NSBundle+MJRefresh.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSBundle+MJRefresh.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 16/6/13. 6 | // Copyright © 2016年 小码哥. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSBundle (MJRefresh) 12 | + (instancetype)mj_refreshBundle; 13 | + (UIImage *)mj_arrowImage; 14 | + (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value; 15 | + (NSString *)mj_localizedStringForKey:(NSString *)key; 16 | @end 17 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSObject+MTLComparisonAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+MTLComparisonAdditions.m 3 | // Mantle 4 | // 5 | // Created by Josh Vera on 10/26/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | // Portions copyright (c) 2011 Bitswift. All rights reserved. 9 | // See the LICENSE file for more information. 10 | // 11 | 12 | #import "NSObject+MTLComparisonAdditions.h" 13 | 14 | BOOL MTLEqualObjects(id obj1, id obj2) { 15 | return (obj1 == obj2 || [obj1 isEqual:obj2]); 16 | } 17 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWCorrectLocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWCorrectLocation.h 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/3. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface KZWCorrectLocation : NSObject 13 | 14 | + (BOOL)isLocationOutOfChina:(CLLocationCoordinate2D)location; 15 | //转GCJ-02 16 | + (CLLocationCoordinate2D)transformFromWGSToGCJ:(CLLocationCoordinate2D)wgsLoc; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSObject+MTLComparisonAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+MTLComparisonAdditions.h 3 | // Mantle 4 | // 5 | // Created by Josh Vera on 10/26/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | // Portions copyright (c) 2011 Bitswift. All rights reserved. 9 | // See the LICENSE file for more information. 10 | // 11 | 12 | #import 13 | 14 | /// Returns whether both objects are identical or equal via -isEqual: 15 | BOOL MTLEqualObjects(id obj1, id obj2); 16 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWBaseTextView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWBaseTextView.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/8/5. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWBaseTextView : UIView 12 | 13 | - (instancetype)initWithFrame:(CGRect)frame font:(CGFloat)font; 14 | 15 | @property (strong, nonatomic) UITextView *textView; 16 | 17 | @property (copy, nonatomic) NSString *text; 18 | - (void)setText:(NSString *)text; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshNormalHeader.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshStateHeader.h" 10 | 11 | @interface MJRefreshNormalHeader : MJRefreshStateHeader 12 | @property (weak, nonatomic, readonly) UIImageView *arrowView; 13 | /** 菊花的样式 */ 14 | @property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; 15 | @end 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Mantle/Mantle.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Mantle 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "Foundation" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/Mantle 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/dsBridge/dsBridge.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/dsBridge 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "UIKit" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/dsBridge 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIApplication+ELMFoundation.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIApplication+ELMFoundation.h 3 | // ELMFoundation 4 | // 5 | // Created by Andy on 4/20/15. 6 | // Copyright (c) 2015 eleme. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIApplication (ELMFoundation) 12 | 13 | + (NSString *)elm_version; 14 | 15 | + (NSString *)elm_bundleID; 16 | 17 | + (NSString *)elm_userAgent; 18 | 19 | + (void)elm_clearAllLocalNotifications NS_EXTENSION_UNAVAILABLE_IOS(""); 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/UITableView+KZWTableView.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+KZWTableView.h 3 | // KZWFoundation 4 | // 5 | // Created by ouyang on 2018/5/9. 6 | // Copyright © 2018年 ouyang. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UITableView (KZWTableView) 12 | 13 | - (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style separatorStyle:(UITableViewCellSeparatorStyle)separatorStyle automatic:(BOOL)automatic; 14 | 15 | - (void)showNoDataView:(NSArray *)array; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_bg.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "update_bg.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "update_bg-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "update_bg-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AFNetworking/AFNetworking-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #ifndef TARGET_OS_IOS 14 | #define TARGET_OS_IOS TARGET_OS_IPHONE 15 | #endif 16 | 17 | #ifndef TARGET_OS_WATCH 18 | #define TARGET_OS_WATCH 0 19 | #endif 20 | 21 | #ifndef TARGET_OS_TV 22 | #define TARGET_OS_TV 0 23 | #endif 24 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Masonry/Masonry.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Masonry 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "Foundation" -framework "UIKit" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/Masonry 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackNormalFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackStateFooter.h" 10 | 11 | @interface MJRefreshBackNormalFooter : MJRefreshBackStateFooter 12 | @property (weak, nonatomic, readonly) UIImageView *arrowView; 13 | /** 菊花的样式 */ 14 | @property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; 15 | @end 16 | -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/bg_noserver.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "bg_noserver.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "bg_noserver-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "bg_noserver-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/cancelimage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "cancelimage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "cancelimage-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "cancelimage-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/update_head.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "update_head.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "update_head-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "update_head-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /KZWFoundation/Assets/Images.xcassets/ic_colorback.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "ic_colorback.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "ic_colorback-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "ic_colorback-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SAMKeychain/SAMKeychain.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "Foundation" -framework "Security" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/SAMKeychain 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/dsBridge/dsBridge-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "dsbridge.h" 14 | #import "DSCallInfo.h" 15 | #import "DWKWebView.h" 16 | #import "InternalApis.h" 17 | #import "JSBUtil.h" 18 | 19 | FOUNDATION_EXPORT double dsBridgeVersionNumber; 20 | FOUNDATION_EXPORT const unsigned char dsBridgeVersionString[]; 21 | 22 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/NetWork/LPDBModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // LPDBModel.h 3 | // LPDCrowdsource 4 | // 5 | // Created by sq on 15/11/6. 6 | // Copyright © 2015年 elm. All rights reserved. 7 | // 8 | #import "MTLModel.h" 9 | #import 10 | #import 11 | 12 | @interface LPDBModel : MTLModel 13 | /** 14 | * json key 值映射 15 | * 属性名与json key 16 | * @return 17 | */ 18 | + (NSDictionary *)mapKey; 19 | 20 | /** 21 | * 过滤掉不参加映射的属性值 22 | * 23 | * @return 24 | */ 25 | + (NSArray *)filter; 26 | @end 27 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWVersionModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWVersionModel.h 3 | // KZWFoundation 4 | // 5 | // Created by ouyang on 2018/5/8. 6 | // Copyright © 2018年 ouyang. All rights reserved. 7 | // 8 | 9 | #import "LPDBModel.h" 10 | #import 11 | 12 | @interface KZWVersionModel : LPDBModel 13 | 14 | @property (copy, nonatomic) NSString *appVersion; 15 | @property (copy, nonatomic) NSString *updateDesc; 16 | @property (copy, nonatomic) NSString *updateType; 17 | @property (copy, nonatomic) NSString *packageDownloadUrl; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWViewController.h 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWViewController : UIViewController 12 | 13 | @property (assign, nonatomic) BOOL navigationHidden; 14 | 15 | - (void)showProgress; 16 | - (void)hideProgess; 17 | 18 | - (void)showLoadFailedNoticeWithAction:(SEL)action frame:(CGRect)frame isWeb:(BOOL)isWeb; 19 | - (void)hidenLoadFailedNoticeView; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Router/UIViewController+ELMRouter.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+ELMRouter.h 3 | // ELMRouter 4 | // 5 | // Created by 0oneo on 4/20/15. 6 | // Copyright (c) 2015 0oneo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIViewController (ELMRouter) 12 | 13 | @property (nonatomic, strong) NSDictionary *elm_params; 14 | 15 | /** 16 | * Define ViewController required keys 17 | * 18 | * @return An `NSSet` instance contains keys that viewController requires. 19 | */ 20 | + (NSSet *)elm_requiredKeys; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBProgressHUD/MBProgressHUD.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "CoreGraphics" -framework "QuartzCore" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/MBProgressHUD 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIImageView+KZWCache.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView+KZWCache.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2017/12/27. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "ZYImageCacheManager.h" 10 | #import 11 | 12 | @interface UIImageView (KZWCache) 13 | 14 | - (void)zy_setImageWithURL:(NSString *)urlString withImage:(UIImage *)placeholderImage; 15 | 16 | //从网址下载图片,没下载完毕前,显示占位图片 17 | - (void)zy_setImageWithURL:(NSString *)urlString placeholderImage:(UIImage *)placeholderImage; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/MTLTransformerErrorHandling.m: -------------------------------------------------------------------------------- 1 | // 2 | // MTLTransformerErrorHandling.h 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 10/6/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import "MTLTransformerErrorHandling.h" 10 | 11 | NSString * const MTLTransformerErrorHandlingErrorDomain = @"MTLTransformerErrorHandlingErrorDomain"; 12 | 13 | const NSInteger MTLTransformerErrorHandlingErrorInvalidInput = 1; 14 | 15 | NSString * const MTLTransformerErrorHandlingInputValueErrorKey = @"MTLTransformerErrorHandlingInputValueErrorKey"; 16 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | 4 | #import "UIScrollView+MJRefresh.h" 5 | #import "UIScrollView+MJExtension.h" 6 | #import "UIView+MJExtension.h" 7 | 8 | #import "MJRefreshNormalHeader.h" 9 | #import "MJRefreshGifHeader.h" 10 | 11 | #import "MJRefreshBackNormalFooter.h" 12 | #import "MJRefreshBackGifFooter.h" 13 | #import "MJRefreshAutoNormalFooter.h" 14 | #import "MJRefreshAutoGifFooter.h" -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWDSJavaScripInterface.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWDSJavaScripInterface.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/5/4. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWJavascripModel.h" 10 | #import 11 | 12 | @protocol KZWDSJavaScripInterfaceDelegate 13 | @optional 14 | 15 | - (void)setNavTitl:(KZWJavascripModel *)model; 16 | 17 | @end 18 | 19 | @interface KZWDSJavaScripInterface : NSObject 20 | 21 | @property (weak, nonatomic) id delegate; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/ELMKeychainUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELMKeychainUtil.h 3 | // ELMFoundation 4 | // 5 | // Created by 0oneo on 6/2/15. 6 | // Copyright (c) 2015 eleme. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ELMKeychainUtil : NSObject 12 | 13 | + (void)saveKeychainDict:(NSMutableDictionary *)dict; 14 | 15 | + (NSMutableDictionary *)keychainDict; 16 | 17 | + (NSString *)valueInKeyChainForKey:(NSString *)key; 18 | 19 | + (void)saveValueToKeyChain:(NSString *)value forKey:(NSString *)key; 20 | 21 | + (void)deleteAllInfoInKeyChain; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/KZWFoundation.xcworkspace -scheme KZWFoundation-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWHUD.h: -------------------------------------------------------------------------------- 1 | // 2 | // CQPointHUD.h 3 | // 弹窗哈哈哈 4 | // 5 | // Created by 蔡强 on 2017/6/7. 6 | // Copyright © 2017年 kuaijiankang. All rights reserved. 7 | // 8 | 9 | #import "KZWVersionModel.h" 10 | #import 11 | 12 | @interface KZWHUD : UIView 13 | 14 | + (KZWHUD *)sharedKZWHUD; 15 | 16 | #pragma mark - 带网络图片与block回调的弹窗 17 | /** 带网络图片与block回调的弹窗 */ 18 | - (void)showAlertWithImageURL:(NSString *)imageURL ButtonClickedBlock:(void (^)(void))buttonClickedBlock; 19 | 20 | - (void)showVersionUpdate:(KZWVersionModel *)model; 21 | 22 | - (void)showDebug:(NSString *)message; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/UILabel+KZWLabel.m: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+KZWLabel.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/5/16. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "UILabel+KZWLabel.h" 10 | 11 | @implementation UILabel (KZWLabel) 12 | 13 | - (instancetype)initWithFrame:(CGRect)frame textColor:(UIColor *)textColor font:(CGFloat)font { 14 | if (self = [self initWithFrame:frame]) { 15 | self.numberOfLines = 0; 16 | self.textColor = textColor; 17 | self.font = [UIFont systemFontOfSize:font]; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AFNetworking/AFNetworking.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/AFNetworking 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIScrollView+KZWRefresh.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIScrollView+KZWRefresh.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/3/23. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIScrollView (KZWRefresh) 12 | 13 | - (void)addHeaderRefreshWithCallback:(nullable void (^)())callback; 14 | 15 | - (void)addFooterRefreshWithCallback:(nullable void (^)())callback; 16 | 17 | - (void)headerBeginRefreshing; 18 | 19 | - (void)footerBeginRefreshing; 20 | 21 | - (void)headerEndRefreshing; 22 | 23 | - (void)footerEndRefreshing; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshGifHeader.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshStateHeader.h" 10 | 11 | @interface MJRefreshGifHeader : MJRefreshStateHeader 12 | @property (weak, nonatomic, readonly) UIImageView *gifView; 13 | 14 | /** 设置state状态下的动画图片images 动画持续时间duration*/ 15 | - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; 16 | - (void)setImages:(NSArray *)images forState:(MJRefreshState)state; 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSDictionary+MTLMappingAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+MTLMappingAdditions.h 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 10/31/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSDictionary (MTLMappingAdditions) 12 | 13 | /// Creates an identity mapping for serialization. 14 | /// 15 | /// class - A subclass of MTLModel. 16 | /// 17 | /// Returns a dictionary that maps all properties of the given class to 18 | /// themselves. 19 | + (NSDictionary *)mtl_identityPropertyMapWithModel:(Class)modelClass; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASLayoutConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASLayoutConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 3/08/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * When you are debugging or printing the constraints attached to a view this subclass 13 | * makes it easier to identify which constraints have been created via Masonry 14 | */ 15 | @interface MASLayoutConstraint : NSLayoutConstraint 16 | 17 | /** 18 | * a key to associate with this constraint 19 | */ 20 | @property (nonatomic, strong) id mas_key; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIColor+KZWColor.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+KZWColor.h 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface UIColor (KZWColor) 13 | 14 | 15 | + (UIColor *)colorWithHexString:(NSString *)hexString; 16 | 17 | 18 | + (UIColor *)colorWithRGB:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue; 19 | 20 | + (UIColor *)colorWithRGBA:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; 21 | 22 | + (UIColor *)baseColor; 23 | 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Example/Pods/dsBridge/dsbridge/JSBUtil.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | enum{ 4 | DSB_API_HASNATIVEMETHOD, 5 | DSB_API_CLOSEPAGE, 6 | DSB_API_RETURNVALUE, 7 | DSB_API_DSINIT, 8 | DSB_API_DISABLESAFETYALERTBOX 9 | }; 10 | 11 | @interface JSBUtil : NSObject 12 | + (NSString * _Nullable)objToJsonString:(id _Nonnull)dict; 13 | + (id _Nullable)jsonStringToObject:(NSString * _Nonnull)jsonString; 14 | +(NSString *_Nullable)methodByNameArg:(NSInteger)argNum 15 | selName:( NSString * _Nullable)selName class:(Class _Nonnull )class; 16 | + (NSArray *_Nonnull)parseNamespace: (NSString *_Nonnull) method; 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASCompositeConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASCompositeConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | #import "MASUtilities.h" 11 | 12 | /** 13 | * A group of MASConstraint objects 14 | */ 15 | @interface MASCompositeConstraint : MASConstraint 16 | 17 | /** 18 | * Creates a composite with a predefined array of children 19 | * 20 | * @param children child MASConstraints 21 | * 22 | * @return a composite constraint 23 | */ 24 | - (id)initWithChildren:(NSArray *)children; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoGifFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoStateFooter.h" 10 | 11 | @interface MJRefreshAutoGifFooter : MJRefreshAutoStateFooter 12 | @property (weak, nonatomic, readonly) UIImageView *gifView; 13 | 14 | /** 设置state状态下的动画图片images 动画持续时间duration*/ 15 | - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; 16 | - (void)setImages:(NSArray *)images forState:(MJRefreshState)state; 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackGifFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackStateFooter.h" 10 | 11 | @interface MJRefreshBackGifFooter : MJRefreshBackStateFooter 12 | @property (weak, nonatomic, readonly) UIImageView *gifView; 13 | 14 | /** 设置state状态下的动画图片images 动画持续时间duration*/ 15 | - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; 16 | - (void)setImages:(NSArray *)images forState:(MJRefreshState)state; 17 | @end 18 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWProGressView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWProGressView.h 3 | // ProgressBar 4 | // 5 | // Created by Apple on 2017/4/12. 6 | // Copyright © 2017年 Apple. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWProGressView : UIView 12 | 13 | /** 14 | 进度值 15 | */ 16 | @property (nonatomic, copy) NSString *progressValue; 17 | 18 | /** 19 | 进度条的颜色 20 | */ 21 | @property (nonatomic, strong) UIColor *progressColor; 22 | 23 | /** 24 | 进度条的背景色 25 | */ 26 | @property (nonatomic, strong) UIColor *bottomColor; 27 | 28 | /** 29 | 进度条的速度 30 | */ 31 | @property (nonatomic, assign) float time; 32 | 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UITabBarItem+WebCache.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBarItem+WebCache.h 3 | // 4 | // Created by ouyang on 15/7/24. 5 | // 6 | 7 | #import "ZYImageCacheManager.h" 8 | #import 9 | @interface UITabBarItem (WebCache) 10 | //从网址加载图片 11 | - (void)zy_setImageWithURL:(NSString *)urlString withImage:(UIImage *)placeholderImage; 12 | 13 | //从网址下载图片,没下载完毕前,显示占位图片 14 | - (void)zy_setImageWithURL:(NSString *)urlString placeholderImage:(UIImage *)placeholderImage; 15 | - (void)zy_setSelectImageWithURL:(NSString *)urlString withImage:(UIImage *)placeholderImage; 16 | 17 | - (void)zy_setSelectImageWithURL:(NSString *)urlString placeholderImage:(UIImage *)placeholderImage; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSValueTransformer+MTLInversionAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSValueTransformer+MTLInversionAdditions.h 3 | // Mantle 4 | // 5 | // Created by Justin Spahr-Summers on 2013-05-18. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSValueTransformer (MTLInversionAdditions) 12 | 13 | /// Flips the direction of the receiver's transformation, such that 14 | /// -transformedValue: will become -reverseTransformedValue:, and vice-versa. 15 | /// 16 | /// The receiver must allow reverse transformation. 17 | /// 18 | /// Returns an inverted transformer. 19 | - (NSValueTransformer *)mtl_invertedTransformer; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Example/KZWFoundation/KZWEViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWEViewController.m 3 | // KZWFoundation 4 | // 5 | // Created by ouyrp on 12/28/2018. 6 | // Copyright (c) 2018 ouyrp. All rights reserved. 7 | // 8 | 9 | #import "KZWEViewController.h" 10 | #import 11 | 12 | @interface KZWEViewController () 13 | 14 | @end 15 | 16 | @implementation KZWEViewController 17 | 18 | - (void)viewDidLoad 19 | { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | } 23 | 24 | - (void)didReceiveMemoryWarning 25 | { 26 | [super didReceiveMemoryWarning]; 27 | // Dispose of any resources that can be recreated. 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackStateFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/6/13. 6 | // Copyright © 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackFooter.h" 10 | 11 | @interface MJRefreshBackStateFooter : MJRefreshBackFooter 12 | /** 文字距离圈圈、箭头的距离 */ 13 | @property (assign, nonatomic) CGFloat labelLeftInset; 14 | /** 显示刷新状态的label */ 15 | @property (weak, nonatomic, readonly) UILabel *stateLabel; 16 | /** 设置state状态下的文字 */ 17 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state; 18 | 19 | /** 获取state状态下的title */ 20 | - (NSString *)titleForState:(MJRefreshState)state; 21 | @end 22 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWJavascripModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWJavascripModel.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/5/16. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWJavascripModel.h" 10 | #import 11 | 12 | @implementation KZWJavascripModel 13 | 14 | + (NSValueTransformer *)JSONTransformerForKey:(NSString *)key { 15 | if ([key isEqualToString:@"shareContent"]) { 16 | return [MTLJSONAdapter dictionaryTransformerWithModelClass:[KZWShareModel class]]; 17 | } 18 | return nil; 19 | } 20 | 21 | @end 22 | 23 | @implementation KZWShareModel 24 | 25 | @end 26 | 27 | @implementation KZWWebControllerModel 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSDictionary+MTLMappingAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+MTLMappingAdditions.m 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 10/31/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import "MTLModel.h" 10 | 11 | #import "NSDictionary+MTLMappingAdditions.h" 12 | 13 | @implementation NSDictionary (MTLMappingAdditions) 14 | 15 | + (NSDictionary *)mtl_identityPropertyMapWithModel:(Class)modelClass { 16 | NSCParameterAssert([modelClass conformsToProtocol:@protocol(MTLModel)]); 17 | 18 | NSArray *propertyKeys = [modelClass propertyKeys].allObjects; 19 | 20 | return [NSDictionary dictionaryWithObjects:propertyKeys forKeys:propertyKeys]; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hant.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "MJRefreshHeaderIdleText" = "下拉可以刷新"; 2 | "MJRefreshHeaderPullingText" = "鬆開立即刷新"; 3 | "MJRefreshHeaderRefreshingText" = "正在刷新數據中..."; 4 | 5 | "MJRefreshAutoFooterIdleText" = "點擊或上拉加載更多"; 6 | "MJRefreshAutoFooterRefreshingText" = "正在加載更多的數據..."; 7 | "MJRefreshAutoFooterNoMoreDataText" = "已經全部加載完畢"; 8 | 9 | "MJRefreshBackFooterIdleText" = "上拉可以加載更多"; 10 | "MJRefreshBackFooterPullingText" = "鬆開立即加載更多"; 11 | "MJRefreshBackFooterRefreshingText" = "正在加載更多的數據..."; 12 | "MJRefreshBackFooterNoMoreDataText" = "已經全部加載完畢"; 13 | 14 | "MJRefreshHeaderLastTimeText" = "最後更新:"; 15 | "MJRefreshHeaderDateTodayText" = "今天"; 16 | "MJRefreshHeaderNoneLastDateText" = "無記錄"; 17 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSString+ELMFoundation.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+ELMFoundation.h 3 | // ELMFoundation 4 | // 5 | // Created by 0oneo on 6/2/15. 6 | // Copyright (c) 2015 eleme. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSString (ELMFoundation) 12 | 13 | + (BOOL)elm_isBlank:(NSString *)string; 14 | 15 | - (NSString *)elm_trim; 16 | 17 | // JSON 18 | 19 | - (NSDictionary *)elm_JSON; 20 | 21 | - (NSString *)elm_URLEncodedString; 22 | 23 | - (NSString *)elm_URLDecodedString; 24 | 25 | - (NSString *)lpd_urlEncode; 26 | 27 | - (NSString *)lpd_urlDecode; 28 | 29 | - (NSString *)imageURL; 30 | 31 | + (NSString *)notRounding:(float)price afterPoint:(int)position; 32 | 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoStateFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/6/13. 6 | // Copyright © 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoFooter.h" 10 | 11 | @interface MJRefreshAutoStateFooter : MJRefreshAutoFooter 12 | /** 文字距离圈圈、箭头的距离 */ 13 | @property (assign, nonatomic) CGFloat labelLeftInset; 14 | /** 显示刷新状态的label */ 15 | @property (weak, nonatomic, readonly) UILabel *stateLabel; 16 | 17 | /** 设置state状态下的文字 */ 18 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state; 19 | 20 | /** 隐藏刷新状态的文字 */ 21 | @property (assign, nonatomic, getter=isRefreshingTitleHidden) BOOL refreshingTitleHidden; 22 | @end 23 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSError+MTLModelException.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSError+MTLModelException.h 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 7/6/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSError (MTLModelException) 12 | 13 | /// Creates a new error for an exception that occurred during updating an 14 | /// MTLModel. 15 | /// 16 | /// exception - The exception that was thrown while updating the model. 17 | /// This argument must not be nil. 18 | /// 19 | /// Returns an error that takes its localized description and failure reason 20 | /// from the exception. 21 | + (instancetype)mtl_modelErrorWithException:(NSException *)exception; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Example/Pods/dsBridge/dsbridge/InternalApis.m: -------------------------------------------------------------------------------- 1 | #import "InternalApis.h" 2 | #import "JSBUtil.h" 3 | 4 | @implementation InternalApis 5 | - (id) hasNativeMethod:(id) args 6 | { 7 | return [self.webview onMessage:args type: DSB_API_HASNATIVEMETHOD]; 8 | } 9 | 10 | - (id) closePage:(id) args{ 11 | return [self.webview onMessage:args type:DSB_API_CLOSEPAGE]; 12 | } 13 | 14 | - (id) returnValue:(NSDictionary *) args{ 15 | return [self.webview onMessage:args type:DSB_API_RETURNVALUE]; 16 | } 17 | 18 | - (id) dsinit:(id) args{ 19 | return [self.webview onMessage:args type:DSB_API_DSINIT]; 20 | } 21 | 22 | - (id) disableJavascriptDialogBlock:(id) args{ 23 | return [self.webview onMessage:args type:DSB_API_DISABLESAFETYALERTBOX]; 24 | } 25 | @end 26 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UINavigationController+KZWBackButtonHandler.h: -------------------------------------------------------------------------------- 1 | // 2 | // UINavigationController+KZWBackButtonHandler.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/7/12. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol BackButtonHandlerProtocol 12 | @optional 13 | // 重写下面的方法以拦截导航栏返回按钮点击事件,返回 YES 则 pop,NO 则不 pop 14 | - (BOOL)navigationShouldPopOnBackButton; 15 | @end 16 | 17 | @interface UIViewController (ShouldPopOnBackButton) 18 | 19 | @end 20 | 21 | @interface UINavigationController (KZWBackButtonHandler) 22 | 23 | - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWFoundationTests.m 3 | // KZWFoundationTests 4 | // 5 | // Created by ouyrp on 12/28/2018. 6 | // Copyright (c) 2018 ouyrp. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIView+MJExtension.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIView+Extension.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 14-5-28. 7 | // Copyright (c) 2014年 小码哥. All rights reserved. 8 | // 9 | 10 | #import 11 | 12 | @interface UIView (MJExtension) 13 | @property (assign, nonatomic) CGFloat mj_x; 14 | @property (assign, nonatomic) CGFloat mj_y; 15 | @property (assign, nonatomic) CGFloat mj_w; 16 | @property (assign, nonatomic) CGFloat mj_h; 17 | @property (assign, nonatomic) CGSize mj_size; 18 | @property (assign, nonatomic) CGPoint mj_origin; 19 | @end 20 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UITabBar+CustomBadge.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBar+CustomBadge.h 3 | // gamecenter 4 | // 5 | // Created by ZhuGuangwen on 15/9/21. 6 | // Copyright © 2015年 wepie. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSUInteger, CustomBadgeType) { 12 | kCustomBadgeStyleRedDot, 13 | kCustomBadgeStyleNumber, 14 | kCustomBadgeStyleNone 15 | }; 16 | 17 | @interface UITabBar (CustomBadge) 18 | 19 | /** 20 | *设置tab上icon的宽度,用于调整badge的位置 21 | */ 22 | - (void)setTabIconWidth:(CGFloat)width; 23 | 24 | /** 25 | *设置badge的top 26 | */ 27 | - (void)setBadgeTop:(CGFloat)top; 28 | 29 | /** 30 | *设置badge样、数字 31 | */ 32 | - (void)setBadgeStyle:(CustomBadgeType)type value:(NSInteger)badgeValue atIndex:(NSInteger)index; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWNetStateView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWNetStateView.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/4/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol netStatueViewDelegate 12 | 13 | - (void)netStateViewWithAction:(SEL)action; 14 | 15 | @end 16 | 17 | @interface KZWNetStateView : UIView 18 | 19 | - (instancetype)initWithFrame:(CGRect)frame; 20 | 21 | @property (strong, nonatomic) UIImageView *netImage; 22 | 23 | @property (strong, nonatomic) UILabel *netLabel; 24 | 25 | @property (strong, nonatomic) UIButton *button; 26 | 27 | @property (nonatomic, weak) id delegate; 28 | 29 | - (void)showLoadFailedNoticeWithAction:(SEL)action isWeb:(BOOL)isWeb; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "MJRefreshHeaderIdleText" = "Pull down to refresh"; 2 | "MJRefreshHeaderPullingText" = "Release to refresh"; 3 | "MJRefreshHeaderRefreshingText" = "Loading..."; 4 | 5 | "MJRefreshAutoFooterIdleText" = "Tap or pull up to load more"; 6 | "MJRefreshAutoFooterRefreshingText" = "Loading..."; 7 | "MJRefreshAutoFooterNoMoreDataText" = "No more data"; 8 | 9 | "MJRefreshBackFooterIdleText" = "Pull up to load more"; 10 | "MJRefreshBackFooterPullingText" = "Release to load more."; 11 | "MJRefreshBackFooterRefreshingText" = "Loading..."; 12 | "MJRefreshBackFooterNoMoreDataText" = "No more data"; 13 | 14 | "MJRefreshHeaderLastTimeText" = "Last updated: "; 15 | "MJRefreshHeaderDateTodayText" = "Today"; 16 | "MJRefreshHeaderNoneLastDateText" = "No record"; 17 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Router/UIViewController+ELMRouter.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+ELMRouter.m 3 | // ELMRouter 4 | // 5 | // Created by 0oneo on 4/20/15. 6 | // Copyright (c) 2015 0oneo. All rights reserved. 7 | // 8 | 9 | #import "UIViewController+ELMRouter.h" 10 | #import 11 | 12 | static char kAssociatedParamsObjectKey; 13 | 14 | @implementation UIViewController (ELMRouter) 15 | 16 | @dynamic elm_params; 17 | 18 | - (NSDictionary *)elm_params { 19 | return objc_getAssociatedObject(self, &kAssociatedParamsObjectKey); 20 | } 21 | 22 | - (void)setElm_params:(NSDictionary *)elm_params { 23 | objc_setAssociatedObject(self, &kAssociatedParamsObjectKey, elm_params, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 24 | } 25 | 26 | + (NSSet *)elm_requiredKeys { 27 | return nil; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSObject+LPDAssociatedObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+LPDAssociatedObject.h 3 | // LPDAdditions 4 | // 5 | // Created by foxsofter on 15/2/23. 6 | // Copyright (c) 2015年 foxsofter. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 12 | * @author foxsofter, 15-02-23 21:02:44 13 | * 14 | * @brief 动态添加属性到对象,避免繁琐的添加static NSString作为key 15 | */ 16 | @interface NSObject (LPDAssociatedObject) 17 | 18 | - (id)object:(SEL)key; 19 | 20 | - (void)setAssignObject:(id)object withKey:(SEL)key; 21 | 22 | - (void)setRetainNonatomicObject:(id)object withKey:(SEL)key; 23 | 24 | - (void)setCopyNonatomicObject:(id)object withKey:(SEL)key; 25 | 26 | - (void)setRetainObject:(id)object withKey:(SEL)key; 27 | 28 | - (void)setCopyObject:(id)object withKey:(SEL)key; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWBaseTextField.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWBaseTextField.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/8/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSUInteger, KZWTextFieldType) { 12 | KZWTextFieldPhone, 13 | KZWTextFieldCode, 14 | KZWTextFieldPWD, 15 | KZWTextFieldIdCard, 16 | KZWTextFieldMoney, 17 | KZWTextFieldDefault 18 | }; 19 | 20 | @interface KZWBaseTextField : UIView 21 | 22 | - (instancetype)initWithFrame:(CGRect)frame font:(CGFloat)font keyboardType:(UIKeyboardType)keyboardType placeholder:(NSString *)placeholder KZWTextFieldType:(KZWTextFieldType)type; 23 | 24 | @property (strong, nonatomic) UITextField *textField; 25 | 26 | @property (copy, nonatomic) NSString *text; 27 | - (void)setText:(NSString *)text; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshStateHeader.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshHeader.h" 10 | 11 | @interface MJRefreshStateHeader : MJRefreshHeader 12 | #pragma mark - 刷新时间相关 13 | /** 利用这个block来决定显示的更新时间文字 */ 14 | @property (copy, nonatomic) NSString *(^lastUpdatedTimeText)(NSDate *lastUpdatedTime); 15 | /** 显示上一次刷新时间的label */ 16 | @property (weak, nonatomic, readonly) UILabel *lastUpdatedTimeLabel; 17 | 18 | #pragma mark - 状态相关 19 | /** 文字距离圈圈、箭头的距离 */ 20 | @property (assign, nonatomic) CGFloat labelLeftInset; 21 | /** 显示刷新状态的label */ 22 | @property (weak, nonatomic, readonly) UILabel *stateLabel; 23 | /** 设置state状态下的文字 */ 24 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state; 25 | @end 26 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWTosatView.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWTosatView.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/8/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWTosatView.h" 10 | #import "KZWConstants.h" 11 | #import "UIColor+KZWColor.h" 12 | #import 13 | 14 | @implementation KZWTosatView 15 | 16 | + (void)showToastWithMessage:(NSString *)message view:(UIView *)view { 17 | MBProgressHUD *messagehud = [MBProgressHUD showHUDAddedTo:view ?: [UIApplication sharedApplication].keyWindow animated:YES]; 18 | messagehud.contentColor = [UIColor colorWithHexString:FontColor333333]; 19 | messagehud.mode = MBProgressHUDModeText; 20 | messagehud.detailsLabel.text = ([message isEqual:[NSNull null]]) ? @"服务异常" : message; 21 | [messagehud hideAnimated:YES afterDelay:2]; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshFooter.h" 10 | 11 | @interface MJRefreshAutoFooter : MJRefreshFooter 12 | /** 是否自动刷新(默认为YES) */ 13 | @property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh; 14 | 15 | /** 当底部控件出现多少时就自动刷新(默认为1.0,也就是底部控件完全出现时,才会自动刷新) */ 16 | @property (assign, nonatomic) CGFloat appearencePercentTriggerAutoRefresh MJRefreshDeprecated("请使用triggerAutomaticallyRefreshPercent属性"); 17 | 18 | /** 当底部控件出现多少时就自动刷新(默认为1.0,也就是底部控件完全出现时,才会自动刷新) */ 19 | @property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent; 20 | 21 | /** 是否每一次拖拽只发一次请求 */ 22 | @property (assign, nonatomic, getter=isOnlyRefreshPerDrag) BOOL onlyRefreshPerDrag; 23 | @end 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KZWFoundation/ResourceBundle-KZWFundation-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleIdentifier 8 | ${PRODUCT_BUNDLE_IDENTIFIER} 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | ${PRODUCT_NAME} 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 2.0.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KZWFoundation/KZWFoundation.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Mantle" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain" "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_LDFLAGS = -framework "AudioToolbox" -framework "MapKit" -framework "WebKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/Masonry.h: -------------------------------------------------------------------------------- 1 | // 2 | // Masonry.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Masonry. 12 | FOUNDATION_EXPORT double MasonryVersionNumber; 13 | 14 | //! Project version string for Masonry. 15 | FOUNDATION_EXPORT const unsigned char MasonryVersionString[]; 16 | 17 | #import "MASUtilities.h" 18 | #import "View+MASAdditions.h" 19 | #import "View+MASShorthandAdditions.h" 20 | #import "ViewController+MASAdditions.h" 21 | #import "NSArray+MASAdditions.h" 22 | #import "NSArray+MASShorthandAdditions.h" 23 | #import "MASConstraint.h" 24 | #import "MASCompositeConstraint.h" 25 | #import "MASViewAttribute.h" 26 | #import "MASViewConstraint.h" 27 | #import "MASConstraintMaker.h" 28 | #import "MASLayoutConstraint.h" 29 | #import "NSLayoutConstraint+MASDebugAdditions.h" 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Mantle/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Masonry/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/dsBridge/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.6 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AFNetworking/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.2.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KZWFoundation/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MBProgressHUD/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.1.15 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Masonry/Masonry-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "MASCompositeConstraint.h" 14 | #import "MASConstraint+Private.h" 15 | #import "MASConstraint.h" 16 | #import "MASConstraintMaker.h" 17 | #import "MASLayoutConstraint.h" 18 | #import "Masonry.h" 19 | #import "MASUtilities.h" 20 | #import "MASViewAttribute.h" 21 | #import "MASViewConstraint.h" 22 | #import "NSArray+MASAdditions.h" 23 | #import "NSArray+MASShorthandAdditions.h" 24 | #import "NSLayoutConstraint+MASDebugAdditions.h" 25 | #import "View+MASAdditions.h" 26 | #import "View+MASShorthandAdditions.h" 27 | #import "ViewController+MASAdditions.h" 28 | 29 | FOUNDATION_EXPORT double MasonryVersionNumber; 30 | FOUNDATION_EXPORT const unsigned char MasonryVersionString[]; 31 | 32 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SAMKeychain/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.5.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/NetWork/LPDBModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // LPDBModel.m 3 | // LPDCrowdsource 4 | // 5 | // Created by sq on 15/11/6. 6 | // Copyright © 2015年 elm. All rights reserved. 7 | // 8 | 9 | #import "LPDBModel.h" 10 | #import "NSObject+Dictionary.h" 11 | 12 | @implementation LPDBModel 13 | + (NSDictionary *)JSONKeyPathsByPropertyKey { 14 | NSMutableDictionary *dic = [[[self new] propertyToproperty] mutableCopy]; 15 | for (NSString *key in [self mapKey].allKeys) { 16 | if ([dic.allKeys containsObject:key]) { 17 | dic[key] = [self mapKey][key]; 18 | } 19 | } 20 | for (NSString *key in [self filter]) { 21 | [dic setValue:nil forKey:key]; 22 | } 23 | return [dic copy]; 24 | } 25 | 26 | + (NSDictionary *)mapKey { 27 | return nil; 28 | } 29 | 30 | + (NSArray *)filter { 31 | return nil; 32 | } 33 | 34 | - (void)setNilValueForKey:(NSString *)key { 35 | #ifdef DEBUG 36 | NSLog(@"%@ is nil", key); 37 | #endif 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJExtension.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIScrollView+Extension.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 14-5-28. 7 | // Copyright (c) 2014年 小码哥. All rights reserved. 8 | // 9 | 10 | #import 11 | 12 | @interface UIScrollView (MJExtension) 13 | @property (readonly, nonatomic) UIEdgeInsets mj_inset; 14 | 15 | @property (assign, nonatomic) CGFloat mj_insetT; 16 | @property (assign, nonatomic) CGFloat mj_insetB; 17 | @property (assign, nonatomic) CGFloat mj_insetL; 18 | @property (assign, nonatomic) CGFloat mj_insetR; 19 | 20 | @property (assign, nonatomic) CGFloat mj_offsetX; 21 | @property (assign, nonatomic) CGFloat mj_offsetY; 22 | 23 | @property (assign, nonatomic) CGFloat mj_contentW; 24 | @property (assign, nonatomic) CGFloat mj_contentH; 25 | @end 26 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UILabel+KZWLineSpace.m: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+KZWLineSpace.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/5/3. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "UILabel+KZWLineSpace.h" 10 | 11 | @implementation UILabel (KZWLineSpace) 12 | 13 | - (void)setLineSpace:(CGFloat)lineSpace withText:(NSString *)text { 14 | if (!text || !self) { 15 | return; 16 | } 17 | NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init]; 18 | paragraphStyle.lineSpacing = lineSpace; //设置行间距 19 | paragraphStyle.lineBreakMode = self.lineBreakMode; 20 | paragraphStyle.alignment = self.textAlignment; 21 | 22 | NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:text]; 23 | [attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [text length])]; 24 | self.attributedText = attributedString; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/Mantle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mantle.h 3 | // Mantle 4 | // 5 | // Created by Justin Spahr-Summers on 2012-09-04. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Mantle. 12 | FOUNDATION_EXPORT double MantleVersionNumber; 13 | 14 | //! Project version string for Mantle. 15 | FOUNDATION_EXPORT const unsigned char MantleVersionString[]; 16 | 17 | #import 18 | #import 19 | #import 20 | #import 21 | #import 22 | #import 23 | #import 24 | #import 25 | #import 26 | #import 27 | #import 28 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSArray+MTLManipulationAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MTLManipulationAdditions.h 3 | // Mantle 4 | // 5 | // Created by Josh Abernathy on 9/19/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSArray (MTLManipulationAdditions) 12 | 13 | /// The first object in the array or nil if the array is empty. 14 | /// Forwards to `firstObject` which has been first declared in iOS7, but works with iOS4/10.6. 15 | @property (nonatomic, readonly, strong) id mtl_firstObject; 16 | 17 | /// Returns a new array without all instances of the given object. 18 | - (NSArray *)mtl_arrayByRemovingObject:(id)object; 19 | 20 | /// Returns a new array without the first object. If the array is empty, it 21 | /// returns the empty array. 22 | - (NSArray *)mtl_arrayByRemovingFirstObject; 23 | 24 | /// Returns a new array without the last object. If the array is empty, it 25 | /// returns the empty array. 26 | - (NSArray *)mtl_arrayByRemovingLastObject; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Mantle/Mantle-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "Mantle.h" 14 | #import "MTLJSONAdapter.h" 15 | #import "MTLModel+NSCoding.h" 16 | #import "MTLModel.h" 17 | #import "MTLReflection.h" 18 | #import "MTLTransformerErrorHandling.h" 19 | #import "MTLValueTransformer.h" 20 | #import "NSArray+MTLManipulationAdditions.h" 21 | #import "NSDictionary+MTLJSONKeyPath.h" 22 | #import "NSDictionary+MTLManipulationAdditions.h" 23 | #import "NSDictionary+MTLMappingAdditions.h" 24 | #import "NSError+MTLModelException.h" 25 | #import "NSObject+MTLComparisonAdditions.h" 26 | #import "NSValueTransformer+MTLInversionAdditions.h" 27 | #import "NSValueTransformer+MTLPredefinedTransformerAdditions.h" 28 | 29 | FOUNDATION_EXPORT double MantleVersionNumber; 30 | FOUNDATION_EXPORT const unsigned char MantleVersionString[]; 31 | 32 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/UIButton+KZWButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIButton+KZWButton.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/4/19. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSUInteger, KZWButtonType) { 12 | KZWButtonTypeLine, 13 | KZWButtonTypeBG, 14 | KZWButtonTypeCancel, 15 | KZWButtonTypeDefault 16 | }; 17 | 18 | typedef NS_ENUM(NSInteger, ZXImagePosition) { 19 | ZXImagePositionLeft = 0, //图片在左,文字在右,默认 20 | ZXImagePositionRight = 1, //图片在右,文字在左 21 | ZXImagePositionTop = 2, //图片在上,文字在下 22 | ZXImagePositionBottom = 3, //图片在下,文字在上 23 | }; 24 | 25 | @interface UIButton (KZWButton) 26 | 27 | - (instancetype)initWithType:(KZWButtonType)buttonTYpe normalTitle:(NSString *)normalTitle titleFont:(CGFloat)titleFont cornerRadius:(NSInteger)cornerRadius; 28 | 29 | - (void)setImagePosition:(ZXImagePosition)postion spacing:(CGFloat)spacing; 30 | 31 | - (void)setImagePosition:(ZXImagePosition)postion WithMargin:(CGFloat)margin; 32 | 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/ViewController+MASAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+MASAdditions.h 3 | // Masonry 4 | // 5 | // Created by Craig Siemens on 2015-06-23. 6 | // 7 | // 8 | 9 | #import "MASUtilities.h" 10 | #import "MASConstraintMaker.h" 11 | #import "MASViewAttribute.h" 12 | 13 | #ifdef MAS_VIEW_CONTROLLER 14 | 15 | @interface MAS_VIEW_CONTROLLER (MASAdditions) 16 | 17 | /** 18 | * following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute 19 | */ 20 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide; 21 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide; 22 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop; 23 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom; 24 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop; 25 | @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom; 26 | 27 | 28 | @end 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshHeader.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // MJRefreshHeader.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/4. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 下拉刷新控件:负责监控用户下拉的状态 9 | 10 | #import "MJRefreshComponent.h" 11 | 12 | @interface MJRefreshHeader : MJRefreshComponent 13 | /** 创建header */ 14 | + (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; 15 | /** 创建header */ 16 | + (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; 17 | 18 | /** 这个key用来存储上一次下拉刷新成功的时间 */ 19 | @property (copy, nonatomic) NSString *lastUpdatedTimeKey; 20 | /** 上一次下拉刷新成功的时间 */ 21 | @property (strong, nonatomic, readonly) NSDate *lastUpdatedTime; 22 | 23 | /** 忽略多少scrollView的contentInset的top */ 24 | @property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop; 25 | @end 26 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/RSA.h: -------------------------------------------------------------------------------- 1 | /* 2 | @author: ideawu 3 | @link: https://github.com/ideawu/Objective-C-RSA 4 | */ 5 | 6 | #import 7 | 8 | @interface RSA : NSObject 9 | 10 | // return base64 encoded string 11 | + (NSString *)encryptString:(NSString *)str publicKey:(NSString *)pubKey; 12 | // return raw data 13 | + (NSData *)encryptData:(NSData *)data publicKey:(NSString *)pubKey; 14 | // return base64 encoded string 15 | // enc with private key NOT working YET! 16 | //+ (NSString *)encryptString:(NSString *)str privateKey:(NSString *)privKey; 17 | // return raw data 18 | //+ (NSData *)encryptData:(NSData *)data privateKey:(NSString *)privKey; 19 | 20 | // decrypt base64 encoded string, convert result to string(not base64 encoded) 21 | + (NSString *)decryptString:(NSString *)str publicKey:(NSString *)pubKey; 22 | + (NSData *)decryptData:(NSData *)data publicKey:(NSString *)pubKey; 23 | + (NSString *)decryptString:(NSString *)str privateKey:(NSString *)privKey; 24 | + (NSData *)decryptData:(NSData *)data privateKey:(NSString *)privKey; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIApplication+ELMFoundation.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIApplication+ELMFoundation.m 3 | // ELMFoundation 4 | // 5 | // Created by Andy on 4/20/15. 6 | // Copyright (c) 2015 eleme. All rights reserved. 7 | // 8 | 9 | #import "UIApplication+ELMFoundation.h" 10 | 11 | @implementation UIApplication (ELMFoundation) 12 | 13 | + (NSString *)elm_version { 14 | return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; 15 | } 16 | 17 | + (NSString *)elm_bundleID { 18 | return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"]; 19 | } 20 | 21 | + (NSString *)elm_userAgent { 22 | return [NSMutableString stringWithString:[[UIWebView new] stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"]]; 23 | } 24 | 25 | + (void)elm_clearAllLocalNotifications { 26 | [[UIApplication sharedApplication] setApplicationIconBadgeNumber:1]; 27 | [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; 28 | [[UIApplication sharedApplication] cancelAllLocalNotifications]; 29 | } 30 | 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIView+KZWCore.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+KZWCore.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/3/15. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (KZWCore) 12 | 13 | /** 14 | * 设置部分圆角(绝对布局) 15 | * 16 | * @param corners 需要设置为圆角的角 UIRectCornerTopLeft | UIRectCornerTopRight | UIRectCornerBottomLeft | UIRectCornerBottomRight | UIRectCornerAllCorners 17 | * @param radii 需要设置的圆角大小 例如 CGSizeMake(20.0f, 20.0f) 18 | */ 19 | - (void)addRoundedCorners:(UIRectCorner)corners 20 | withRadii:(CGSize)radii; 21 | /** 22 | * 设置部分圆角(相对布局) 23 | * 24 | * @param corners 需要设置为圆角的角 UIRectCornerTopLeft | UIRectCornerTopRight | UIRectCornerBottomLeft | UIRectCornerBottomRight | UIRectCornerAllCorners 25 | * @param radii 需要设置的圆角大小 例如 CGSizeMake(20.0f, 20.0f) 26 | * @param rect 需要设置的圆角view的rect 27 | */ 28 | - (void)addRoundedCorners:(UIRectCorner)corners 29 | withRadii:(CGSize)radii 30 | viewRect:(CGRect)rect; 31 | 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWJpushModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWJpushModel.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/1/10. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "LPDBModel.h" 10 | #import 11 | 12 | @interface KZWJpushInfoModel : LPDBModel 13 | 14 | @property (nonatomic, copy) NSString *messageContent; 15 | @property (nonatomic, copy) NSString *userName; 16 | @property (nonatomic, assign) NSInteger sysType; 17 | @property (nonatomic, assign) BOOL isRedirct; 18 | @property (nonatomic, copy) NSString *targetUrl; 19 | @property (nonatomic, assign) NSInteger backMessageType; 20 | @property (nonatomic, copy) NSString *createdTime; 21 | 22 | @end 23 | 24 | @interface KZWJpushAps : LPDBModel 25 | 26 | @property (copy, nonatomic) NSString *sound; 27 | @property (copy, nonatomic) NSString *alert; 28 | @property (assign, nonatomic) NSInteger badge; 29 | 30 | @end 31 | 32 | @interface KZWJpushModel : LPDBModel 33 | 34 | @property (copy, nonatomic) NSString *extInfo; 35 | @property (copy, nonatomic) KZWJpushAps *aps; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJRefresh.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIScrollView+MJRefresh.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/4. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 给ScrollView增加下拉刷新、上拉刷新的功能 9 | 10 | #import 11 | #import "MJRefreshConst.h" 12 | 13 | @class MJRefreshHeader, MJRefreshFooter; 14 | 15 | @interface UIScrollView (MJRefresh) 16 | /** 下拉刷新控件 */ 17 | @property (strong, nonatomic) MJRefreshHeader *mj_header; 18 | @property (strong, nonatomic) MJRefreshHeader *header MJRefreshDeprecated("使用mj_header"); 19 | /** 上拉刷新控件 */ 20 | @property (strong, nonatomic) MJRefreshFooter *mj_footer; 21 | @property (strong, nonatomic) MJRefreshFooter *footer MJRefreshDeprecated("使用mj_footer"); 22 | 23 | #pragma mark - other 24 | - (NSInteger)mj_totalDataCount; 25 | @property (copy, nonatomic) void (^mj_reloadDataBlock)(NSInteger totalDataCount); 26 | @end 27 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSArray+MTLManipulationAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MTLManipulationAdditions.m 3 | // Mantle 4 | // 5 | // Created by Josh Abernathy on 9/19/12. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSArray+MTLManipulationAdditions.h" 10 | 11 | @interface NSArray (MTLDeclarations) 12 | 13 | // This declaration is needed so Mantle can be compiled with SDK 6 / 10.8. 14 | - (id)firstObject; 15 | 16 | @end 17 | 18 | @implementation NSArray (MTLManipulationAdditions) 19 | 20 | - (id)mtl_firstObject { 21 | return self.firstObject; 22 | } 23 | 24 | - (instancetype)mtl_arrayByRemovingObject:(id)object { 25 | NSMutableArray *result = [self mutableCopy]; 26 | [result removeObject:object]; 27 | return result; 28 | } 29 | 30 | - (instancetype)mtl_arrayByRemovingFirstObject { 31 | if (self.count == 0) return self; 32 | 33 | return [self subarrayWithRange:NSMakeRange(1, self.count - 1)]; 34 | } 35 | 36 | - (instancetype)mtl_arrayByRemovingLastObject { 37 | if (self.count == 0) return self; 38 | 39 | return [self subarrayWithRange:NSMakeRange(0, self.count - 1)]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIControl+Block.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIControl+Block.h 3 | // LPDAdditions 4 | // 5 | // Created by foxsofter on 15/2/23. 6 | // Copyright (c) 2015年 foxsofter. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIControl (Block) 12 | 13 | - (void)touchDown:(void (^)(void))eventBlock; 14 | 15 | - (void)touchDownRepeat:(void (^)(void))eventBlock; 16 | 17 | - (void)touchDragInside:(void (^)(void))eventBlock; 18 | 19 | - (void)touchDragOutside:(void (^)(void))eventBlock; 20 | 21 | - (void)touchDragEnter:(void (^)(void))eventBlock; 22 | 23 | - (void)touchDragExit:(void (^)(void))eventBlock; 24 | 25 | - (void)touchUpInside:(void (^)(void))eventBlock; 26 | 27 | - (void)touchUpOutside:(void (^)(void))eventBlock; 28 | 29 | - (void)touchCancel:(void (^)(void))eventBlock; 30 | 31 | - (void)valueChanged:(void (^)(void))eventBlock; 32 | 33 | - (void)editingDidBegin:(void (^)(void))eventBlock; 34 | 35 | - (void)editingChanged:(void (^)(void))eventBlock; 36 | 37 | - (void)editingDidEnd:(void (^)(void))eventBlock; 38 | 39 | - (void)editingDidEndOnExit:(void (^)(void))eventBlock; 40 | 41 | @end -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 ouyrp 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/Pods/MBProgressHUD/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright © 2009-2016 Matej Bukovinski 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSDictionary+MTLJSONKeyPath.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+MTLJSONKeyPath.h 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 19/03/14. 6 | // Copyright (c) 2014 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSDictionary (MTLJSONKeyPath) 12 | 13 | /// Looks up the value of a key path in the receiver. 14 | /// 15 | /// JSONKeyPath - The key path that should be resolved. Every element along this 16 | /// key path needs to be an instance of NSDictionary for the 17 | /// resolving to be successful. 18 | /// success - If not NULL, this will be set to a boolean indicating whether 19 | /// the key path was resolved successfully. 20 | /// error - If not NULL, this may be set to an error that occurs during 21 | /// resolving the value. 22 | /// 23 | /// Returns the value for the key path which may be nil. Clients should inspect 24 | /// the success parameter to decide how to proceed with the result. 25 | - (id)mtl_valueForJSONKeyPath:(NSString *)JSONKeyPath success:(BOOL *)success error:(NSError **)error; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /Example/Pods/SAMKeychain/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2016 Sam Soffes, http://soff.es 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "MJRefreshAutoFooter.h" 14 | #import "MJRefreshBackFooter.h" 15 | #import "MJRefreshComponent.h" 16 | #import "MJRefreshFooter.h" 17 | #import "MJRefreshHeader.h" 18 | #import "MJRefreshAutoGifFooter.h" 19 | #import "MJRefreshAutoNormalFooter.h" 20 | #import "MJRefreshAutoStateFooter.h" 21 | #import "MJRefreshBackGifFooter.h" 22 | #import "MJRefreshBackNormalFooter.h" 23 | #import "MJRefreshBackStateFooter.h" 24 | #import "MJRefreshGifHeader.h" 25 | #import "MJRefreshNormalHeader.h" 26 | #import "MJRefreshStateHeader.h" 27 | #import "MJRefresh.h" 28 | #import "MJRefreshConst.h" 29 | #import "NSBundle+MJRefresh.h" 30 | #import "UIScrollView+MJExtension.h" 31 | #import "UIScrollView+MJRefresh.h" 32 | #import "UIView+MJExtension.h" 33 | 34 | FOUNDATION_EXPORT double MJRefreshVersionNumber; 35 | FOUNDATION_EXPORT const unsigned char MJRefreshVersionString[]; 36 | 37 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSError+LPDErrorMessage.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSError+LPDErrorMessage.h 3 | // LPDCrowdsource 4 | // 5 | // Created by 沈强 on 16/3/7. 6 | // Copyright © 2016年 elm. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | static NSString *LPDBNetworkErrorDomain = @"LPDBNetworkErrorDomain"; 12 | 13 | static NSString *LPDBNetworkUserMessage = @"userErrorMessage"; 14 | 15 | static NSString *LPDBNetworkBusinessErrorCode = @"businessErrorCode"; 16 | 17 | typedef NS_ENUM(NSUInteger, LPDBNeteworkErrorCode) { 18 | LPDBNeteworkResponseDataError = 300, 19 | LPDBNeteworkBusinessError = 500, 20 | }; 21 | 22 | @interface NSError (LPDBErrorMessage) 23 | 24 | /** 25 | * 用户错误提示信息 26 | * 27 | * 28 | */ 29 | - (NSString *)message; 30 | 31 | /** 32 | * 用户业务逻辑错误信息 33 | * 34 | * 35 | */ 36 | - (NSString *)businessMessage; 37 | 38 | /** 39 | * 用户业务逻辑错误信息 40 | * 41 | * @param defaultMessage 当用户业务逻辑错误信息 是空的时候,返回默认值 42 | * 43 | * 44 | */ 45 | - (NSString *)businessMessage:(NSString *)defaultMessage; 46 | 47 | 48 | /** 49 | * 用户业务逻辑错误code 50 | * 51 | * 52 | */ 53 | - (NSString *)businessErrorCode; 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/ZYImageCacheManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZYImageCacheManager.h 3 | // 米庄理财 4 | // 5 | // Created by aicai on 15/7/24. 6 | // Copyright (c) 2015年 aicai. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | typedef void (^complete)(UIImage *image); //处理图片下载完成后的操作 12 | 13 | //用这个单例类管理我们缓存的图片 14 | @interface ZYImageCacheManager : NSObject 15 | 16 | //单例类的入口 17 | + (instancetype)sharedImageCacheManager; 18 | 19 | //从内存中加载图片 20 | - (UIImage *)imageFromDictionary:(NSString *)key; 21 | 22 | //从本地加载图片 23 | - (UIImage *)imageFromLocal:(NSString *)urlString; 24 | 25 | //从网络加载图片,因为是异步下载,方法结束的时候图片还没有下载完成,我们没有数据返回 26 | - (void)imageFromNetwork:(NSString *)urlString complete:(complete)complete; 27 | 28 | // 从网络或者缓存中获取图片 29 | - (void)getImageWithUrl:(NSString *)urlString complete:(complete)complete; 30 | 31 | //保存图片到内存中 32 | - (void)setImage:(UIImage *)image withURL:(NSString *)urlString; 33 | 34 | //保存图片到本地 35 | - (void)saveImage:(UIImage *)image withURL:(NSString *)urlString; 36 | 37 | //返回本地缓存的图片总大小,单位是M 38 | - (long long)imageCacheSize; 39 | 40 | //清楚本地的图片缓存 41 | - (void)clearImageCaches; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/Pods/AFNetworking/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2016 Alamofire Software Foundation (http://alamofire.org/) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWJavascripModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWJavascripModel.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/5/16. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "LPDBModel.h" 10 | #import 11 | 12 | @class KZWShareModel; 13 | 14 | @interface KZWJavascripModel : LPDBModel 15 | 16 | @property (copy, nonatomic) NSString *leftImg; 17 | @property (copy, nonatomic) NSString *titleBg; 18 | @property (copy, nonatomic) NSString *rightImg; 19 | @property (copy, nonatomic) NSString *rightStr; 20 | @property (copy, nonatomic) NSString *rightUrl; 21 | @property (assign, nonatomic) BOOL isNeedLogin; 22 | @property (strong, nonatomic) KZWShareModel *shareContent; 23 | 24 | @end 25 | 26 | @interface KZWShareModel : LPDBModel 27 | 28 | @property (copy, nonatomic) NSString *url; 29 | @property (copy, nonatomic) NSString *title; 30 | @property (copy, nonatomic) NSString *content; 31 | @property (copy, nonatomic) NSString *imageUrl; 32 | 33 | @end 34 | 35 | @interface KZWWebControllerModel : LPDBModel 36 | 37 | @property (nonatomic, copy) NSString *controllerName; 38 | @property (nonatomic, assign) NSInteger pid; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/AFNetworking/AFNetworking-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "AFNetworking.h" 14 | #import "AFHTTPSessionManager.h" 15 | #import "AFURLSessionManager.h" 16 | #import "AFCompatibilityMacros.h" 17 | #import "AFNetworkReachabilityManager.h" 18 | #import "AFSecurityPolicy.h" 19 | #import "AFURLRequestSerialization.h" 20 | #import "AFURLResponseSerialization.h" 21 | #import "AFAutoPurgingImageCache.h" 22 | #import "AFImageDownloader.h" 23 | #import "AFNetworkActivityIndicatorManager.h" 24 | #import "UIActivityIndicatorView+AFNetworking.h" 25 | #import "UIButton+AFNetworking.h" 26 | #import "UIImage+AFNetworking.h" 27 | #import "UIImageView+AFNetworking.h" 28 | #import "UIKit+AFNetworking.h" 29 | #import "UIProgressView+AFNetworking.h" 30 | #import "UIRefreshControl+AFNetworking.h" 31 | #import "UIWebView+AFNetworking.h" 32 | 33 | FOUNDATION_EXPORT double AFNetworkingVersionNumber; 34 | FOUNDATION_EXPORT const unsigned char AFNetworkingVersionString[]; 35 | 36 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSDictionary+MTLManipulationAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+MTLManipulationAdditions.m 3 | // Mantle 4 | // 5 | // Created by Justin Spahr-Summers on 2012-09-24. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSDictionary+MTLManipulationAdditions.h" 10 | 11 | @implementation NSDictionary (MTLManipulationAdditions) 12 | 13 | - (NSDictionary *)mtl_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary { 14 | NSMutableDictionary *result = [self mutableCopy]; 15 | [result addEntriesFromDictionary:dictionary]; 16 | return result; 17 | } 18 | 19 | - (NSDictionary *)mtl_dictionaryByRemovingValuesForKeys:(NSArray *)keys { 20 | NSMutableDictionary *result = [self mutableCopy]; 21 | [result removeObjectsForKeys:keys]; 22 | return result; 23 | } 24 | 25 | @end 26 | 27 | @implementation NSDictionary (MTLManipulationAdditions_Deprecated) 28 | 29 | #pragma clang diagnostic push 30 | #pragma clang diagnostic ignored "-Wdeprecated" 31 | 32 | - (NSDictionary *)mtl_dictionaryByRemovingEntriesWithKeys:(NSSet *)keys { 33 | return [self mtl_dictionaryByRemovingValuesForKeys:keys.allObjects]; 34 | } 35 | 36 | #pragma clang diagnostic pop 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSError+MTLModelException.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSError+MTLModelException.m 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 7/6/13. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import "MTLModel.h" 10 | 11 | #import "NSError+MTLModelException.h" 12 | 13 | // The domain for errors originating from MTLModel. 14 | static NSString * const MTLModelErrorDomain = @"MTLModelErrorDomain"; 15 | 16 | // An exception was thrown and caught. 17 | static const NSInteger MTLModelErrorExceptionThrown = 1; 18 | 19 | // Associated with the NSException that was caught. 20 | static NSString * const MTLModelThrownExceptionErrorKey = @"MTLModelThrownException"; 21 | 22 | @implementation NSError (MTLModelException) 23 | 24 | + (instancetype)mtl_modelErrorWithException:(NSException *)exception { 25 | NSParameterAssert(exception != nil); 26 | 27 | NSDictionary *userInfo = @{ 28 | NSLocalizedDescriptionKey: exception.description, 29 | NSLocalizedFailureReasonErrorKey: exception.reason, 30 | MTLModelThrownExceptionErrorKey: exception 31 | }; 32 | 33 | return [NSError errorWithDomain:MTLModelErrorDomain code:MTLModelErrorExceptionThrown userInfo:userInfo]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSDictionary+MTLManipulationAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+MTLManipulationAdditions.h 3 | // Mantle 4 | // 5 | // Created by Justin Spahr-Summers on 2012-09-24. 6 | // Copyright (c) 2012 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSDictionary (MTLManipulationAdditions) 12 | 13 | /// Merges the keys and values from the given dictionary into the receiver. If 14 | /// both the receiver and `dictionary` have a given key, the value from 15 | /// `dictionary` is used. 16 | /// 17 | /// Returns a new dictionary containing the entries of the receiver combined with 18 | /// those of `dictionary`. 19 | - (NSDictionary *)mtl_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary; 20 | 21 | /// Creates a new dictionary with all the entries for the given keys removed from 22 | /// the receiver. 23 | - (NSDictionary *)mtl_dictionaryByRemovingValuesForKeys:(NSArray *)keys; 24 | 25 | @end 26 | 27 | @interface NSDictionary (MTLManipulationAdditions_Deprecated) 28 | 29 | - (NSDictionary *)mtl_dictionaryByRemovingEntriesWithKeys:(NSSet *)keys __attribute__((deprecated("Replaced by -mtl_dictionaryByRemovingValuesForKeys:"))); 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/NSArray+MASShorthandAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSArray+MASShorthandAdditions.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 22/07/13. 6 | // Copyright (c) 2013 Jonas Budelmann. All rights reserved. 7 | // 8 | 9 | #import "NSArray+MASAdditions.h" 10 | 11 | #ifdef MAS_SHORTHAND 12 | 13 | /** 14 | * Shorthand array additions without the 'mas_' prefixes, 15 | * only enabled if MAS_SHORTHAND is defined 16 | */ 17 | @interface NSArray (MASShorthandAdditions) 18 | 19 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *make))block; 20 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *make))block; 21 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *make))block; 22 | 23 | @end 24 | 25 | @implementation NSArray (MASShorthandAdditions) 26 | 27 | - (NSArray *)makeConstraints:(void(^)(MASConstraintMaker *))block { 28 | return [self mas_makeConstraints:block]; 29 | } 30 | 31 | - (NSArray *)updateConstraints:(void(^)(MASConstraintMaker *))block { 32 | return [self mas_updateConstraints:block]; 33 | } 34 | 35 | - (NSArray *)remakeConstraints:(void(^)(MASConstraintMaker *))block { 36 | return [self mas_remakeConstraints:block]; 37 | } 38 | 39 | @end 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSObject+LPDAssociatedObject.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+LPDAssociatedObject.m 3 | // LPDAdditions 4 | // 5 | // Created by foxsofter on 15/2/23. 6 | // Copyright (c) 2015年 foxsofter. All rights reserved. 7 | // 8 | 9 | #import "NSObject+LPDAssociatedObject.h" 10 | #import 11 | 12 | @implementation NSObject (AssociatedObject) 13 | 14 | - (id)object:(SEL)key { 15 | return objc_getAssociatedObject(self, key); 16 | } 17 | 18 | - (void)setAssignObject:(id)object withKey:(SEL)key { 19 | objc_setAssociatedObject(self, key, object, OBJC_ASSOCIATION_ASSIGN); 20 | } 21 | 22 | - (void)setRetainNonatomicObject:(id)object withKey:(SEL)key { 23 | objc_setAssociatedObject(self, key, object, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 24 | } 25 | 26 | - (void)setCopyNonatomicObject:(id)object withKey:(SEL)key { 27 | objc_setAssociatedObject(self, key, object, OBJC_ASSOCIATION_COPY_NONATOMIC); 28 | } 29 | 30 | - (void)setRetainObject:(id)object withKey:(SEL)key { 31 | objc_setAssociatedObject(self, key, object, OBJC_ASSOCIATION_RETAIN); 32 | } 33 | 34 | - (void)setCopyObject:(id)object withKey:(SEL)key { 35 | objc_setAssociatedObject(self, key, object, OBJC_ASSOCIATION_COPY); 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSString+KZWData.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+KZWData.h 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/3/23. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface NSString (KZWData) 13 | 14 | + (NSString *)stringWithData:(NSInteger)time; 15 | 16 | + (NSString *)stringWithDay:(NSInteger)time; 17 | 18 | + (NSString *)stringWithHour:(NSInteger)time; 19 | 20 | + (NSString *)getCurrentTimestamp; 21 | 22 | - (NSString *)md5; 23 | 24 | - (NSString *)smsmd5; 25 | 26 | - (NSString *)kzw_urlEncode; 27 | 28 | - (NSString *)kzw_urlDecode; 29 | 30 | + (NSMutableAttributedString *)attWithString:(NSString *)string imageName:(NSString *)imageName; 31 | 32 | + (NSMutableAttributedString *)attWithString:(NSString *)string lastImageName:(NSString *)imageName; 33 | 34 | + (NSMutableAttributedString *)attWithString:(NSString *)string color:(UIColor *)color font:(CGFloat)font rang:(NSRange)rang; 35 | 36 | - (BOOL)validateMobile; 37 | - (BOOL)validateEmail; 38 | - (BOOL)validatePassword; 39 | - (BOOL)validateIdentityCard; 40 | - (BOOL)validateBankCardNumCheck; 41 | - (BOOL)validateTextField; 42 | - (BOOL)validateMoney; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/NSError+LPDErrorMessage.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSError+LPDErrorMessage.m 3 | // LPDCrowdsource 4 | // 5 | // Created by 沈强 on 16/3/7. 6 | // Copyright © 2016年 elm. All rights reserved. 7 | // 8 | 9 | #import "NSError+LPDErrorMessage.h" 10 | 11 | @implementation NSError (LPDErrorMessage) 12 | - (NSString *)message { 13 | NSDictionary *userInfo = self.userInfo; 14 | return userInfo[LPDBNetworkUserMessage] ? userInfo[LPDBNetworkUserMessage] : @"服务异常"; 15 | } 16 | 17 | - (NSString *)businessMessage { 18 | if (self.code == LPDBNeteworkBusinessError) { 19 | NSDictionary *userInfo = self.userInfo; 20 | return userInfo[LPDBNetworkUserMessage]; 21 | } 22 | return nil; 23 | } 24 | 25 | - (NSString *)businessMessage:(NSString *)defaultMessage { 26 | if (self.code == LPDBNeteworkBusinessError) { 27 | NSDictionary *userInfo = self.userInfo; 28 | return userInfo[LPDBNetworkUserMessage]; 29 | } 30 | return defaultMessage; 31 | } 32 | 33 | - (NSString *)businessErrorCode { 34 | if (self.code == LPDBNeteworkBusinessError) { 35 | NSDictionary *userInfo = self.userInfo; 36 | return userInfo[LPDBNetworkBusinessErrorCode]; 37 | } 38 | return nil; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWNoPasteTextField.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWTextField.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/5/26. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWNoPasteTextField.h" 10 | 11 | @implementation KZWNoPasteTextField 12 | 13 | - (instancetype)initWithFrame:(CGRect)frame font:(CGFloat)font keyboardType:(UIKeyboardType)keyboardType placeholder:(NSString *)placeholder { 14 | if (self = [super initWithFrame:frame]) { 15 | self.font = [UIFont systemFontOfSize:font]; 16 | self.backgroundColor = [UIColor clearColor]; 17 | self.textAlignment = NSTextAlignmentLeft; 18 | self.clearButtonMode = UITextFieldViewModeWhileEditing; 19 | self.keyboardType = keyboardType; 20 | self.placeholder = placeholder; 21 | self.textColor = [UIColor whiteColor]; 22 | } 23 | return self; 24 | } 25 | 26 | - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { 27 | if (action == @selector(paste:)) //禁止粘贴 28 | return NO; 29 | if (action == @selector(select:)) // 禁止选择 30 | return NO; 31 | if (action == @selector(selectAll:)) // 禁止全选 32 | return NO; 33 | return [super canPerformAction:action withSender:sender]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/KZWFoundation.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "KZWFoundation", 3 | "version": "2.0.0", 4 | "summary": "iOS 基本库", 5 | "description": "iOS基本库", 6 | "homepage": "https://github.com/ouyrp/KZWFoundation", 7 | "license": "MIT", 8 | "authors": { 9 | "ouyang": "1697006288@qq.com" 10 | }, 11 | "platforms": { 12 | "ios": "8.0" 13 | }, 14 | "source": { 15 | "git": "https://github.com/ouyrp/KZWFoundation.git", 16 | "tag": "2.0.0" 17 | }, 18 | "source_files": "KZWFoundation/Classes/KZWFoundationHear.h", 19 | "dependencies": { 20 | "Masonry": [ 21 | 22 | ], 23 | "MJRefresh": [ 24 | 25 | ], 26 | "AFNetworking": [ 27 | 28 | ], 29 | "Mantle": [ 30 | 31 | ], 32 | "MBProgressHUD": [ 33 | 34 | ], 35 | "SAMKeychain": [ 36 | 37 | ], 38 | "dsBridge": [ 39 | 40 | ] 41 | }, 42 | "subspecs": [ 43 | { 44 | "name": "Content", 45 | "source_files": "KZWFoundation/Classes/**/*", 46 | "resource_bundles": { 47 | "KZWFundation": "KZWFoundation/Assets/*" 48 | }, 49 | "exclude_files": "KZWFoundation/Classes/KZWFoundationHear.h", 50 | "frameworks": [ 51 | "MapKit", 52 | "WebKit", 53 | "AudioToolbox" 54 | ] 55 | } 56 | ] 57 | } 58 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // MJRefreshFooter.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/5. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 上拉刷新控件 9 | 10 | #import "MJRefreshComponent.h" 11 | 12 | @interface MJRefreshFooter : MJRefreshComponent 13 | /** 创建footer */ 14 | + (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; 15 | /** 创建footer */ 16 | + (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; 17 | 18 | /** 提示没有更多的数据 */ 19 | - (void)endRefreshingWithNoMoreData; 20 | - (void)noticeNoMoreData MJRefreshDeprecated("使用endRefreshingWithNoMoreData"); 21 | 22 | /** 重置没有更多的数据(消除没有更多数据的状态) */ 23 | - (void)resetNoMoreData; 24 | 25 | /** 忽略多少scrollView的contentInset的bottom */ 26 | @property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom; 27 | 28 | /** 自动根据有无数据来显示和隐藏(有数据就显示,没有数据隐藏。默认是NO) */ 29 | @property (assign, nonatomic, getter=isAutomaticallyHidden) BOOL automaticallyHidden MJRefreshDeprecated("不建议使用此属性,开发者请自行控制footer的显示和隐藏。基于安全考虑,在未来的某些版本此属性可能作废"); 30 | @end 31 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWPasswordTextView.h: -------------------------------------------------------------------------------- 1 | // 2 | // PassWordTextView.h 3 | // TextFieldTest 4 | // 5 | // Created by Tpphha on 15/12/16. 6 | // Copyright © 2015年 Tpphha. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface KZWPasswordTextView : UIView 12 | 13 | /** 14 | the password is user inputed 15 | */ 16 | @property (nonatomic, copy) void (^passwordDidChangeBlock)(NSString *password); 17 | 18 | /** 19 | set element count, default is 4, remove all elements and creat new elemets when it was set 20 | */ 21 | @property (nonatomic, assign) NSInteger elementCount; 22 | 23 | /** 24 | set element color, default is balck color 25 | */ 26 | @property (nonatomic, strong) UIColor *elementBorderColor; 27 | 28 | /** 29 | set element margein, default is 4 point 30 | */ 31 | @property (nonatomic, assign) CGFloat elementMargin; 32 | 33 | /** 34 | auto hide the keyboard when input password was completed, default is YES 35 | */ 36 | @property (nonatomic, assign) BOOL autoHideKeyboard; 37 | 38 | /** 39 | set element border width, default's 1 point 40 | */ 41 | @property (nonatomic, assign) CGFloat elementBorderWidth; 42 | 43 | /** 44 | clear all password 45 | */ 46 | - (void)clearPassword; 47 | 48 | 49 | - (void)showKeyboard; 50 | 51 | - (void)hideKeyboard; 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KZWFoundation 2 | 3 | [![CI Status](https://img.shields.io/travis/ouyrp/KZWFoundation.svg?style=flat)](https://travis-ci.org/ouyrp/KZWFoundation) 4 | [![Version](https://img.shields.io/cocoapods/v/KZWFoundation.svg?style=flat)](https://cocoapods.org/pods/KZWFoundation) 5 | [![License](https://img.shields.io/cocoapods/l/KZWFoundation.svg?style=flat)](https://cocoapods.org/pods/KZWFoundation) 6 | [![Platform](https://img.shields.io/cocoapods/p/KZWFoundation.svg?style=flat)](https://cocoapods.org/pods/KZWFoundation) 7 | 8 | ## Example 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Requirements 13 | 14 | ## Installation 15 | 16 | KZWFoundation is available through [CocoaPods](https://cocoapods.org). To install 17 | it, simply add the following line to your Podfile: 18 | 19 | ```ruby 20 | pod 'KZWFoundation' 21 | ``` 22 | 23 | ## 1.简介 24 | 25 | KZWFoundation 是一套通用iOS框架 26 | 27 | ## 2使用说明 28 | 29 | ### 2.1依赖配置 30 | 31 | 导入头文件```#import ``` 32 | 33 | ### 2.2 使用方法 34 | 35 | [使用说明--简书](https://www.jianshu.com/u/266302c54057) 36 | [使用说明--掘金](https://juejin.im/user/5a322782f265da430406a30e/posts) 37 | 38 | ## Author 39 | 40 | ouyangjay, mooncoder@163.com 41 | 42 | ## License 43 | 44 | KZWFoundation is available under the MIT license. See the LICENSE file for more info. 45 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/MTLReflection.h: -------------------------------------------------------------------------------- 1 | // 2 | // MTLReflection.h 3 | // Mantle 4 | // 5 | // Created by Justin Spahr-Summers on 2013-03-12. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /// Creates a selector from a key and a constant string. 12 | /// 13 | /// key - The key to insert into the generated selector. This key should be in 14 | /// its natural case. 15 | /// suffix - A string to append to the key as part of the selector. 16 | /// 17 | /// Returns a selector, or NULL if the input strings cannot form a valid 18 | /// selector. 19 | SEL MTLSelectorWithKeyPattern(NSString *key, const char *suffix) __attribute__((pure, nonnull(1, 2))); 20 | 21 | /// Creates a selector from a key and a constant prefix and suffix. 22 | /// 23 | /// prefix - A string to prepend to the key as part of the selector. 24 | /// key - The key to insert into the generated selector. This key should be in 25 | /// its natural case, and will have its first letter capitalized when 26 | /// inserted. 27 | /// suffix - A string to append to the key as part of the selector. 28 | /// 29 | /// Returns a selector, or NULL if the input strings cannot form a valid 30 | /// selector. 31 | SEL MTLSelectorWithCapitalizedKeyPattern(const char *prefix, NSString *key, const char *suffix) __attribute__((pure, nonnull(1, 2, 3))); 32 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWDSJavaScripInterface.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWDSJavaScripInterface.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/5/4. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWDSJavaScripInterface.h" 10 | #import 11 | 12 | @implementation KZWDSJavaScripInterface 13 | 14 | - (void)share:(id)data { 15 | NSLog(@"data class: %@, body is %@", [data class], [data debugDescription]); 16 | NSError *error = nil; 17 | KZWShareModel *model = [MTLJSONAdapter modelOfClass:KZWShareModel.class fromJSONDictionary:data error:&error]; 18 | // [KZWShareService wxShareWithImages:@[model.imageUrl] shareTitle:model.title shareContent:model.content shareURLString:model.url response:^(id responseData) { 19 | // 20 | // }]; 21 | } 22 | 23 | - (void)setNavTitle:(id)data { 24 | NSError *error = nil; 25 | KZWJavascripModel *model = [MTLJSONAdapter modelOfClass:KZWJavascripModel.class fromJSONDictionary:data error:&error]; 26 | [self.delegate setNavTitl:model]; 27 | } 28 | 29 | //替换网页截取跳转,由网页自己来控制该跳原生的哪个界面 30 | - (void)openNativePage:(id)data { 31 | NSError *error = nil; 32 | KZWWebControllerModel *model = [MTLJSONAdapter modelOfClass:KZWWebControllerModel.class fromJSONDictionary:data error:&error]; 33 | //用router根据controllerName来进行相应的跳转,如果页面还包含其他必须参数在KZWWebControllerModel中添加即可 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/NetWork/LPDBRequestObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // LPDBRequestObject.h 3 | // LPDCrowdsource 4 | // 5 | // Created by sq on 15/11/4. 6 | // Copyright © 2015年 elm. All rights reserved. 7 | // 8 | #import "LPDBHttpManager.h" 9 | #import 10 | #import 11 | 12 | typedef NS_ENUM(NSUInteger, LPDHTTPMethod) { 13 | LPDHTTPMethodGet, 14 | LPDHTTPMethodPost, 15 | LPDHTTPMethodPut, 16 | LPDHTTPMethodDelete, 17 | LPDHTTPMethodImage, 18 | }; 19 | 20 | typedef void (^LPDBRequestComplete)(id object, NSError *error); 21 | 22 | @interface LPDBRequestObject : MTLModel 23 | 24 | 25 | @property (nonatomic, strong) NSString *path; 26 | 27 | /** 28 | * json 解析成的对象类名 当josn是数组时 表示数组对象的类名 29 | */ 30 | @property (nonatomic, strong) NSString *className; 31 | 32 | @property (nonatomic, strong) NSArray *images; 33 | 34 | @property (nonatomic, strong) UIImage *image; 35 | 36 | @property (nonatomic, copy) NSString *imageName; 37 | 38 | @property (nonatomic, strong) NSDictionary *paramDic; 39 | 40 | @property (nonatomic, assign) LPDHTTPMethod method; 41 | 42 | @property (nonatomic, readonly) NSURLSessionDataTask *task; 43 | 44 | - (void)startRequestComplete:(LPDBRequestComplete)complete; 45 | 46 | - (void)startRequestComplete:(LPDBRequestComplete)complete progress:(void (^)(NSProgress *uploadProgress))progress; 47 | 48 | - (void)cancel; 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASViewAttribute.m: -------------------------------------------------------------------------------- 1 | // 2 | // MASViewAttribute.m 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASViewAttribute.h" 10 | 11 | @implementation MASViewAttribute 12 | 13 | - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute { 14 | self = [self initWithView:view item:view layoutAttribute:layoutAttribute]; 15 | return self; 16 | } 17 | 18 | - (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute { 19 | self = [super init]; 20 | if (!self) return nil; 21 | 22 | _view = view; 23 | _item = item; 24 | _layoutAttribute = layoutAttribute; 25 | 26 | return self; 27 | } 28 | 29 | - (BOOL)isSizeAttribute { 30 | return self.layoutAttribute == NSLayoutAttributeWidth 31 | || self.layoutAttribute == NSLayoutAttributeHeight; 32 | } 33 | 34 | - (BOOL)isEqual:(MASViewAttribute *)viewAttribute { 35 | if ([viewAttribute isKindOfClass:self.class]) { 36 | return self.view == viewAttribute.view 37 | && self.layoutAttribute == viewAttribute.layoutAttribute; 38 | } 39 | return [super isEqual:viewAttribute]; 40 | } 41 | 42 | - (NSUInteger)hash { 43 | return MAS_NSUINTROTATE([self.view hash], MAS_NSUINT_BIT / 2) ^ self.layoutAttribute; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Router/KZWRouterHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWRouterHelper.h 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/15. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWWebViewController.h" 10 | #import "NSURL+ELMFoundation.h" 11 | #import 12 | 13 | #define KZW_WEBVIEW_PATH @"path" 14 | #define KZW_TITLE @"title" 15 | #define KZW_WEBVIEW_FULLURL @"fullUrl" 16 | #define KZW_NAV_BAR_HIDDEN @"fullScreen" 17 | #define KZW_WEBVIEW_TITLEBGCOLOR @"titleBgColor" 18 | #define KZWWebViewControllerRouterPath @"KZWWebViewController" 19 | #define KZW_Native_Back @"needBack" 20 | #define KZW_BACK_TYPE @"backType" 21 | 22 | 23 | #define KZW_NAV_HIDDEN(x) \ 24 | KZW_NAV_BAR_HIDDEN: \ 25 | @(x) 26 | 27 | #define LPD_ROUTER_URL(path, params) \ 28 | [NSString stringWithFormat:@"%@?%@", path, [NSURL elm_queryStringFromParameters:params]] 29 | 30 | 31 | @interface KZWRouterHelper : NSObject 32 | 33 | @property (nonatomic, weak) KZWWebViewController *webViewController; 34 | 35 | - (instancetype)initWithKZWWebViewController:(KZWWebViewController *)KZWWebViewController; 36 | 37 | + (void)userLogout; 38 | 39 | + (UIViewController *)rootController; 40 | 41 | + (UIViewController *)getCurrentVC; 42 | 43 | + (void)pushbyPath:(NSString *)path; 44 | 45 | + (UIViewController *)routeWebController:(NSString *)path navgtionBarHidden:(BOOL)hidden navigationTitle:(NSString *)string; 46 | 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASViewAttribute.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASViewAttribute.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 21/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASUtilities.h" 10 | 11 | /** 12 | * An immutable tuple which stores the view and the related NSLayoutAttribute. 13 | * Describes part of either the left or right hand side of a constraint equation 14 | */ 15 | @interface MASViewAttribute : NSObject 16 | 17 | /** 18 | * The view which the reciever relates to. Can be nil if item is not a view. 19 | */ 20 | @property (nonatomic, weak, readonly) MAS_VIEW *view; 21 | 22 | /** 23 | * The item which the reciever relates to. 24 | */ 25 | @property (nonatomic, weak, readonly) id item; 26 | 27 | /** 28 | * The attribute which the reciever relates to 29 | */ 30 | @property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute; 31 | 32 | /** 33 | * Convenience initializer. 34 | */ 35 | - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute; 36 | 37 | /** 38 | * The designated initializer. 39 | */ 40 | - (id)initWithView:(MAS_VIEW *)view item:(id)item layoutAttribute:(NSLayoutAttribute)layoutAttribute; 41 | 42 | /** 43 | * Determine whether the layoutAttribute is a size attribute 44 | * 45 | * @return YES if layoutAttribute is equal to NSLayoutAttributeWidth or NSLayoutAttributeHeight 46 | */ 47 | - (BOOL)isSizeAttribute; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Mantle" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain" "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation/KZWFoundation.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Mantle/Mantle.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain/SAMKeychain.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge/dsBridge.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UINavigationController+KZWBackButtonHandler.m: -------------------------------------------------------------------------------- 1 | // 2 | // UINavigationController+KZWBackButtonHandler.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/7/12. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "UINavigationController+KZWBackButtonHandler.h" 10 | 11 | @implementation UIViewController (ShouldPopOnBackButton) 12 | 13 | @end 14 | 15 | @implementation UINavigationController (KZWBackButtonHandler) 16 | 17 | - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item { 18 | 19 | if ([self.viewControllers count] < [navigationBar.items count]) { 20 | return YES; 21 | } 22 | 23 | BOOL shouldPop = YES; 24 | UIViewController *vc = [self topViewController]; 25 | if ([vc respondsToSelector:@selector(navigationShouldPopOnBackButton)]) { 26 | shouldPop = [vc navigationShouldPopOnBackButton]; 27 | } 28 | 29 | if (shouldPop) { 30 | dispatch_async(dispatch_get_main_queue(), ^{ 31 | [self popViewControllerAnimated:YES]; 32 | }); 33 | } else { 34 | // 取消 pop 后,复原返回按钮的状态 35 | for (UIView *subview in [navigationBar subviews]) { 36 | if (0. < subview.alpha && subview.alpha < 1.) { 37 | [UIView animateWithDuration:.25 animations:^{ 38 | subview.alpha = 1.; 39 | }]; 40 | } 41 | } 42 | } 43 | return NO; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Tests/Pods-KZWFoundation_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Mantle" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain" "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation/KZWFoundation.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Mantle/Mantle.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain/SAMKeychain.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge/dsBridge.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+AFNetworking.h 3 | // 4 | // 5 | // Created by Paulo Ferreira on 08/07/15. 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #if TARGET_OS_IOS || TARGET_OS_TV 26 | 27 | #import 28 | 29 | @interface UIImage (AFNetworking) 30 | 31 | + (UIImage*) safeImageWithData:(NSData*)data; 32 | 33 | @end 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/ViewController+MASAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+MASAdditions.m 3 | // Masonry 4 | // 5 | // Created by Craig Siemens on 2015-06-23. 6 | // 7 | // 8 | 9 | #import "ViewController+MASAdditions.h" 10 | 11 | #ifdef MAS_VIEW_CONTROLLER 12 | 13 | @implementation MAS_VIEW_CONTROLLER (MASAdditions) 14 | 15 | - (MASViewAttribute *)mas_topLayoutGuide { 16 | return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 17 | } 18 | - (MASViewAttribute *)mas_topLayoutGuideTop { 19 | return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeTop]; 20 | } 21 | - (MASViewAttribute *)mas_topLayoutGuideBottom { 22 | return [[MASViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 23 | } 24 | 25 | - (MASViewAttribute *)mas_bottomLayoutGuide { 26 | return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop]; 27 | } 28 | - (MASViewAttribute *)mas_bottomLayoutGuideTop { 29 | return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop]; 30 | } 31 | - (MASViewAttribute *)mas_bottomLayoutGuideBottom { 32 | return [[MASViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom]; 33 | } 34 | 35 | 36 | 37 | @end 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Config/KZWDebugService.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWDebugService.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/7/10. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWDebugService.h" 10 | #import "KZWConstants.h" 11 | 12 | @implementation KZWDebugService 13 | 14 | static id _debug = nil; 15 | 16 | + (id)currentDebug { 17 | @synchronized(self) { 18 | if (!_debug) { 19 | NSData *data = [[NSUserDefaults standardUserDefaults] objectForKey:KZWDEBUGKEY]; 20 | if (data) { 21 | _debug = [NSKeyedUnarchiver unarchiveObjectWithData:data]; 22 | } 23 | } 24 | } 25 | return _debug; 26 | } 27 | 28 | + (void)setCurrentDebug:(id)debug { 29 | @synchronized(self) { 30 | _debug = debug; 31 | } 32 | } 33 | 34 | + (void)saveDebug { 35 | @synchronized(self) { 36 | if (_debug == nil) { 37 | [[NSUserDefaults standardUserDefaults] removeObjectForKey:KZWDEBUGKEY]; 38 | } else { 39 | NSData *data = [NSKeyedArchiver archivedDataWithRootObject:_debug]; 40 | [[NSUserDefaults standardUserDefaults] setObject:data forKey:KZWDEBUGKEY]; 41 | [[NSUserDefaults standardUserDefaults] synchronize]; 42 | } 43 | } 44 | } 45 | 46 | + (void)deleteDebug { 47 | @synchronized(self) { 48 | _debug = nil; 49 | [[NSUserDefaults standardUserDefaults] removeObjectForKey:KZWDEBUGKEY]; 50 | } 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASViewConstraint.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASViewConstraint.h 3 | // Masonry 4 | // 5 | // Created by Jonas Budelmann on 20/07/13. 6 | // Copyright (c) 2013 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASViewAttribute.h" 10 | #import "MASConstraint.h" 11 | #import "MASLayoutConstraint.h" 12 | #import "MASUtilities.h" 13 | 14 | /** 15 | * A single constraint. 16 | * Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view 17 | */ 18 | @interface MASViewConstraint : MASConstraint 19 | 20 | /** 21 | * First item/view and first attribute of the NSLayoutConstraint 22 | */ 23 | @property (nonatomic, strong, readonly) MASViewAttribute *firstViewAttribute; 24 | 25 | /** 26 | * Second item/view and second attribute of the NSLayoutConstraint 27 | */ 28 | @property (nonatomic, strong, readonly) MASViewAttribute *secondViewAttribute; 29 | 30 | /** 31 | * initialises the MASViewConstraint with the first part of the equation 32 | * 33 | * @param firstViewAttribute view.mas_left, view.mas_width etc. 34 | * 35 | * @return a new view constraint 36 | */ 37 | - (id)initWithFirstViewAttribute:(MASViewAttribute *)firstViewAttribute; 38 | 39 | /** 40 | * Returns all MASViewConstraints installed with this view as a first item. 41 | * 42 | * @param view A view to retrieve constraints for. 43 | * 44 | * @return An array of MASViewConstraints. 45 | */ 46 | + (NSArray *)installedConstraintsForView:(MAS_VIEW *)view; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSValueTransformer+MTLInversionAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSValueTransformer+MTLInversionAdditions.m 3 | // Mantle 4 | // 5 | // Created by Justin Spahr-Summers on 2013-05-18. 6 | // Copyright (c) 2013 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSValueTransformer+MTLInversionAdditions.h" 10 | #import "MTLTransformerErrorHandling.h" 11 | #import "MTLValueTransformer.h" 12 | 13 | @implementation NSValueTransformer (MTLInversionAdditions) 14 | 15 | - (NSValueTransformer *)mtl_invertedTransformer { 16 | NSParameterAssert(self.class.allowsReverseTransformation); 17 | 18 | if ([self conformsToProtocol:@protocol(MTLTransformerErrorHandling)]) { 19 | NSParameterAssert([self respondsToSelector:@selector(reverseTransformedValue:success:error:)]); 20 | 21 | id errorHandlingSelf = (id)self; 22 | 23 | return [MTLValueTransformer transformerUsingForwardBlock:^(id value, BOOL *success, NSError **error) { 24 | return [errorHandlingSelf reverseTransformedValue:value success:success error:error]; 25 | } reverseBlock:^(id value, BOOL *success, NSError **error) { 26 | return [errorHandlingSelf transformedValue:value success:success error:error]; 27 | }]; 28 | } else { 29 | return [MTLValueTransformer transformerUsingForwardBlock:^(id value, BOOL *success, NSError **error) { 30 | return [self reverseTransformedValue:value]; 31 | } reverseBlock:^(id value, BOOL *success, NSError **error) { 32 | return [self transformedValue:value]; 33 | }]; 34 | } 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/UICountingLabel.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | typedef NS_ENUM(NSInteger, UILabelCountingMethod) { 5 | UILabelCountingMethodEaseInOut, 6 | UILabelCountingMethodEaseIn, 7 | UILabelCountingMethodEaseOut, 8 | UILabelCountingMethodLinear, 9 | UILabelCountingMethodEaseInBounce, 10 | UILabelCountingMethodEaseOutBounce 11 | }; 12 | 13 | typedef NSString * (^UICountingLabelFormatBlock)(CGFloat value); 14 | typedef NSAttributedString * (^UICountingLabelAttributedFormatBlock)(CGFloat value); 15 | 16 | @interface UICountingLabel : UILabel 17 | 18 | @property (nonatomic, strong) NSString *format; 19 | @property (nonatomic, strong) NSString *positiveFormat; 20 | @property (nonatomic, assign) UILabelCountingMethod method; 21 | @property (nonatomic, assign) NSTimeInterval animationDuration; 22 | 23 | @property (nonatomic, copy) UICountingLabelFormatBlock formatBlock; 24 | @property (nonatomic, copy) UICountingLabelAttributedFormatBlock attributedFormatBlock; 25 | @property (nonatomic, copy) void (^completionBlock)(void); 26 | 27 | - (void)countFrom:(CGFloat)startValue to:(CGFloat)endValue; 28 | - (void)countFrom:(CGFloat)startValue to:(CGFloat)endValue withDuration:(NSTimeInterval)duration; 29 | 30 | - (void)countFromCurrentValueTo:(CGFloat)endValue; 31 | - (void)countFromCurrentValueTo:(CGFloat)endValue withDuration:(NSTimeInterval)duration; 32 | 33 | - (void)countFromZeroTo:(CGFloat)endValue; 34 | - (void)countFromZeroTo:(CGFloat)endValue withDuration:(NSTimeInterval)duration; 35 | 36 | - (CGFloat)currentValue; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Example/Pods/Mantle/Mantle/NSDictionary+MTLJSONKeyPath.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSDictionary+MTLJSONKeyPath.m 3 | // Mantle 4 | // 5 | // Created by Robert Böhnke on 19/03/14. 6 | // Copyright (c) 2014 GitHub. All rights reserved. 7 | // 8 | 9 | #import "NSDictionary+MTLJSONKeyPath.h" 10 | 11 | #import "MTLJSONAdapter.h" 12 | 13 | @implementation NSDictionary (MTLJSONKeyPath) 14 | 15 | - (id)mtl_valueForJSONKeyPath:(NSString *)JSONKeyPath success:(BOOL *)success error:(NSError **)error { 16 | NSArray *components = [JSONKeyPath componentsSeparatedByString:@"."]; 17 | 18 | id result = self; 19 | for (NSString *component in components) { 20 | // Check the result before resolving the key path component to not 21 | // affect the last value of the path. 22 | if (result == nil || result == NSNull.null) break; 23 | 24 | if (![result isKindOfClass:NSDictionary.class]) { 25 | if (error != NULL) { 26 | NSDictionary *userInfo = @{ 27 | NSLocalizedDescriptionKey: NSLocalizedString(@"Invalid JSON dictionary", @""), 28 | NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:NSLocalizedString(@"JSON key path %1$@ could not resolved because an incompatible JSON dictionary was supplied: \"%2$@\"", @""), JSONKeyPath, self] 29 | }; 30 | 31 | *error = [NSError errorWithDomain:MTLJSONAdapterErrorDomain code:MTLJSONAdapterErrorInvalidJSONDictionary userInfo:userInfo]; 32 | } 33 | 34 | if (success != NULL) *success = NO; 35 | 36 | return nil; 37 | } 38 | 39 | result = result[component]; 40 | } 41 | 42 | if (success != NULL) *success = YES; 43 | 44 | return result; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /KZWFoundation.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod spec lint KZWFoundation.podspec' to ensure this is a 3 | # valid spec and to remove all comments including this before submitting the spec. 4 | # 5 | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html 6 | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | 11 | s.name = "KZWFoundation" 12 | s.version = "2.0.1" 13 | s.summary = "iOS 基本库" 14 | 15 | s.description = <<-DESC 16 | iOS基本库 17 | DESC 18 | 19 | s.homepage = "https://github.com/ouyrp/KZWFoundation" 20 | 21 | s.license = "MIT" 22 | 23 | s.author = { "ouyang" => "1697006288@qq.com" } 24 | 25 | s.platform = :ios, "8.0" 26 | 27 | 28 | s.source = { :git => "https://github.com/ouyrp/KZWFoundation.git", :tag => "#{s.version}" } 29 | 30 | s.source_files = "KZWFoundation/Classes/KZWFoundationHear.h" 31 | 32 | s.subspec 'Content' do |ss| 33 | ss.source_files = 'KZWFoundation/Classes/**/*' 34 | ss.resource_bundle = { 'KZWFundation' => 'KZWFoundation/Assets/*' } 35 | ss.exclude_files = "KZWFoundation/Classes/KZWFoundationHear.h" 36 | ss.frameworks = "MapKit" , "WebKit" , "AudioToolbox" 37 | end 38 | s.dependency "Masonry" 39 | s.dependency "MJRefresh" 40 | s.dependency "AFNetworking" 41 | s.dependency "Mantle" 42 | s.dependency "MBProgressHUD" 43 | s.dependency "SAMKeychain" 44 | s.dependency "dsBridge" 45 | 46 | end 47 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/ELMKeychainUtil.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELMKeychainUtil.m 3 | // ELMFoundation 4 | // 5 | // Created by 0oneo on 6/2/15. 6 | // Copyright (c) 2015 eleme. All rights reserved. 7 | // 8 | 9 | #import "ELMKeychainUtil.h" 10 | #import 11 | 12 | static NSString *const ELEME_SERVICE_NAME = @"ElemeService"; 13 | static NSString *const ELEME_ACCOUNT_NAME = @"ElemeAccount"; 14 | 15 | @implementation ELMKeychainUtil 16 | 17 | + (void)saveKeychainDict:(NSMutableDictionary *)dict { 18 | [SAMKeychain setPassword:[dict description] forService:ELEME_SERVICE_NAME account:ELEME_ACCOUNT_NAME]; 19 | } 20 | 21 | + (NSMutableDictionary *)keychainDict { 22 | NSString *content = [SAMKeychain passwordForService:ELEME_SERVICE_NAME account:ELEME_ACCOUNT_NAME]; 23 | if (content) { 24 | return [[content propertyList] mutableCopy]; 25 | } 26 | return [NSMutableDictionary dictionary]; 27 | } 28 | 29 | + (NSString *)valueInKeyChainForKey:(NSString *)key { 30 | id value = [self keychainDict][key]; 31 | if (value && [value isKindOfClass:[NSString class]] == NO) { 32 | return nil; 33 | } 34 | return value; 35 | } 36 | 37 | + (void)saveValueToKeyChain:(NSString *)value forKey:(NSString *)key { 38 | NSMutableDictionary *keychainDict = [self keychainDict]; 39 | if (value) { 40 | keychainDict[key] = value; 41 | } else { 42 | [keychainDict removeObjectForKey:key]; 43 | } 44 | [self saveKeychainDict:keychainDict]; 45 | } 46 | 47 | + (void)deleteAllInfoInKeyChain { 48 | [self saveKeychainDict:[[NSMutableDictionary alloc] init]]; 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/LPDBItemViewControl.h: -------------------------------------------------------------------------------- 1 | // 2 | // LPDBItemViewControlViewController.h 3 | // LPDBusiness 4 | // 5 | // Created by ouyang on 16/8/18. 6 | // Copyright © 2016年 LPD. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface LPDBItemsConfig : NSObject 13 | 14 | @property (nonatomic, assign) float itemWidth; //default is 0 15 | @property (nonatomic, strong) UIFont *itemFont; //default is 16 16 | @property (nonatomic, strong) UIColor *textColor; //default is COLOR_Gray_Dark 17 | @property (nonatomic, strong) UIColor *selectedColor; //default is COLOR_Green 18 | 19 | @property (nonatomic, assign) float linePercent; //default is 0.8 20 | @property (nonatomic, assign) float lineHieght; //default is 2.5 21 | @property (nonatomic, assign) float lineMarginBottom; //default is 0 22 | 23 | 24 | @end 25 | 26 | 27 | typedef void (^LPDBItemsControlViewTapBlock)(NSInteger index, BOOL animation); 28 | 29 | @interface LPDBItemViewControl : UIScrollView 30 | 31 | @property (nonatomic, strong) LPDBItemsConfig *config; 32 | @property (nonatomic, strong) NSArray *titleArray; 33 | @property (nonatomic, assign) BOOL tapAnimation; //default is YES; 34 | @property (nonatomic, readonly) NSInteger currentIndex; 35 | @property (nonatomic, copy) LPDBItemsControlViewTapBlock tapItemWithIndex; 36 | 37 | 38 | - (void)moveToIndex:(float)index; //called in scrollViewDidScroll 39 | /* 40 | 首次出现,需要高亮显示第二个元素,scroll: 是外部关联的scroll 41 | [self endMoveToIndex:2]; 42 | [scroll scrollRectToVisible:CGRectMake(2*w, 0.0, w,h) animated:NO]; 43 | */ 44 | - (void)endMoveToIndex:(float)index; //called in scrollViewDidEndDecelerating 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIView+KZWCore.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+KZWCore.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/3/15. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "UIView+KZWCore.h" 10 | 11 | @implementation UIView (KZWCore) 12 | 13 | #pragma mark - 设置部分圆角 14 | /** 15 | * 设置部分圆角(绝对布局) 16 | * 17 | * @param corners 需要设置为圆角的角 UIRectCornerTopLeft | UIRectCornerTopRight | UIRectCornerBottomLeft | UIRectCornerBottomRight | UIRectCornerAllCorners 18 | * @param radii 需要设置的圆角大小 例如 CGSizeMake(20.0f, 20.0f) 19 | */ 20 | - (void)addRoundedCorners:(UIRectCorner)corners 21 | withRadii:(CGSize)radii { 22 | 23 | UIBezierPath *rounded = [UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:corners cornerRadii:radii]; 24 | CAShapeLayer *shape = [[CAShapeLayer alloc] init]; 25 | [shape setPath:rounded.CGPath]; 26 | 27 | self.layer.mask = shape; 28 | } 29 | 30 | /** 31 | * 设置部分圆角(相对布局) 32 | * 33 | * @param corners 需要设置为圆角的角 UIRectCornerTopLeft | UIRectCornerTopRight | UIRectCornerBottomLeft | UIRectCornerBottomRight | UIRectCornerAllCorners 34 | * @param radii 需要设置的圆角大小 例如 CGSizeMake(20.0f, 20.0f) 35 | * @param rect 需要设置的圆角view的rect 36 | */ 37 | - (void)addRoundedCorners:(UIRectCorner)corners 38 | withRadii:(CGSize)radii 39 | viewRect:(CGRect)rect { 40 | 41 | UIBezierPath *rounded = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:corners cornerRadii:radii]; 42 | CAShapeLayer *shape = [[CAShapeLayer alloc] init]; 43 | [shape setPath:rounded.CGPath]; 44 | 45 | self.layer.mask = shape; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIImageView+KZWCache.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView+KZWCache.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2017/12/27. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "UIImageView+KZWCache.h" 10 | 11 | @implementation UIImageView (KZWCache) 12 | 13 | - (void)zy_setImageWithURL:(NSString *)urlString withImage:(UIImage *)placeholderImage { 14 | 15 | [[ZYImageCacheManager sharedImageCacheManager] getImageWithUrl:urlString complete:^(UIImage *image) { 16 | //使用图片 17 | if (image == NULL) { 18 | self.image = [placeholderImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 19 | } else { 20 | self.image = [self scaleImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] toScale:0.33]; 21 | } 22 | }]; 23 | } 24 | 25 | - (void)zy_setImageWithURL:(NSString *)urlString placeholderImage:(UIImage *)placeholderImage { 26 | self.image = [placeholderImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 27 | [self zy_setImageWithURL:urlString withImage:placeholderImage]; 28 | } 29 | 30 | - (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize { 31 | UIGraphicsBeginImageContextWithOptions(CGSizeMake(image.size.width * scaleSize, image.size.height * scaleSize), NO, 0); 32 | [image drawInRect:CGRectIntegral(CGRectMake(0, 0, image.size.width * scaleSize, image.size.height * scaleSize))]; 33 | UIImage *scaledImage = UIGraphicsGetImageFromCurrentImageContext(); 34 | UIGraphicsEndImageContext(); 35 | return [scaledImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/Controller/KZWNavigationViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWNavigationViewController.m 3 | // KZWfinancial 4 | // 5 | // Created by ouy on 2017/3/2. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWNavigationViewController.h" 10 | 11 | @interface KZWNavigationViewController () 12 | 13 | @end 14 | 15 | @implementation KZWNavigationViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) { 20 | self.interactivePopGestureRecognizer.delegate = self; 21 | } 22 | } 23 | 24 | #pragma mark - overrides 25 | 26 | - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { 27 | if (self.viewControllers.count != 0) { 28 | viewController.hidesBottomBarWhenPushed = YES; 29 | } 30 | [super pushViewController:viewController animated:animated]; 31 | } 32 | 33 | #pragma mark - UIGestureRecognizerDelegate 34 | 35 | - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { 36 | if (gestureRecognizer == self.interactivePopGestureRecognizer) { 37 | if (self.viewControllers.count < 2 || self.visibleViewController == [self.viewControllers objectAtIndex:0]) { 38 | return NO; 39 | } 40 | } 41 | return YES; 42 | } 43 | 44 | #pragma mark - StatusBarStyle 45 | 46 | - (UIViewController *)childViewControllerForStatusBarStyle { 47 | return self.topViewController; 48 | } 49 | 50 | - (void)dealloc { 51 | self.viewControllers = @[]; 52 | #if DEBUG 53 | NSLog(@"KZWNavigationViewController release"); 54 | #endif 55 | } 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/UI/KZWBdgeImage.m: -------------------------------------------------------------------------------- 1 | // 2 | // KZWBdgeImage.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouyang on 2018/3/30. 6 | // Copyright © 2018年 ouy. All rights reserved. 7 | // 8 | 9 | #import "KZWBdgeImage.h" 10 | #import "UIView+KZWCore.h" 11 | #import 12 | 13 | @interface KZWBdgeImage () 14 | 15 | @property (nonatomic, strong) UILabel *badgeLabel; 16 | 17 | @end 18 | 19 | @implementation KZWBdgeImage 20 | 21 | - (instancetype)initWithFrame:(CGRect)frame { 22 | if (self = [super initWithFrame:frame]) { 23 | self.badgeLabel = [[UILabel alloc] init]; 24 | [self addSubview:self.badgeLabel]; 25 | self.badgeLabel.backgroundColor = [UIColor redColor]; 26 | self.badgeLabel.font = [UIFont systemFontOfSize:7]; 27 | self.badgeLabel.textColor = [UIColor whiteColor]; 28 | [self.badgeLabel addRoundedCorners:UIRectCornerBottomRight | UIRectCornerTopLeft | UIRectCornerTopRight withRadii:CGSizeMake(5.0, 5.0) viewRect:CGRectMake(0, 0, 25, 10)]; 29 | 30 | //------- 建立角标label的约束 -------// 31 | [self.badgeLabel mas_makeConstraints:^(MASConstraintMaker *make) { 32 | make.left.mas_equalTo(self.mas_right).mas_offset(-10); 33 | make.bottom.mas_equalTo(self.mas_top).mas_offset(10); 34 | make.height.mas_equalTo(10); 35 | }]; 36 | } 37 | return self; 38 | } 39 | 40 | - (void)setKzwbdgeNumber:(NSString *)kzwbdgeNumber { 41 | if (_kzwbdgeNumber == kzwbdgeNumber) { 42 | return; 43 | } 44 | _kzwbdgeNumber = kzwbdgeNumber; 45 | if (kzwbdgeNumber) { 46 | self.badgeLabel.text = [NSString stringWithFormat:@" %@ ", kzwbdgeNumber]; 47 | } 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Example/Pods-KZWFoundation_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Mantle" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain" "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation/KZWFoundation.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Mantle/Mantle.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain/SAMKeychain.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge/dsBridge.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "KZWFoundation" -framework "MBProgressHUD" -framework "MJRefresh" -framework "Mantle" -framework "Masonry" -framework "SAMKeychain" -framework "dsBridge" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KZWFoundation_Example/Pods-KZWFoundation_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking" "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation" "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/Mantle" "${PODS_CONFIGURATION_BUILD_DIR}/Masonry" "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain" "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/AFNetworking/AFNetworking.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/KZWFoundation/KZWFoundation.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh/MJRefresh.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Mantle/Mantle.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Masonry/Masonry.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SAMKeychain/SAMKeychain.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/dsBridge/dsBridge.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "AFNetworking" -framework "KZWFoundation" -framework "MBProgressHUD" -framework "MJRefresh" -framework "Mantle" -framework "Masonry" -framework "SAMKeychain" -framework "dsBridge" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Example/Pods/AFNetworking/AFNetworking/AFCompatibilityMacros.h: -------------------------------------------------------------------------------- 1 | // AFCompatibilityMacros.h 2 | // Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ ) 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining a copy 5 | // of this software and associated documentation files (the "Software"), to deal 6 | // in the Software without restriction, including without limitation the rights 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | // copies of the Software, and to permit persons to whom the Software is 9 | // furnished to do so, subject to the following conditions: 10 | // 11 | // The above copyright notice and this permission notice shall be included in 12 | // all copies or substantial portions of the Software. 13 | // 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | // THE SOFTWARE. 21 | 22 | #ifndef AFCompatibilityMacros_h 23 | #define AFCompatibilityMacros_h 24 | 25 | #ifdef API_UNAVAILABLE 26 | #define AF_API_UNAVAILABLE(x) API_UNAVAILABLE(x) 27 | #else 28 | #define AF_API_UNAVAILABLE(x) 29 | #endif // API_UNAVAILABLE 30 | 31 | #if __has_warning("-Wunguarded-availability-new") 32 | #define AF_CAN_USE_AT_AVAILABLE 1 33 | #else 34 | #define AF_CAN_USE_AT_AVAILABLE 0 35 | #endif 36 | 37 | #endif /* AFCompatibilityMacros_h */ 38 | -------------------------------------------------------------------------------- /Example/KZWFoundation/KZWFoundation-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Example/Pods/AFNetworking/AFNetworking/AFNetworking.h: -------------------------------------------------------------------------------- 1 | // AFNetworking.h 2 | // 3 | // Copyright (c) 2013 AFNetworking (http://afnetworking.com/) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | #import 26 | 27 | #ifndef _AFNETWORKING_ 28 | #define _AFNETWORKING_ 29 | 30 | #import "AFURLRequestSerialization.h" 31 | #import "AFURLResponseSerialization.h" 32 | #import "AFSecurityPolicy.h" 33 | 34 | #if !TARGET_OS_WATCH 35 | #import "AFNetworkReachabilityManager.h" 36 | #endif 37 | 38 | #import "AFURLSessionManager.h" 39 | #import "AFHTTPSessionManager.h" 40 | 41 | #endif /* _AFNETWORKING_ */ 42 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIView+MJExtension.m: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIView+Extension.m 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 14-5-28. 7 | // Copyright (c) 2014年 小码哥. All rights reserved. 8 | // 9 | 10 | #import "UIView+MJExtension.h" 11 | 12 | @implementation UIView (MJExtension) 13 | - (void)setMj_x:(CGFloat)mj_x 14 | { 15 | CGRect frame = self.frame; 16 | frame.origin.x = mj_x; 17 | self.frame = frame; 18 | } 19 | 20 | - (CGFloat)mj_x 21 | { 22 | return self.frame.origin.x; 23 | } 24 | 25 | - (void)setMj_y:(CGFloat)mj_y 26 | { 27 | CGRect frame = self.frame; 28 | frame.origin.y = mj_y; 29 | self.frame = frame; 30 | } 31 | 32 | - (CGFloat)mj_y 33 | { 34 | return self.frame.origin.y; 35 | } 36 | 37 | - (void)setMj_w:(CGFloat)mj_w 38 | { 39 | CGRect frame = self.frame; 40 | frame.size.width = mj_w; 41 | self.frame = frame; 42 | } 43 | 44 | - (CGFloat)mj_w 45 | { 46 | return self.frame.size.width; 47 | } 48 | 49 | - (void)setMj_h:(CGFloat)mj_h 50 | { 51 | CGRect frame = self.frame; 52 | frame.size.height = mj_h; 53 | self.frame = frame; 54 | } 55 | 56 | - (CGFloat)mj_h 57 | { 58 | return self.frame.size.height; 59 | } 60 | 61 | - (void)setMj_size:(CGSize)mj_size 62 | { 63 | CGRect frame = self.frame; 64 | frame.size = mj_size; 65 | self.frame = frame; 66 | } 67 | 68 | - (CGSize)mj_size 69 | { 70 | return self.frame.size; 71 | } 72 | 73 | - (void)setMj_origin:(CGPoint)mj_origin 74 | { 75 | CGRect frame = self.frame; 76 | frame.origin = mj_origin; 77 | self.frame = frame; 78 | } 79 | 80 | - (CGPoint)mj_origin 81 | { 82 | return self.frame.origin; 83 | } 84 | @end 85 | -------------------------------------------------------------------------------- /Example/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h: -------------------------------------------------------------------------------- 1 | // UIKit+AFNetworking.h 2 | // 3 | // Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ ) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #if TARGET_OS_IOS || TARGET_OS_TV 24 | #import 25 | 26 | #ifndef _UIKIT_AFNETWORKING_ 27 | #define _UIKIT_AFNETWORKING_ 28 | 29 | #if TARGET_OS_IOS 30 | #import "AFAutoPurgingImageCache.h" 31 | #import "AFImageDownloader.h" 32 | #import "AFNetworkActivityIndicatorManager.h" 33 | #import "UIRefreshControl+AFNetworking.h" 34 | #import "UIWebView+AFNetworking.h" 35 | #endif 36 | 37 | #import "UIActivityIndicatorView+AFNetworking.h" 38 | #import "UIButton+AFNetworking.h" 39 | #import "UIImageView+AFNetworking.h" 40 | #import "UIProgressView+AFNetworking.h" 41 | #endif /* _UIKIT_AFNETWORKING_ */ 42 | #endif 43 | -------------------------------------------------------------------------------- /Example/KZWFoundation/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Example/KZWFoundation/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefreshConst.m: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | #import 4 | 5 | const CGFloat MJRefreshLabelLeftInset = 25; 6 | const CGFloat MJRefreshHeaderHeight = 54.0; 7 | const CGFloat MJRefreshFooterHeight = 44.0; 8 | const CGFloat MJRefreshFastAnimationDuration = 0.25; 9 | const CGFloat MJRefreshSlowAnimationDuration = 0.4; 10 | 11 | NSString *const MJRefreshKeyPathContentOffset = @"contentOffset"; 12 | NSString *const MJRefreshKeyPathContentInset = @"contentInset"; 13 | NSString *const MJRefreshKeyPathContentSize = @"contentSize"; 14 | NSString *const MJRefreshKeyPathPanState = @"state"; 15 | 16 | NSString *const MJRefreshHeaderLastUpdatedTimeKey = @"MJRefreshHeaderLastUpdatedTimeKey"; 17 | 18 | NSString *const MJRefreshHeaderIdleText = @"MJRefreshHeaderIdleText"; 19 | NSString *const MJRefreshHeaderPullingText = @"MJRefreshHeaderPullingText"; 20 | NSString *const MJRefreshHeaderRefreshingText = @"MJRefreshHeaderRefreshingText"; 21 | 22 | NSString *const MJRefreshAutoFooterIdleText = @"MJRefreshAutoFooterIdleText"; 23 | NSString *const MJRefreshAutoFooterRefreshingText = @"MJRefreshAutoFooterRefreshingText"; 24 | NSString *const MJRefreshAutoFooterNoMoreDataText = @"MJRefreshAutoFooterNoMoreDataText"; 25 | 26 | NSString *const MJRefreshBackFooterIdleText = @"MJRefreshBackFooterIdleText"; 27 | NSString *const MJRefreshBackFooterPullingText = @"MJRefreshBackFooterPullingText"; 28 | NSString *const MJRefreshBackFooterRefreshingText = @"MJRefreshBackFooterRefreshingText"; 29 | NSString *const MJRefreshBackFooterNoMoreDataText = @"MJRefreshBackFooterNoMoreDataText"; 30 | 31 | NSString *const MJRefreshHeaderLastTimeText = @"MJRefreshHeaderLastTimeText"; 32 | NSString *const MJRefreshHeaderDateTodayText = @"MJRefreshHeaderDateTodayText"; 33 | NSString *const MJRefreshHeaderNoneLastDateText = @"MJRefreshHeaderNoneLastDateText"; -------------------------------------------------------------------------------- /KZWFoundation/Classes/Category/UIScrollView+KZWRefresh.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIScrollView+KZWRefresh.m 3 | // kongzhongfinancial 4 | // 5 | // Created by ouy on 2017/3/23. 6 | // Copyright © 2017年 ouy. All rights reserved. 7 | // 8 | 9 | #import "UIScrollView+KZWRefresh.h" 10 | #import "KZWConstants.h" 11 | #import "UIColor+KZWColor.h" 12 | #import 13 | 14 | @implementation UIScrollView (KZWRefresh) 15 | 16 | - (void)addHeaderRefreshWithCallback:(nullable void (^)())callback { 17 | MJRefreshNormalHeader *refreshHeader = [MJRefreshNormalHeader headerWithRefreshingBlock:callback]; 18 | [refreshHeader setTitle:@"下拉刷新" forState:MJRefreshStateIdle]; 19 | [refreshHeader setTitle:@"松开刷新" forState:MJRefreshStatePulling]; 20 | [refreshHeader setTitle:@"正在加载" forState:MJRefreshStateRefreshing]; 21 | refreshHeader.stateLabel.font = [UIFont systemFontOfSize:12]; 22 | refreshHeader.labelLeftInset = 15; 23 | refreshHeader.stateLabel.textColor = [UIColor colorWithHexString:@"8d8d8d"]; 24 | refreshHeader.lastUpdatedTimeLabel.hidden = YES; 25 | self.mj_header = refreshHeader; 26 | } 27 | 28 | - (void)addFooterRefreshWithCallback:(nullable void (^)())callback { 29 | MJRefreshAutoNormalFooter *refreshFooter = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:callback]; 30 | [refreshFooter setTitle:@"" forState:MJRefreshStateIdle]; 31 | [refreshFooter setTitle:@"" forState:MJRefreshStateRefreshing]; 32 | [refreshFooter setTitle:@"" forState:MJRefreshStateNoMoreData]; 33 | refreshFooter.refreshingTitleHidden = YES; 34 | refreshFooter.triggerAutomaticallyRefreshPercent = 0.2; 35 | self.mj_footer = refreshFooter; 36 | } 37 | 38 | 39 | - (void)headerBeginRefreshing { 40 | [self.mj_header beginRefreshing]; 41 | } 42 | 43 | - (void)footerBeginRefreshing { 44 | [self.mj_footer beginRefreshing]; 45 | } 46 | 47 | - (void)headerEndRefreshing { 48 | [self.mj_header endRefreshing]; 49 | } 50 | 51 | - (void)footerEndRefreshing { 52 | [self.mj_footer endRefreshing]; 53 | } 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /Example/KZWFoundation/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Example/Pods/Masonry/Masonry/MASConstraint+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // MASConstraint+Private.h 3 | // Masonry 4 | // 5 | // Created by Nick Tymchenko on 29/04/14. 6 | // Copyright (c) 2014 cloudling. All rights reserved. 7 | // 8 | 9 | #import "MASConstraint.h" 10 | 11 | @protocol MASConstraintDelegate; 12 | 13 | 14 | @interface MASConstraint () 15 | 16 | /** 17 | * Whether or not to check for an existing constraint instead of adding constraint 18 | */ 19 | @property (nonatomic, assign) BOOL updateExisting; 20 | 21 | /** 22 | * Usually MASConstraintMaker but could be a parent MASConstraint 23 | */ 24 | @property (nonatomic, weak) id delegate; 25 | 26 | /** 27 | * Based on a provided value type, is equal to calling: 28 | * NSNumber - setOffset: 29 | * NSValue with CGPoint - setPointOffset: 30 | * NSValue with CGSize - setSizeOffset: 31 | * NSValue with MASEdgeInsets - setInsets: 32 | */ 33 | - (void)setLayoutConstantWithValue:(NSValue *)value; 34 | 35 | @end 36 | 37 | 38 | @interface MASConstraint (Abstract) 39 | 40 | /** 41 | * Sets the constraint relation to given NSLayoutRelation 42 | * returns a block which accepts one of the following: 43 | * MASViewAttribute, UIView, NSValue, NSArray 44 | * see readme for more details. 45 | */ 46 | - (MASConstraint * (^)(id, NSLayoutRelation))equalToWithRelation; 47 | 48 | /** 49 | * Override to set a custom chaining behaviour 50 | */ 51 | - (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; 52 | 53 | @end 54 | 55 | 56 | @protocol MASConstraintDelegate 57 | 58 | /** 59 | * Notifies the delegate when the constraint needs to be replaced with another constraint. For example 60 | * A MASViewConstraint may turn into a MASCompositeConstraint when an array is passed to one of the equality blocks 61 | */ 62 | - (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint; 63 | 64 | - (MASConstraint *)constraint:(MASConstraint *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute; 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /KZWFoundation/Classes/KZWFoundationHear.h: -------------------------------------------------------------------------------- 1 | // 2 | // KZWFoundationHear.h 3 | // KZWFoundation 4 | // 5 | // Created by ouyang on 2018/5/8. 6 | // Copyright © 2018年 ouyang. All rights reserved. 7 | // 8 | 9 | #ifndef KZWFoundationHear_h 10 | #define KZWFoundationHear_h 11 | 12 | #import "ELMEnvironmentManager.h" 13 | #import "ELMKeychainUtil.h" 14 | #import "ELMRouter.h" 15 | #import "KZWBaseTextField.h" 16 | #import "KZWBaseTextView.h" 17 | #import "KZWBdgeButton.h" 18 | #import "KZWBdgeImage.h" 19 | #import "KZWConstants.h" 20 | #import "KZWCorrectLocation.h" 21 | #import "KZWDSJavaScripInterface.h" 22 | #import "KZWDebugService.h" 23 | #import "KZWHUD.h" 24 | #import "KZWJavascripModel.h" 25 | #import "KZWNavigationViewController.h" 26 | #import "KZWNetStateView.h" 27 | #import "KZWNoPasteTextField.h" 28 | #import "KZWPasswordTextView.h" 29 | #import "KZWProGressView.h" 30 | #import "KZWRequestServerstatus.h" 31 | #import "KZWRouterHelper.h" 32 | #import "KZWTosatView.h" 33 | #import "KZWVersionModel.h" 34 | #import "KZWViewController.h" 35 | #import "KZWWebViewController.h" 36 | #import "LPDBHttpManager.h" 37 | #import "LPDBItemViewControl.h" 38 | #import "LPDBModel.h" 39 | #import "LPDBRequestObject.h" 40 | #import "NSError+LPDErrorMessage.h" 41 | #import "NSObject+Dictionary.h" 42 | #import "NSObject+LPDAssociatedObject.h" 43 | #import "NSString+ELMFoundation.h" 44 | #import "NSString+KZWData.h" 45 | #import "NSURL+ELMFoundation.h" 46 | #import "UIApplication+ELMFoundation.h" 47 | #import "UIButton+KZWButton.h" 48 | #import "UIColor+KZWColor.h" 49 | #import "UIControl+Block.h" 50 | #import "UICountingLabel.h" 51 | #import "UIImageView+KZWCache.h" 52 | #import "UILabel+KZWLabel.h" 53 | #import "UILabel+KZWLineSpace.h" 54 | #import "UINavigationController+KZWBackButtonHandler.h" 55 | #import "UIScrollView+KZWRefresh.h" 56 | #import "UITabBar+CustomBadge.h" 57 | #import "UITabBarItem+WebCache.h" 58 | #import "UITableView+KZWTableView.h" 59 | #import "UIView+KZWCore.h" 60 | #import "UIViewController+ELMRouter.h" 61 | #import "WKCookieSyncManager.h" 62 | #import "ZYImageCacheManager.h" 63 | 64 | #endif /* KZWFoundationHear_h */ 65 | --------------------------------------------------------------------------------