├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── BuildHeaders │ │ └── StyleSheet │ │ │ ├── DZButtonStateStyle.h │ │ │ ├── DZButtonStyle.h │ │ │ ├── DZLabelStyle.h │ │ │ ├── DZPageControlStyle.h │ │ │ ├── DZSegementStyle.h │ │ │ ├── DZStyle.h │ │ │ ├── DZStyleCSS.h │ │ │ ├── DZStyleRender.h │ │ │ ├── DZSwitchStyle.h │ │ │ ├── DZTextFieldStyle.h │ │ │ ├── DZTextStyle.h │ │ │ ├── DZTextViewStyle.h │ │ │ ├── DZViewStyle.h │ │ │ └── UIView+Style.h │ ├── Headers │ │ └── StyleSheet │ │ │ ├── DZButtonStateStyle.h │ │ │ ├── DZButtonStyle.h │ │ │ ├── DZLabelStyle.h │ │ │ ├── DZPageControlStyle.h │ │ │ ├── DZSegementStyle.h │ │ │ ├── DZStyle.h │ │ │ ├── DZStyleCSS.h │ │ │ ├── DZStyleRender.h │ │ │ ├── DZSwitchStyle.h │ │ │ ├── DZTextFieldStyle.h │ │ │ ├── DZTextStyle.h │ │ │ ├── DZTextViewStyle.h │ │ │ ├── DZViewStyle.h │ │ │ └── UIView+Style.h │ ├── Local Podspecs │ │ └── StyleSheet.podspec │ ├── Manifest.lock │ ├── Pods-StyleSheet_Example-StyleSheet-Private.xcconfig │ ├── Pods-StyleSheet_Example-StyleSheet-dummy.m │ ├── Pods-StyleSheet_Example-StyleSheet-prefix.pch │ ├── Pods-StyleSheet_Example-StyleSheet.xcconfig │ ├── Pods-StyleSheet_Example-acknowledgements.markdown │ ├── Pods-StyleSheet_Example-acknowledgements.plist │ ├── Pods-StyleSheet_Example-dummy.m │ ├── Pods-StyleSheet_Example-environment.h │ ├── Pods-StyleSheet_Example-resources.sh │ ├── Pods-StyleSheet_Example.xcconfig │ ├── Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig │ ├── Pods-StyleSheet_Tests-StyleSheet-dummy.m │ ├── Pods-StyleSheet_Tests-StyleSheet-prefix.pch │ ├── Pods-StyleSheet_Tests-StyleSheet.xcconfig │ ├── Pods-StyleSheet_Tests-acknowledgements.markdown │ ├── Pods-StyleSheet_Tests-acknowledgements.plist │ ├── Pods-StyleSheet_Tests-dummy.m │ ├── Pods-StyleSheet_Tests-environment.h │ ├── Pods-StyleSheet_Tests-resources.sh │ ├── Pods-StyleSheet_Tests.xcconfig │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── StyleSheet.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── StyleSheet-Example.xcscheme ├── StyleSheet.xcworkspace │ └── contents.xcworkspacedata ├── StyleSheet │ ├── DZAppDelegate.h │ ├── DZAppDelegate.m │ ├── DZViewController.h │ ├── DZViewController.m │ ├── IMG_1231.PNG │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── Main.storyboard │ ├── StyleSheet-Info.plist │ ├── StyleSheet-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── LICENSE ├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── DZStyleCSS.h │ ├── DZStyleCSS.m │ ├── DZStyleRender.h │ ├── DZStyleRender.m │ ├── Style │ ├── DZButtonStateStyle.h │ ├── DZButtonStateStyle.m │ ├── DZButtonStyle.h │ ├── DZButtonStyle.m │ ├── DZLabelStyle.h │ ├── DZLabelStyle.m │ ├── DZMetricsContainerStyle.h │ ├── DZMetricsContainerStyle.m │ ├── DZMetricsStyle.h │ ├── DZMetricsStyle.m │ ├── DZNavigationBarStyle.h │ ├── DZNavigationBarStyle.m │ ├── DZPageControlStyle.h │ ├── DZPageControlStyle.m │ ├── DZSegementStyle.h │ ├── DZSegementStyle.m │ ├── DZStyle.h │ ├── DZStyle.m │ ├── DZSwitchStyle.h │ ├── DZSwitchStyle.m │ ├── DZTextFieldStyle.h │ ├── DZTextFieldStyle.m │ ├── DZTextStyle.h │ ├── DZTextStyle.m │ ├── DZTextViewStyle.h │ ├── DZTextViewStyle.m │ ├── DZViewStyle.h │ └── DZViewStyle.m │ ├── StyleSheet.h │ └── View-Category │ ├── UIView+Style.h │ └── UIView+Style.m ├── README.md ├── StyleSheet.podspec ├── _Pods.xcodeproj └── readmeImgs └── demo.jpeg /.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 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | install: 12 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet 13 | script: 14 | - set -o pipefail && xcodebuild test -workspace Example/StyleSheet.xcworkspace -scheme StyleSheet-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c 15 | - pod lib lint --quick 16 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | 2 | target 'StyleSheet_Example', :exclusive => true do 3 | pod "StyleSheet", :path => "../" 4 | end 5 | 6 | target 'StyleSheet_Tests', :exclusive => true do 7 | pod "StyleSheet", :path => "../" 8 | end 9 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - StyleSheet (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - StyleSheet (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | StyleSheet: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | StyleSheet: 103dba49780cd5e82049aab1dfe56dd2a2f08bb2 13 | 14 | COCOAPODS: 0.33.1 15 | -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZButtonStateStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZButtonStateStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZButtonStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZButtonStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZLabelStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZLabelStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZPageControlStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZPageControlStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZSegementStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZSegementStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZStyleCSS.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/DZStyleCSS.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZStyleRender.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/DZStyleRender.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZSwitchStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZSwitchStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZTextFieldStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZTextFieldStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZTextStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZTextStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZTextViewStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZTextViewStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/DZViewStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZViewStyle.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/StyleSheet/UIView+Style.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/View-Category/UIView+Style.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZButtonStateStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZButtonStateStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZButtonStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZButtonStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZLabelStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZLabelStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZPageControlStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZPageControlStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZSegementStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZSegementStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZStyleCSS.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/DZStyleCSS.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZStyleRender.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/DZStyleRender.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZSwitchStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZSwitchStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZTextFieldStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZTextFieldStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZTextStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZTextStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZTextViewStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZTextViewStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/DZViewStyle.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/Style/DZViewStyle.h -------------------------------------------------------------------------------- /Example/Pods/Headers/StyleSheet/UIView+Style.h: -------------------------------------------------------------------------------- 1 | ../../../../Pod/Classes/View-Category/UIView+Style.h -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/StyleSheet.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint StyleSheet.podspec' to ensure this is a 3 | # valid spec and remove all comments before submitting the spec. 4 | # 5 | # Any lines starting with a # are optional, but encouraged 6 | # 7 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 8 | # 9 | 10 | Pod::Spec.new do |s| 11 | s.name = "StyleSheet" 12 | s.version = "0.1.0" 13 | s.summary = "在IOS基础空间所能够支持的样式基础之上,建立的类似于样式配置表css的模块。为每个控件制定一个style,可以用来控制该控件的样式,同时样式可以在多个控件之间复用。" 14 | s.description = <<-DESC 15 | 在IOS基础控件所能够支持的样式基础之上,建立的类似于样式配置表css的模块。为每个控件制定一个style,可以用来控制该控件的样式,同时样式可以在多个控件之间复用。 16 | DESC 17 | s.homepage = "https://github.com/yishuiliunian/StyleSheet" 18 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 19 | s.license = 'MIT' 20 | s.author = { "dongzhao" => "yishuiliunian@gmail.com" } 21 | s.source = { :git => "https://github.com/yishuiliunian/StyleSheet.git", :tag => s.version.to_s } 22 | # s.social_media_url = 'https://twitter.com/' 23 | 24 | s.platform = :ios, '7.0' 25 | s.requires_arc = true 26 | 27 | s.source_files = 'Pod/Classes/**/*' 28 | s.resource_bundles = { 29 | 'StyleSheet' => ['Pod/Assets/*.png'] 30 | } 31 | 32 | # s.public_header_files = 'Pod/Classes/**/*.h' 33 | # s.frameworks = 'UIKit', 'MapKit' 34 | # s.dependency 'AFNetworking', '~> 2.3' 35 | end 36 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - StyleSheet (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - StyleSheet (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | StyleSheet: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | StyleSheet: 103dba49780cd5e82049aab1dfe56dd2a2f08bb2 13 | 14 | COCOAPODS: 0.33.1 15 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-StyleSheet-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-StyleSheet_Example-StyleSheet.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/StyleSheet" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/StyleSheet" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-StyleSheet-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_StyleSheet_Example_StyleSheet : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_StyleSheet_Example_StyleSheet 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-StyleSheet-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-StyleSheet_Example-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-StyleSheet.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yishuiliunian/StyleSheet/53c5b9b1e9a6f0d04738d0adbe0bd531f85540d2/Example/Pods/Pods-StyleSheet_Example-StyleSheet.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## StyleSheet 5 | 6 | Copyright (c) 2015 dongzhao 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-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 | Copyright (c) 2015 dongzhao <yishuiliunian@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | StyleSheet 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_StyleSheet_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_StyleSheet_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // StyleSheet 10 | #define COCOAPODS_POD_AVAILABLE_StyleSheet 11 | #define COCOAPODS_VERSION_MAJOR_StyleSheet 0 12 | #define COCOAPODS_VERSION_MINOR_StyleSheet 1 13 | #define COCOAPODS_VERSION_PATCH_StyleSheet 0 14 | 15 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 5 | > "$RESOURCES_TO_COPY" 6 | 7 | install_resource() 8 | { 9 | case $1 in 10 | *.storyboard) 11 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 12 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 13 | ;; 14 | *.xib) 15 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 16 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 17 | ;; 18 | *.framework) 19 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 21 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 22 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 23 | ;; 24 | *.xcdatamodel) 25 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 26 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 27 | ;; 28 | *.xcdatamodeld) 29 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 30 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 31 | ;; 32 | *.xcassets) 33 | ;; 34 | /*) 35 | echo "$1" 36 | echo "$1" >> "$RESOURCES_TO_COPY" 37 | ;; 38 | *) 39 | echo "${PODS_ROOT}/$1" 40 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 41 | ;; 42 | esac 43 | } 44 | install_resource "${BUILT_PRODUCTS_DIR}/StyleSheet.bundle" 45 | 46 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 47 | if [[ "${ACTION}" == "install" ]]; then 48 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 49 | fi 50 | rm -f "$RESOURCES_TO_COPY" 51 | 52 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] 53 | then 54 | case "${TARGETED_DEVICE_FAMILY}" in 55 | 1,2) 56 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 57 | ;; 58 | 1) 59 | TARGET_DEVICE_ARGS="--target-device iphone" 60 | ;; 61 | 2) 62 | TARGET_DEVICE_ARGS="--target-device ipad" 63 | ;; 64 | *) 65 | TARGET_DEVICE_ARGS="--target-device mac" 66 | ;; 67 | esac 68 | find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 69 | fi 70 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Example.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/StyleSheet" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers" -isystem "${PODS_ROOT}/Headers/StyleSheet" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-StyleSheet_Tests-StyleSheet.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/StyleSheet" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/StyleSheet" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-StyleSheet-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_StyleSheet_Tests_StyleSheet : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_StyleSheet_Tests_StyleSheet 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-StyleSheet-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-StyleSheet_Tests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-StyleSheet.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yishuiliunian/StyleSheet/53c5b9b1e9a6f0d04738d0adbe0bd531f85540d2/Example/Pods/Pods-StyleSheet_Tests-StyleSheet.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## StyleSheet 5 | 6 | Copyright (c) 2015 dongzhao 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_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 | Copyright (c) 2015 dongzhao <yishuiliunian@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | StyleSheet 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_StyleSheet_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_StyleSheet_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // StyleSheet 10 | #define COCOAPODS_POD_AVAILABLE_StyleSheet 11 | #define COCOAPODS_VERSION_MAJOR_StyleSheet 0 12 | #define COCOAPODS_VERSION_MINOR_StyleSheet 1 13 | #define COCOAPODS_VERSION_PATCH_StyleSheet 0 14 | 15 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 5 | > "$RESOURCES_TO_COPY" 6 | 7 | install_resource() 8 | { 9 | case $1 in 10 | *.storyboard) 11 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 12 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 13 | ;; 14 | *.xib) 15 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 16 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 17 | ;; 18 | *.framework) 19 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 21 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 22 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 23 | ;; 24 | *.xcdatamodel) 25 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 26 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 27 | ;; 28 | *.xcdatamodeld) 29 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 30 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 31 | ;; 32 | *.xcassets) 33 | ;; 34 | /*) 35 | echo "$1" 36 | echo "$1" >> "$RESOURCES_TO_COPY" 37 | ;; 38 | *) 39 | echo "${PODS_ROOT}/$1" 40 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 41 | ;; 42 | esac 43 | } 44 | install_resource "${BUILT_PRODUCTS_DIR}/StyleSheet.bundle" 45 | 46 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 47 | if [[ "${ACTION}" == "install" ]]; then 48 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 49 | fi 50 | rm -f "$RESOURCES_TO_COPY" 51 | 52 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] 53 | then 54 | case "${TARGETED_DEVICE_FAMILY}" in 55 | 1,2) 56 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 57 | ;; 58 | 1) 59 | TARGET_DEVICE_ARGS="--target-device iphone" 60 | ;; 61 | 2) 62 | TARGET_DEVICE_ARGS="--target-device ipad" 63 | ;; 64 | *) 65 | TARGET_DEVICE_ARGS="--target-device mac" 66 | ;; 67 | esac 68 | find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 69 | fi 70 | -------------------------------------------------------------------------------- /Example/Pods/Pods-StyleSheet_Tests.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/StyleSheet" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers" -isystem "${PODS_ROOT}/Headers/StyleSheet" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00B9AA03DAD74ABFA726D3A7 /* DZSwitchStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = F0502BCFD0974AFAA91651E3 /* DZSwitchStyle.h */; }; 11 | 034054DB52AA415AA6BBE09F /* Pods-StyleSheet_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3610EC6EBCEC4B069F95D67C /* Pods-StyleSheet_Tests-dummy.m */; }; 12 | 06B86B6CBDB346B9A56FF2C2 /* DZSegementStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = BED66C920EE549A4BB0FBD76 /* DZSegementStyle.h */; }; 13 | 0F50441C33CF4B47B7020EDE /* UIView+Style.h in Headers */ = {isa = PBXBuildFile; fileRef = CFA444CC651743F990E82C9E /* UIView+Style.h */; }; 14 | 0FCBB5FDF8584040A0E34FA7 /* DZSegementStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = E736687FAE744640AD0AFD49 /* DZSegementStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 15 | 1696AB1DAAD1472D958B782F /* DZButtonStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 902354EA395642FBBB7D781E /* DZButtonStyle.h */; }; 16 | 190A707EDD5C415C9A2EB1EF /* DZButtonStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C4017C43F64327A74E782F /* DZButtonStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 17 | 1944818F43AA4B1ABAD0F73C /* DZStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 49A05C62C5E24642A78B63B1 /* DZStyle.h */; }; 18 | 1C4F8F2B4DCD43D8A0FEE148 /* libPods-StyleSheet_Example-StyleSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F8AD789E14A4F8B928062AA /* libPods-StyleSheet_Example-StyleSheet.a */; }; 19 | 1D898DFAADD64B79A3D4B25D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07EBAC9C9E5C423D97625593 /* Foundation.framework */; }; 20 | 23CBCB78714D432394DDC632 /* DZStyleRender.h in Headers */ = {isa = PBXBuildFile; fileRef = 2821DB11FE2B4FD2AE4ECAFE /* DZStyleRender.h */; }; 21 | 255B89B793D541A4999708C8 /* DZPageControlStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B2D571EBC5D4D8A96B38663 /* DZPageControlStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 22 | 2D26E44289744A8681E81156 /* DZButtonStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 63C4017C43F64327A74E782F /* DZButtonStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 23 | 3111266325B849239BE29A76 /* DZLabelStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 8855A8CC3B9C4B49BDF1336A /* DZLabelStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 24 | 314C699E97504FEFA337134C /* Pods-StyleSheet_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FB4B5B13BE2F4486BF3A3AFE /* Pods-StyleSheet_Example-dummy.m */; }; 25 | 32EA2879B6794BF7AF908EE9 /* DZTextViewStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 4E93925D244B469FAA0ADB52 /* DZTextViewStyle.h */; }; 26 | 46A1C71DF9C34E4FB2D80610 /* DZTextFieldStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = ECC3B548229140298F8ECFAB /* DZTextFieldStyle.h */; }; 27 | 46CEEDB5475A4C8E954C9D58 /* DZStyleRender.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E715FFC71494D249969CAF3 /* DZStyleRender.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 28 | 4E44F2C8B42044EFADE546D8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07EBAC9C9E5C423D97625593 /* Foundation.framework */; }; 29 | 51EBB19253EC425E95D3D0E6 /* DZSwitchStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = F0502BCFD0974AFAA91651E3 /* DZSwitchStyle.h */; }; 30 | 53AD79EBA9F246E882720EFF /* libPods-StyleSheet_Tests-StyleSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8D3D5CE3D2854D8497C3BAD0 /* libPods-StyleSheet_Tests-StyleSheet.a */; }; 31 | 54D69A306A114365B0167DD9 /* DZLabelStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 47729B9D074E4C38AE775155 /* DZLabelStyle.h */; }; 32 | 57007CC9962543DEB83EEDB7 /* DZStyleCSS.m in Sources */ = {isa = PBXBuildFile; fileRef = F5BEA0C6EC6D48C58B92165D /* DZStyleCSS.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 33 | 5951838A57F747399E7ECF1A /* DZTextFieldStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = BD804854F85D479EB64C9C95 /* DZTextFieldStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 34 | 63D395DEE2E64B4199BC28BC /* DZButtonStateStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 986FB4FB9EDD4228A7F51423 /* DZButtonStateStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 35 | 647B426F2116433E9662A7BD /* UIView+Style.m in Sources */ = {isa = PBXBuildFile; fileRef = BEA448256C3E4B259810F496 /* UIView+Style.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 36 | 6590FFFC764A45A68E4E7CD5 /* DZButtonStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 902354EA395642FBBB7D781E /* DZButtonStyle.h */; }; 37 | 65E58FB91B75DAAF00C75B09 /* DZNavigationBarStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 65E58FB81B75DAAF00C75B09 /* DZNavigationBarStyle.m */; }; 38 | 65E58FBC1B75DD1400C75B09 /* DZMetricsStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 65E58FBB1B75DD1400C75B09 /* DZMetricsStyle.m */; }; 39 | 65E58FBF1B75E0D300C75B09 /* DZMetricsContainerStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 65E58FBE1B75E0D300C75B09 /* DZMetricsContainerStyle.m */; }; 40 | 66B795C7863F47F7A3E5E6AE /* DZPageControlStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = EE7C5A62331C4C53A2D54715 /* DZPageControlStyle.h */; }; 41 | 69B3638C12314E34A0DFD448 /* DZStyleRender.h in Headers */ = {isa = PBXBuildFile; fileRef = 2821DB11FE2B4FD2AE4ECAFE /* DZStyleRender.h */; }; 42 | 6B50C1E2C9D64313AB536F54 /* UIView+Style.h in Headers */ = {isa = PBXBuildFile; fileRef = CFA444CC651743F990E82C9E /* UIView+Style.h */; }; 43 | 745D93E1F7DD4851B629DCD6 /* DZTextStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 24B4116E891E4C7F94B299B6 /* DZTextStyle.h */; }; 44 | 747B0467EEBE478FBF1AE1B9 /* DZTextViewStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 9838CD1B4B3246C5A9B886C0 /* DZTextViewStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 45 | 7DD7996BE35D4E0BAA74CC96 /* DZViewStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = B109C08EF9324278B93B9A63 /* DZViewStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 46 | 8054D105ED834FE0A8297693 /* Pods-StyleSheet_Tests-StyleSheet-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C483BB85293C497D8146F1B3 /* Pods-StyleSheet_Tests-StyleSheet-dummy.m */; }; 47 | 86537C6154E740C8AAA7C362 /* DZViewStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = B109C08EF9324278B93B9A63 /* DZViewStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 48 | 8693D34CADCD4EB98E3EB6D1 /* UIView+Style.m in Sources */ = {isa = PBXBuildFile; fileRef = BEA448256C3E4B259810F496 /* UIView+Style.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 49 | 901118FBF36649A8BB6687CE /* DZLabelStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 47729B9D074E4C38AE775155 /* DZLabelStyle.h */; }; 50 | 91ABA43C491F4B7BAA697E9D /* Pods-StyleSheet_Example-StyleSheet-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B7E44E66B2D740A28B42B5D6 /* Pods-StyleSheet_Example-StyleSheet-dummy.m */; }; 51 | 9376DC3E2CAB4322AFB8162D /* DZTextViewStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 4E93925D244B469FAA0ADB52 /* DZTextViewStyle.h */; }; 52 | 9470968249E3430C917ED2CA /* DZPageControlStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B2D571EBC5D4D8A96B38663 /* DZPageControlStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 53 | 95153E9E12BA47B087776F0D /* DZSegementStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = E736687FAE744640AD0AFD49 /* DZSegementStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 54 | 9D50CD874B72432D95AF519C /* DZTextViewStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 9838CD1B4B3246C5A9B886C0 /* DZTextViewStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 55 | 9E95E900B55046F1921E0FB7 /* DZButtonStateStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F687C8FD63D4808AD40B709 /* DZButtonStateStyle.h */; }; 56 | A203EF8105ED4AC29E8F3654 /* DZViewStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 51EB0B0A25714E948900454C /* DZViewStyle.h */; }; 57 | A3B87A0A62214D3C93560F09 /* DZTextStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 83EBBB957E024510B40138AA /* DZTextStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 58 | A5D4382A09EC49E29B23DDFD /* DZStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 73BED8B2B52448ADB4391317 /* DZStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 59 | A9AB37FB950146F788B0C893 /* DZButtonStateStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 5F687C8FD63D4808AD40B709 /* DZButtonStateStyle.h */; }; 60 | ABD26B7B13E0483FACF572FB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07EBAC9C9E5C423D97625593 /* Foundation.framework */; }; 61 | AD8F2B3363294A6B914E4C29 /* DZPageControlStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = EE7C5A62331C4C53A2D54715 /* DZPageControlStyle.h */; }; 62 | B431E8CC0878499383B6F18C /* DZViewStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 51EB0B0A25714E948900454C /* DZViewStyle.h */; }; 63 | BE7AB4D4D9EC49A2AB875505 /* DZSegementStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = BED66C920EE549A4BB0FBD76 /* DZSegementStyle.h */; }; 64 | C146FEADF7704586BBF2C428 /* DZButtonStateStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 986FB4FB9EDD4228A7F51423 /* DZButtonStateStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 65 | D0FDAF80E1A94A469779F3F7 /* DZStyleRender.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E715FFC71494D249969CAF3 /* DZStyleRender.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 66 | D4FB9C29460F45F6A2630F35 /* DZTextFieldStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = BD804854F85D479EB64C9C95 /* DZTextFieldStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 67 | DC76BE1F45C24C33A50CF914 /* DZTextStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 83EBBB957E024510B40138AA /* DZTextStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 68 | DEE649A567F24D78980F1C4E /* DZLabelStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 8855A8CC3B9C4B49BDF1336A /* DZLabelStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 69 | E24899F6DC75412D80202D33 /* DZSwitchStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 918F9D40DB614E4EBEAA20AC /* DZSwitchStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 70 | E4C0DA6114444084BD1CCE12 /* DZStyleCSS.h in Headers */ = {isa = PBXBuildFile; fileRef = 04E2441F75ED48D1B4AB3019 /* DZStyleCSS.h */; }; 71 | E6A8A1F3563E42D492EE8D72 /* DZSwitchStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 918F9D40DB614E4EBEAA20AC /* DZSwitchStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 72 | E9C2686C3AC84AEF99A902F9 /* DZTextFieldStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = ECC3B548229140298F8ECFAB /* DZTextFieldStyle.h */; }; 73 | EC01FA7A22474FCE8AE8DC6A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07EBAC9C9E5C423D97625593 /* Foundation.framework */; }; 74 | EC148F3690144E76BC160E36 /* DZStyleCSS.h in Headers */ = {isa = PBXBuildFile; fileRef = 04E2441F75ED48D1B4AB3019 /* DZStyleCSS.h */; }; 75 | ECCF8096BE604F229EDC8894 /* DZTextStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 24B4116E891E4C7F94B299B6 /* DZTextStyle.h */; }; 76 | EEA93BC451FD4B81887D6FDC /* DZStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 49A05C62C5E24642A78B63B1 /* DZStyle.h */; }; 77 | F2C643352AEC4CEEA155D823 /* DZStyleCSS.m in Sources */ = {isa = PBXBuildFile; fileRef = F5BEA0C6EC6D48C58B92165D /* DZStyleCSS.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 78 | FACFE5CEA6AB40F086B1951D /* DZStyle.m in Sources */ = {isa = PBXBuildFile; fileRef = 73BED8B2B52448ADB4391317 /* DZStyle.m */; settings = {COMPILER_FLAGS = "-fobjc-arc"; }; }; 79 | /* End PBXBuildFile section */ 80 | 81 | /* Begin PBXContainerItemProxy section */ 82 | 235BF26C95694D2ABAD65FAF /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = DAD24186AABC4591A3AF6627 /* Project object */; 85 | proxyType = 1; 86 | remoteGlobalIDString = 4622BC935F6B4AE88531B757; 87 | remoteInfo = StyleSheet; 88 | }; 89 | 602CF0001C834060B8651854 /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = DAD24186AABC4591A3AF6627 /* Project object */; 92 | proxyType = 1; 93 | remoteGlobalIDString = 4622BC935F6B4AE88531B757; 94 | remoteInfo = StyleSheet; 95 | }; 96 | C1F8BF50B9D34B279F1EF3C0 /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = DAD24186AABC4591A3AF6627 /* Project object */; 99 | proxyType = 1; 100 | remoteGlobalIDString = C0C3362B3C354F24B66F4CEA; 101 | remoteInfo = "Pods-StyleSheet_Tests-StyleSheet"; 102 | }; 103 | D3A5156C8235422BA2DEB33B /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = DAD24186AABC4591A3AF6627 /* Project object */; 106 | proxyType = 1; 107 | remoteGlobalIDString = 9F8690EFE5B0444483E91860; 108 | remoteInfo = "Pods-StyleSheet_Example-StyleSheet"; 109 | }; 110 | /* End PBXContainerItemProxy section */ 111 | 112 | /* Begin PBXFileReference section */ 113 | 04E2441F75ED48D1B4AB3019 /* DZStyleCSS.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZStyleCSS.h; path = Pod/Classes/DZStyleCSS.h; sourceTree = ""; }; 114 | 07EBAC9C9E5C423D97625593 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 115 | 0F8AD789E14A4F8B928062AA /* libPods-StyleSheet_Example-StyleSheet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StyleSheet_Example-StyleSheet.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 116 | 15D3F858F32F46E2A293AA4D /* Pods-StyleSheet_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-StyleSheet_Tests-acknowledgements.markdown"; sourceTree = ""; }; 117 | 20835A71241A4A25B0825C9D /* Pods-StyleSheet_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-StyleSheet_Example-acknowledgements.plist"; sourceTree = ""; }; 118 | 2334B6FF723244A9AEA165F8 /* Pods-StyleSheet_Example-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-StyleSheet_Example-environment.h"; sourceTree = ""; }; 119 | 24B4116E891E4C7F94B299B6 /* DZTextStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZTextStyle.h; path = Pod/Classes/Style/DZTextStyle.h; sourceTree = ""; }; 120 | 2821DB11FE2B4FD2AE4ECAFE /* DZStyleRender.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZStyleRender.h; path = Pod/Classes/DZStyleRender.h; sourceTree = ""; }; 121 | 3610EC6EBCEC4B069F95D67C /* Pods-StyleSheet_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-StyleSheet_Tests-dummy.m"; sourceTree = ""; }; 122 | 3A2E08052A0741628C94A04A /* libPods-StyleSheet_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StyleSheet_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 123 | 3EAE599EF2374942A099C4A4 /* Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig"; sourceTree = ""; }; 124 | 47729B9D074E4C38AE775155 /* DZLabelStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZLabelStyle.h; path = Pod/Classes/Style/DZLabelStyle.h; sourceTree = ""; }; 125 | 49A05C62C5E24642A78B63B1 /* DZStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZStyle.h; path = Pod/Classes/Style/DZStyle.h; sourceTree = ""; }; 126 | 4B2D571EBC5D4D8A96B38663 /* DZPageControlStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZPageControlStyle.m; path = Pod/Classes/Style/DZPageControlStyle.m; sourceTree = ""; }; 127 | 4E93925D244B469FAA0ADB52 /* DZTextViewStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZTextViewStyle.h; path = Pod/Classes/Style/DZTextViewStyle.h; sourceTree = ""; }; 128 | 51EB0B0A25714E948900454C /* DZViewStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZViewStyle.h; path = Pod/Classes/Style/DZViewStyle.h; sourceTree = ""; }; 129 | 5F687C8FD63D4808AD40B709 /* DZButtonStateStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZButtonStateStyle.h; path = Pod/Classes/Style/DZButtonStateStyle.h; sourceTree = ""; }; 130 | 61A158D3B03C4F94BD69F1E8 /* Pods-StyleSheet_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-StyleSheet_Example-acknowledgements.markdown"; sourceTree = ""; }; 131 | 63C4017C43F64327A74E782F /* DZButtonStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZButtonStyle.m; path = Pod/Classes/Style/DZButtonStyle.m; sourceTree = ""; }; 132 | 65E58FB71B75DAAF00C75B09 /* DZNavigationBarStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DZNavigationBarStyle.h; path = Pod/Classes/Style/DZNavigationBarStyle.h; sourceTree = ""; }; 133 | 65E58FB81B75DAAF00C75B09 /* DZNavigationBarStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DZNavigationBarStyle.m; path = Pod/Classes/Style/DZNavigationBarStyle.m; sourceTree = ""; }; 134 | 65E58FBA1B75DD1400C75B09 /* DZMetricsStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DZMetricsStyle.h; path = Pod/Classes/Style/DZMetricsStyle.h; sourceTree = ""; }; 135 | 65E58FBB1B75DD1400C75B09 /* DZMetricsStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DZMetricsStyle.m; path = Pod/Classes/Style/DZMetricsStyle.m; sourceTree = ""; }; 136 | 65E58FBD1B75E0D300C75B09 /* DZMetricsContainerStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DZMetricsContainerStyle.h; path = Pod/Classes/Style/DZMetricsContainerStyle.h; sourceTree = ""; }; 137 | 65E58FBE1B75E0D300C75B09 /* DZMetricsContainerStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DZMetricsContainerStyle.m; path = Pod/Classes/Style/DZMetricsContainerStyle.m; sourceTree = ""; }; 138 | 702FC067D9BC44DC82623EA3 /* Pods-StyleSheet_Tests.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-StyleSheet_Tests.xcconfig"; sourceTree = ""; }; 139 | 73BED8B2B52448ADB4391317 /* DZStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZStyle.m; path = Pod/Classes/Style/DZStyle.m; sourceTree = ""; }; 140 | 8070FDFDC05547618BABF8C8 /* Pods-StyleSheet_Tests-StyleSheet-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-StyleSheet_Tests-StyleSheet-prefix.pch"; sourceTree = ""; }; 141 | 83EBBB957E024510B40138AA /* DZTextStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZTextStyle.m; path = Pod/Classes/Style/DZTextStyle.m; sourceTree = ""; }; 142 | 8855A8CC3B9C4B49BDF1336A /* DZLabelStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZLabelStyle.m; path = Pod/Classes/Style/DZLabelStyle.m; sourceTree = ""; }; 143 | 89D9F44B216444BA9AC5B883 /* Pods-StyleSheet_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-StyleSheet_Tests-acknowledgements.plist"; sourceTree = ""; }; 144 | 8D3D5CE3D2854D8497C3BAD0 /* libPods-StyleSheet_Tests-StyleSheet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StyleSheet_Tests-StyleSheet.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 145 | 8E715FFC71494D249969CAF3 /* DZStyleRender.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZStyleRender.m; path = Pod/Classes/DZStyleRender.m; sourceTree = ""; }; 146 | 902354EA395642FBBB7D781E /* DZButtonStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZButtonStyle.h; path = Pod/Classes/Style/DZButtonStyle.h; sourceTree = ""; }; 147 | 918F9D40DB614E4EBEAA20AC /* DZSwitchStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZSwitchStyle.m; path = Pod/Classes/Style/DZSwitchStyle.m; sourceTree = ""; }; 148 | 9838CD1B4B3246C5A9B886C0 /* DZTextViewStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZTextViewStyle.m; path = Pod/Classes/Style/DZTextViewStyle.m; sourceTree = ""; }; 149 | 986FB4FB9EDD4228A7F51423 /* DZButtonStateStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZButtonStateStyle.m; path = Pod/Classes/Style/DZButtonStateStyle.m; sourceTree = ""; }; 150 | A0125EF97FD54C8CBAD76E71 /* Pods-StyleSheet_Example-StyleSheet.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-StyleSheet_Example-StyleSheet.xcconfig"; sourceTree = ""; }; 151 | A87F0DD2C7D241D280DCB6B7 /* Pods-StyleSheet_Example-StyleSheet-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-StyleSheet_Example-StyleSheet-prefix.pch"; sourceTree = ""; }; 152 | ACF6024352AA49BE88F43D63 /* Pods-StyleSheet_Example.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-StyleSheet_Example.xcconfig"; sourceTree = ""; }; 153 | B109C08EF9324278B93B9A63 /* DZViewStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZViewStyle.m; path = Pod/Classes/Style/DZViewStyle.m; sourceTree = ""; }; 154 | B44EE63D37724D7787D1A81B /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 155 | B49B8C04C5AF4B45981FD987 /* Pods-StyleSheet_Tests-StyleSheet.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-StyleSheet_Tests-StyleSheet.xcconfig"; sourceTree = ""; }; 156 | B6186E230A684BB68E29D79F /* Pods-StyleSheet_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-StyleSheet_Example-resources.sh"; sourceTree = ""; }; 157 | B7E44E66B2D740A28B42B5D6 /* Pods-StyleSheet_Example-StyleSheet-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-StyleSheet_Example-StyleSheet-dummy.m"; sourceTree = ""; }; 158 | BD804854F85D479EB64C9C95 /* DZTextFieldStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZTextFieldStyle.m; path = Pod/Classes/Style/DZTextFieldStyle.m; sourceTree = ""; }; 159 | BEA448256C3E4B259810F496 /* UIView+Style.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UIView+Style.m"; path = "Pod/Classes/View-Category/UIView+Style.m"; sourceTree = ""; }; 160 | BED66C920EE549A4BB0FBD76 /* DZSegementStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZSegementStyle.h; path = Pod/Classes/Style/DZSegementStyle.h; sourceTree = ""; }; 161 | BED6CCAB64354DF482E31E1C /* libPods-StyleSheet_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StyleSheet_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 162 | C29E9515BCD94C7BBC40CD37 /* Pods-StyleSheet_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-StyleSheet_Tests-resources.sh"; sourceTree = ""; }; 163 | C3DB4D4893FE474FA415B4BE /* StyleSheet.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StyleSheet.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 164 | C483BB85293C497D8146F1B3 /* Pods-StyleSheet_Tests-StyleSheet-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-StyleSheet_Tests-StyleSheet-dummy.m"; sourceTree = ""; }; 165 | CFA444CC651743F990E82C9E /* UIView+Style.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UIView+Style.h"; path = "Pod/Classes/View-Category/UIView+Style.h"; sourceTree = ""; }; 166 | E736687FAE744640AD0AFD49 /* DZSegementStyle.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZSegementStyle.m; path = Pod/Classes/Style/DZSegementStyle.m; sourceTree = ""; }; 167 | ECC3B548229140298F8ECFAB /* DZTextFieldStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZTextFieldStyle.h; path = Pod/Classes/Style/DZTextFieldStyle.h; sourceTree = ""; }; 168 | EE7C5A62331C4C53A2D54715 /* DZPageControlStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZPageControlStyle.h; path = Pod/Classes/Style/DZPageControlStyle.h; sourceTree = ""; }; 169 | F0502BCFD0974AFAA91651E3 /* DZSwitchStyle.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = DZSwitchStyle.h; path = Pod/Classes/Style/DZSwitchStyle.h; sourceTree = ""; }; 170 | F5BEA0C6EC6D48C58B92165D /* DZStyleCSS.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = DZStyleCSS.m; path = Pod/Classes/DZStyleCSS.m; sourceTree = ""; }; 171 | F8CEF1B13E0A4CB180BF4863 /* Pods-StyleSheet_Tests-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-StyleSheet_Tests-environment.h"; sourceTree = ""; }; 172 | FB4B5B13BE2F4486BF3A3AFE /* Pods-StyleSheet_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-StyleSheet_Example-dummy.m"; sourceTree = ""; }; 173 | FC1CD73B5E4A4E6B9E0CD9B6 /* Pods-StyleSheet_Example-StyleSheet-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-StyleSheet_Example-StyleSheet-Private.xcconfig"; sourceTree = ""; }; 174 | /* End PBXFileReference section */ 175 | 176 | /* Begin PBXFrameworksBuildPhase section */ 177 | 36F9DD53746B44C388C3891D /* Frameworks */ = { 178 | isa = PBXFrameworksBuildPhase; 179 | buildActionMask = 2147483647; 180 | files = ( 181 | 1D898DFAADD64B79A3D4B25D /* Foundation.framework in Frameworks */, 182 | 53AD79EBA9F246E882720EFF /* libPods-StyleSheet_Tests-StyleSheet.a in Frameworks */, 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | 8155405031FB4439BD9A9A6B /* Frameworks */ = { 187 | isa = PBXFrameworksBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | runOnlyForDeploymentPostprocessing = 0; 192 | }; 193 | 978E2B0908C240D391BABFEB /* Frameworks */ = { 194 | isa = PBXFrameworksBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ABD26B7B13E0483FACF572FB /* Foundation.framework in Frameworks */, 198 | 1C4F8F2B4DCD43D8A0FEE148 /* libPods-StyleSheet_Example-StyleSheet.a in Frameworks */, 199 | ); 200 | runOnlyForDeploymentPostprocessing = 0; 201 | }; 202 | B733EA99654142B0A5D71289 /* Frameworks */ = { 203 | isa = PBXFrameworksBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | 4E44F2C8B42044EFADE546D8 /* Foundation.framework in Frameworks */, 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | F49FAEBE2C7F46DD9C406522 /* Frameworks */ = { 211 | isa = PBXFrameworksBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | EC01FA7A22474FCE8AE8DC6A /* Foundation.framework in Frameworks */, 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | }; 218 | /* End PBXFrameworksBuildPhase section */ 219 | 220 | /* Begin PBXGroup section */ 221 | 05F514A4F242452C9E59FC24 /* Frameworks */ = { 222 | isa = PBXGroup; 223 | children = ( 224 | 1AAF4E252A2E45E0A8AD7DE5 /* iOS */, 225 | ); 226 | name = Frameworks; 227 | sourceTree = ""; 228 | }; 229 | 15B0345935144108BF522FC2 /* Pods-StyleSheet_Example */ = { 230 | isa = PBXGroup; 231 | children = ( 232 | ACF6024352AA49BE88F43D63 /* Pods-StyleSheet_Example.xcconfig */, 233 | 61A158D3B03C4F94BD69F1E8 /* Pods-StyleSheet_Example-acknowledgements.markdown */, 234 | 20835A71241A4A25B0825C9D /* Pods-StyleSheet_Example-acknowledgements.plist */, 235 | FB4B5B13BE2F4486BF3A3AFE /* Pods-StyleSheet_Example-dummy.m */, 236 | 2334B6FF723244A9AEA165F8 /* Pods-StyleSheet_Example-environment.h */, 237 | B6186E230A684BB68E29D79F /* Pods-StyleSheet_Example-resources.sh */, 238 | ); 239 | name = "Pods-StyleSheet_Example"; 240 | sourceTree = ""; 241 | }; 242 | 1AAF4E252A2E45E0A8AD7DE5 /* iOS */ = { 243 | isa = PBXGroup; 244 | children = ( 245 | 07EBAC9C9E5C423D97625593 /* Foundation.framework */, 246 | ); 247 | name = iOS; 248 | sourceTree = ""; 249 | }; 250 | 2D120A89B86145F0917B5DBB /* Products */ = { 251 | isa = PBXGroup; 252 | children = ( 253 | C3DB4D4893FE474FA415B4BE /* StyleSheet.bundle */, 254 | BED6CCAB64354DF482E31E1C /* libPods-StyleSheet_Example.a */, 255 | 0F8AD789E14A4F8B928062AA /* libPods-StyleSheet_Example-StyleSheet.a */, 256 | 3A2E08052A0741628C94A04A /* libPods-StyleSheet_Tests.a */, 257 | 8D3D5CE3D2854D8497C3BAD0 /* libPods-StyleSheet_Tests-StyleSheet.a */, 258 | ); 259 | name = Products; 260 | sourceTree = ""; 261 | }; 262 | 8D03E86950E54481B0901D0A /* Pods-StyleSheet_Tests */ = { 263 | isa = PBXGroup; 264 | children = ( 265 | 702FC067D9BC44DC82623EA3 /* Pods-StyleSheet_Tests.xcconfig */, 266 | 15D3F858F32F46E2A293AA4D /* Pods-StyleSheet_Tests-acknowledgements.markdown */, 267 | 89D9F44B216444BA9AC5B883 /* Pods-StyleSheet_Tests-acknowledgements.plist */, 268 | 3610EC6EBCEC4B069F95D67C /* Pods-StyleSheet_Tests-dummy.m */, 269 | F8CEF1B13E0A4CB180BF4863 /* Pods-StyleSheet_Tests-environment.h */, 270 | C29E9515BCD94C7BBC40CD37 /* Pods-StyleSheet_Tests-resources.sh */, 271 | ); 272 | name = "Pods-StyleSheet_Tests"; 273 | sourceTree = ""; 274 | }; 275 | 9BEF477CCDBF41B3B65300A1 /* Targets Support Files */ = { 276 | isa = PBXGroup; 277 | children = ( 278 | 15B0345935144108BF522FC2 /* Pods-StyleSheet_Example */, 279 | 8D03E86950E54481B0901D0A /* Pods-StyleSheet_Tests */, 280 | ); 281 | name = "Targets Support Files"; 282 | sourceTree = ""; 283 | }; 284 | A207325F62DD45AD91D75BD2 /* Support Files */ = { 285 | isa = PBXGroup; 286 | children = ( 287 | A0125EF97FD54C8CBAD76E71 /* Pods-StyleSheet_Example-StyleSheet.xcconfig */, 288 | FC1CD73B5E4A4E6B9E0CD9B6 /* Pods-StyleSheet_Example-StyleSheet-Private.xcconfig */, 289 | B7E44E66B2D740A28B42B5D6 /* Pods-StyleSheet_Example-StyleSheet-dummy.m */, 290 | A87F0DD2C7D241D280DCB6B7 /* Pods-StyleSheet_Example-StyleSheet-prefix.pch */, 291 | B49B8C04C5AF4B45981FD987 /* Pods-StyleSheet_Tests-StyleSheet.xcconfig */, 292 | 3EAE599EF2374942A099C4A4 /* Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig */, 293 | C483BB85293C497D8146F1B3 /* Pods-StyleSheet_Tests-StyleSheet-dummy.m */, 294 | 8070FDFDC05547618BABF8C8 /* Pods-StyleSheet_Tests-StyleSheet-prefix.pch */, 295 | ); 296 | name = "Support Files"; 297 | sourceTree = SOURCE_ROOT; 298 | }; 299 | D6835782BB62417EB8BDFE17 /* StyleSheet */ = { 300 | isa = PBXGroup; 301 | children = ( 302 | 65E58FB71B75DAAF00C75B09 /* DZNavigationBarStyle.h */, 303 | 65E58FB81B75DAAF00C75B09 /* DZNavigationBarStyle.m */, 304 | 5F687C8FD63D4808AD40B709 /* DZButtonStateStyle.h */, 305 | 986FB4FB9EDD4228A7F51423 /* DZButtonStateStyle.m */, 306 | 902354EA395642FBBB7D781E /* DZButtonStyle.h */, 307 | 63C4017C43F64327A74E782F /* DZButtonStyle.m */, 308 | 47729B9D074E4C38AE775155 /* DZLabelStyle.h */, 309 | 8855A8CC3B9C4B49BDF1336A /* DZLabelStyle.m */, 310 | EE7C5A62331C4C53A2D54715 /* DZPageControlStyle.h */, 311 | 4B2D571EBC5D4D8A96B38663 /* DZPageControlStyle.m */, 312 | BED66C920EE549A4BB0FBD76 /* DZSegementStyle.h */, 313 | E736687FAE744640AD0AFD49 /* DZSegementStyle.m */, 314 | 49A05C62C5E24642A78B63B1 /* DZStyle.h */, 315 | 73BED8B2B52448ADB4391317 /* DZStyle.m */, 316 | 04E2441F75ED48D1B4AB3019 /* DZStyleCSS.h */, 317 | F5BEA0C6EC6D48C58B92165D /* DZStyleCSS.m */, 318 | 2821DB11FE2B4FD2AE4ECAFE /* DZStyleRender.h */, 319 | 8E715FFC71494D249969CAF3 /* DZStyleRender.m */, 320 | F0502BCFD0974AFAA91651E3 /* DZSwitchStyle.h */, 321 | 918F9D40DB614E4EBEAA20AC /* DZSwitchStyle.m */, 322 | ECC3B548229140298F8ECFAB /* DZTextFieldStyle.h */, 323 | BD804854F85D479EB64C9C95 /* DZTextFieldStyle.m */, 324 | 24B4116E891E4C7F94B299B6 /* DZTextStyle.h */, 325 | 83EBBB957E024510B40138AA /* DZTextStyle.m */, 326 | 4E93925D244B469FAA0ADB52 /* DZTextViewStyle.h */, 327 | 9838CD1B4B3246C5A9B886C0 /* DZTextViewStyle.m */, 328 | 51EB0B0A25714E948900454C /* DZViewStyle.h */, 329 | B109C08EF9324278B93B9A63 /* DZViewStyle.m */, 330 | CFA444CC651743F990E82C9E /* UIView+Style.h */, 331 | BEA448256C3E4B259810F496 /* UIView+Style.m */, 332 | A207325F62DD45AD91D75BD2 /* Support Files */, 333 | 65E58FBA1B75DD1400C75B09 /* DZMetricsStyle.h */, 334 | 65E58FBB1B75DD1400C75B09 /* DZMetricsStyle.m */, 335 | 65E58FBD1B75E0D300C75B09 /* DZMetricsContainerStyle.h */, 336 | 65E58FBE1B75E0D300C75B09 /* DZMetricsContainerStyle.m */, 337 | ); 338 | name = StyleSheet; 339 | path = ../..; 340 | sourceTree = ""; 341 | }; 342 | E2ABE81100444F9C87DA578A /* Development Pods */ = { 343 | isa = PBXGroup; 344 | children = ( 345 | D6835782BB62417EB8BDFE17 /* StyleSheet */, 346 | ); 347 | name = "Development Pods"; 348 | sourceTree = ""; 349 | }; 350 | F8929C2C1CF447BD8EE4FC23 = { 351 | isa = PBXGroup; 352 | children = ( 353 | B44EE63D37724D7787D1A81B /* Podfile */, 354 | E2ABE81100444F9C87DA578A /* Development Pods */, 355 | 05F514A4F242452C9E59FC24 /* Frameworks */, 356 | 2D120A89B86145F0917B5DBB /* Products */, 357 | 9BEF477CCDBF41B3B65300A1 /* Targets Support Files */, 358 | ); 359 | sourceTree = ""; 360 | }; 361 | /* End PBXGroup section */ 362 | 363 | /* Begin PBXHeadersBuildPhase section */ 364 | 982A9C8EB1154D66BAEDEAF4 /* Headers */ = { 365 | isa = PBXHeadersBuildPhase; 366 | buildActionMask = 2147483647; 367 | files = ( 368 | 9E95E900B55046F1921E0FB7 /* DZButtonStateStyle.h in Headers */, 369 | 6590FFFC764A45A68E4E7CD5 /* DZButtonStyle.h in Headers */, 370 | 901118FBF36649A8BB6687CE /* DZLabelStyle.h in Headers */, 371 | AD8F2B3363294A6B914E4C29 /* DZPageControlStyle.h in Headers */, 372 | BE7AB4D4D9EC49A2AB875505 /* DZSegementStyle.h in Headers */, 373 | 1944818F43AA4B1ABAD0F73C /* DZStyle.h in Headers */, 374 | E4C0DA6114444084BD1CCE12 /* DZStyleCSS.h in Headers */, 375 | 69B3638C12314E34A0DFD448 /* DZStyleRender.h in Headers */, 376 | 51EBB19253EC425E95D3D0E6 /* DZSwitchStyle.h in Headers */, 377 | 46A1C71DF9C34E4FB2D80610 /* DZTextFieldStyle.h in Headers */, 378 | ECCF8096BE604F229EDC8894 /* DZTextStyle.h in Headers */, 379 | 32EA2879B6794BF7AF908EE9 /* DZTextViewStyle.h in Headers */, 380 | A203EF8105ED4AC29E8F3654 /* DZViewStyle.h in Headers */, 381 | 6B50C1E2C9D64313AB536F54 /* UIView+Style.h in Headers */, 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | }; 385 | F339A03114BA45EA9228E298 /* Headers */ = { 386 | isa = PBXHeadersBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | A9AB37FB950146F788B0C893 /* DZButtonStateStyle.h in Headers */, 390 | 1696AB1DAAD1472D958B782F /* DZButtonStyle.h in Headers */, 391 | 54D69A306A114365B0167DD9 /* DZLabelStyle.h in Headers */, 392 | 66B795C7863F47F7A3E5E6AE /* DZPageControlStyle.h in Headers */, 393 | 06B86B6CBDB346B9A56FF2C2 /* DZSegementStyle.h in Headers */, 394 | EEA93BC451FD4B81887D6FDC /* DZStyle.h in Headers */, 395 | EC148F3690144E76BC160E36 /* DZStyleCSS.h in Headers */, 396 | 23CBCB78714D432394DDC632 /* DZStyleRender.h in Headers */, 397 | 00B9AA03DAD74ABFA726D3A7 /* DZSwitchStyle.h in Headers */, 398 | E9C2686C3AC84AEF99A902F9 /* DZTextFieldStyle.h in Headers */, 399 | 745D93E1F7DD4851B629DCD6 /* DZTextStyle.h in Headers */, 400 | 9376DC3E2CAB4322AFB8162D /* DZTextViewStyle.h in Headers */, 401 | B431E8CC0878499383B6F18C /* DZViewStyle.h in Headers */, 402 | 0F50441C33CF4B47B7020EDE /* UIView+Style.h in Headers */, 403 | ); 404 | runOnlyForDeploymentPostprocessing = 0; 405 | }; 406 | /* End PBXHeadersBuildPhase section */ 407 | 408 | /* Begin PBXNativeTarget section */ 409 | 27E364F3D5F94C988DA8905B /* Pods-StyleSheet_Example */ = { 410 | isa = PBXNativeTarget; 411 | buildConfigurationList = BD0C3AEC00074202AF7608FE /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Example" */; 412 | buildPhases = ( 413 | E33FD3968FC84DC88BAA20DC /* Sources */, 414 | 978E2B0908C240D391BABFEB /* Frameworks */, 415 | ); 416 | buildRules = ( 417 | ); 418 | dependencies = ( 419 | 635DFEAD8337401C94F85170 /* PBXTargetDependency */, 420 | ); 421 | name = "Pods-StyleSheet_Example"; 422 | productName = "Pods-StyleSheet_Example"; 423 | productReference = BED6CCAB64354DF482E31E1C /* libPods-StyleSheet_Example.a */; 424 | productType = "com.apple.product-type.library.static"; 425 | }; 426 | 4622BC935F6B4AE88531B757 /* StyleSheet */ = { 427 | isa = PBXNativeTarget; 428 | buildConfigurationList = 2D08F49A5469446D9AD7BE9F /* Build configuration list for PBXNativeTarget "StyleSheet" */; 429 | buildPhases = ( 430 | 95207109C4804C289D4C58EC /* Sources */, 431 | 8155405031FB4439BD9A9A6B /* Frameworks */, 432 | B579257495D446A5933161AC /* Resources */, 433 | ); 434 | buildRules = ( 435 | ); 436 | dependencies = ( 437 | ); 438 | name = StyleSheet; 439 | productName = StyleSheet; 440 | productReference = C3DB4D4893FE474FA415B4BE /* StyleSheet.bundle */; 441 | productType = "com.apple.product-type.bundle"; 442 | }; 443 | 6F1AC2B667AB4E3A9DB60A98 /* Pods-StyleSheet_Tests */ = { 444 | isa = PBXNativeTarget; 445 | buildConfigurationList = A4FAE31410144F6C8483F7CC /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Tests" */; 446 | buildPhases = ( 447 | 61EB1ED9FC1343348FE9DD6B /* Sources */, 448 | 36F9DD53746B44C388C3891D /* Frameworks */, 449 | ); 450 | buildRules = ( 451 | ); 452 | dependencies = ( 453 | 7D8394EB488F43718DDC53FF /* PBXTargetDependency */, 454 | ); 455 | name = "Pods-StyleSheet_Tests"; 456 | productName = "Pods-StyleSheet_Tests"; 457 | productReference = 3A2E08052A0741628C94A04A /* libPods-StyleSheet_Tests.a */; 458 | productType = "com.apple.product-type.library.static"; 459 | }; 460 | 9F8690EFE5B0444483E91860 /* Pods-StyleSheet_Example-StyleSheet */ = { 461 | isa = PBXNativeTarget; 462 | buildConfigurationList = 23FD6795C61843519D22FA4B /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Example-StyleSheet" */; 463 | buildPhases = ( 464 | 1B0862E893A34952BB9FD3F6 /* Sources */, 465 | B733EA99654142B0A5D71289 /* Frameworks */, 466 | 982A9C8EB1154D66BAEDEAF4 /* Headers */, 467 | ); 468 | buildRules = ( 469 | ); 470 | dependencies = ( 471 | EF0F978D7C064AF49E4859C2 /* PBXTargetDependency */, 472 | ); 473 | name = "Pods-StyleSheet_Example-StyleSheet"; 474 | productName = "Pods-StyleSheet_Example-StyleSheet"; 475 | productReference = 0F8AD789E14A4F8B928062AA /* libPods-StyleSheet_Example-StyleSheet.a */; 476 | productType = "com.apple.product-type.library.static"; 477 | }; 478 | C0C3362B3C354F24B66F4CEA /* Pods-StyleSheet_Tests-StyleSheet */ = { 479 | isa = PBXNativeTarget; 480 | buildConfigurationList = 03DD7282DA3A4624B3949493 /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Tests-StyleSheet" */; 481 | buildPhases = ( 482 | 6D7B654805DA4E629EFAE722 /* Sources */, 483 | F49FAEBE2C7F46DD9C406522 /* Frameworks */, 484 | F339A03114BA45EA9228E298 /* Headers */, 485 | ); 486 | buildRules = ( 487 | ); 488 | dependencies = ( 489 | DAF052B71D0B4DBD89093A3C /* PBXTargetDependency */, 490 | ); 491 | name = "Pods-StyleSheet_Tests-StyleSheet"; 492 | productName = "Pods-StyleSheet_Tests-StyleSheet"; 493 | productReference = 8D3D5CE3D2854D8497C3BAD0 /* libPods-StyleSheet_Tests-StyleSheet.a */; 494 | productType = "com.apple.product-type.library.static"; 495 | }; 496 | /* End PBXNativeTarget section */ 497 | 498 | /* Begin PBXProject section */ 499 | DAD24186AABC4591A3AF6627 /* Project object */ = { 500 | isa = PBXProject; 501 | attributes = { 502 | LastUpgradeCheck = 0510; 503 | }; 504 | buildConfigurationList = EA48DBB65E584A0FA6F4FE81 /* Build configuration list for PBXProject "Pods" */; 505 | compatibilityVersion = "Xcode 3.2"; 506 | developmentRegion = English; 507 | hasScannedForEncodings = 0; 508 | knownRegions = ( 509 | en, 510 | ); 511 | mainGroup = F8929C2C1CF447BD8EE4FC23; 512 | productRefGroup = 2D120A89B86145F0917B5DBB /* Products */; 513 | projectDirPath = ""; 514 | projectRoot = ""; 515 | targets = ( 516 | 27E364F3D5F94C988DA8905B /* Pods-StyleSheet_Example */, 517 | 9F8690EFE5B0444483E91860 /* Pods-StyleSheet_Example-StyleSheet */, 518 | 6F1AC2B667AB4E3A9DB60A98 /* Pods-StyleSheet_Tests */, 519 | C0C3362B3C354F24B66F4CEA /* Pods-StyleSheet_Tests-StyleSheet */, 520 | 4622BC935F6B4AE88531B757 /* StyleSheet */, 521 | ); 522 | }; 523 | /* End PBXProject section */ 524 | 525 | /* Begin PBXResourcesBuildPhase section */ 526 | B579257495D446A5933161AC /* Resources */ = { 527 | isa = PBXResourcesBuildPhase; 528 | buildActionMask = 2147483647; 529 | files = ( 530 | ); 531 | runOnlyForDeploymentPostprocessing = 0; 532 | }; 533 | /* End PBXResourcesBuildPhase section */ 534 | 535 | /* Begin PBXSourcesBuildPhase section */ 536 | 1B0862E893A34952BB9FD3F6 /* Sources */ = { 537 | isa = PBXSourcesBuildPhase; 538 | buildActionMask = 2147483647; 539 | files = ( 540 | 63D395DEE2E64B4199BC28BC /* DZButtonStateStyle.m in Sources */, 541 | 190A707EDD5C415C9A2EB1EF /* DZButtonStyle.m in Sources */, 542 | 3111266325B849239BE29A76 /* DZLabelStyle.m in Sources */, 543 | 255B89B793D541A4999708C8 /* DZPageControlStyle.m in Sources */, 544 | 0FCBB5FDF8584040A0E34FA7 /* DZSegementStyle.m in Sources */, 545 | FACFE5CEA6AB40F086B1951D /* DZStyle.m in Sources */, 546 | F2C643352AEC4CEEA155D823 /* DZStyleCSS.m in Sources */, 547 | 46CEEDB5475A4C8E954C9D58 /* DZStyleRender.m in Sources */, 548 | E24899F6DC75412D80202D33 /* DZSwitchStyle.m in Sources */, 549 | 5951838A57F747399E7ECF1A /* DZTextFieldStyle.m in Sources */, 550 | DC76BE1F45C24C33A50CF914 /* DZTextStyle.m in Sources */, 551 | 9D50CD874B72432D95AF519C /* DZTextViewStyle.m in Sources */, 552 | 86537C6154E740C8AAA7C362 /* DZViewStyle.m in Sources */, 553 | 91ABA43C491F4B7BAA697E9D /* Pods-StyleSheet_Example-StyleSheet-dummy.m in Sources */, 554 | 647B426F2116433E9662A7BD /* UIView+Style.m in Sources */, 555 | ); 556 | runOnlyForDeploymentPostprocessing = 0; 557 | }; 558 | 61EB1ED9FC1343348FE9DD6B /* Sources */ = { 559 | isa = PBXSourcesBuildPhase; 560 | buildActionMask = 2147483647; 561 | files = ( 562 | 034054DB52AA415AA6BBE09F /* Pods-StyleSheet_Tests-dummy.m in Sources */, 563 | ); 564 | runOnlyForDeploymentPostprocessing = 0; 565 | }; 566 | 6D7B654805DA4E629EFAE722 /* Sources */ = { 567 | isa = PBXSourcesBuildPhase; 568 | buildActionMask = 2147483647; 569 | files = ( 570 | C146FEADF7704586BBF2C428 /* DZButtonStateStyle.m in Sources */, 571 | 2D26E44289744A8681E81156 /* DZButtonStyle.m in Sources */, 572 | DEE649A567F24D78980F1C4E /* DZLabelStyle.m in Sources */, 573 | 9470968249E3430C917ED2CA /* DZPageControlStyle.m in Sources */, 574 | 95153E9E12BA47B087776F0D /* DZSegementStyle.m in Sources */, 575 | A5D4382A09EC49E29B23DDFD /* DZStyle.m in Sources */, 576 | 57007CC9962543DEB83EEDB7 /* DZStyleCSS.m in Sources */, 577 | D0FDAF80E1A94A469779F3F7 /* DZStyleRender.m in Sources */, 578 | E6A8A1F3563E42D492EE8D72 /* DZSwitchStyle.m in Sources */, 579 | D4FB9C29460F45F6A2630F35 /* DZTextFieldStyle.m in Sources */, 580 | A3B87A0A62214D3C93560F09 /* DZTextStyle.m in Sources */, 581 | 747B0467EEBE478FBF1AE1B9 /* DZTextViewStyle.m in Sources */, 582 | 7DD7996BE35D4E0BAA74CC96 /* DZViewStyle.m in Sources */, 583 | 8054D105ED834FE0A8297693 /* Pods-StyleSheet_Tests-StyleSheet-dummy.m in Sources */, 584 | 8693D34CADCD4EB98E3EB6D1 /* UIView+Style.m in Sources */, 585 | ); 586 | runOnlyForDeploymentPostprocessing = 0; 587 | }; 588 | 95207109C4804C289D4C58EC /* Sources */ = { 589 | isa = PBXSourcesBuildPhase; 590 | buildActionMask = 2147483647; 591 | files = ( 592 | ); 593 | runOnlyForDeploymentPostprocessing = 0; 594 | }; 595 | E33FD3968FC84DC88BAA20DC /* Sources */ = { 596 | isa = PBXSourcesBuildPhase; 597 | buildActionMask = 2147483647; 598 | files = ( 599 | 314C699E97504FEFA337134C /* Pods-StyleSheet_Example-dummy.m in Sources */, 600 | 65E58FBF1B75E0D300C75B09 /* DZMetricsContainerStyle.m in Sources */, 601 | 65E58FB91B75DAAF00C75B09 /* DZNavigationBarStyle.m in Sources */, 602 | 65E58FBC1B75DD1400C75B09 /* DZMetricsStyle.m in Sources */, 603 | ); 604 | runOnlyForDeploymentPostprocessing = 0; 605 | }; 606 | /* End PBXSourcesBuildPhase section */ 607 | 608 | /* Begin PBXTargetDependency section */ 609 | 635DFEAD8337401C94F85170 /* PBXTargetDependency */ = { 610 | isa = PBXTargetDependency; 611 | target = 9F8690EFE5B0444483E91860 /* Pods-StyleSheet_Example-StyleSheet */; 612 | targetProxy = D3A5156C8235422BA2DEB33B /* PBXContainerItemProxy */; 613 | }; 614 | 7D8394EB488F43718DDC53FF /* PBXTargetDependency */ = { 615 | isa = PBXTargetDependency; 616 | target = C0C3362B3C354F24B66F4CEA /* Pods-StyleSheet_Tests-StyleSheet */; 617 | targetProxy = C1F8BF50B9D34B279F1EF3C0 /* PBXContainerItemProxy */; 618 | }; 619 | DAF052B71D0B4DBD89093A3C /* PBXTargetDependency */ = { 620 | isa = PBXTargetDependency; 621 | target = 4622BC935F6B4AE88531B757 /* StyleSheet */; 622 | targetProxy = 235BF26C95694D2ABAD65FAF /* PBXContainerItemProxy */; 623 | }; 624 | EF0F978D7C064AF49E4859C2 /* PBXTargetDependency */ = { 625 | isa = PBXTargetDependency; 626 | target = 4622BC935F6B4AE88531B757 /* StyleSheet */; 627 | targetProxy = 602CF0001C834060B8651854 /* PBXContainerItemProxy */; 628 | }; 629 | /* End PBXTargetDependency section */ 630 | 631 | /* Begin XCBuildConfiguration section */ 632 | 1F74B180BDDA4261BE767742 /* Release */ = { 633 | isa = XCBuildConfiguration; 634 | buildSettings = { 635 | PRODUCT_NAME = "$(TARGET_NAME)"; 636 | SDKROOT = iphoneos; 637 | SKIP_INSTALL = YES; 638 | WRAPPER_EXTENSION = bundle; 639 | }; 640 | name = Release; 641 | }; 642 | 236C0C2AC13843CFBCFFC6A5 /* Release */ = { 643 | isa = XCBuildConfiguration; 644 | baseConfigurationReference = ACF6024352AA49BE88F43D63 /* Pods-StyleSheet_Example.xcconfig */; 645 | buildSettings = { 646 | ALWAYS_SEARCH_USER_PATHS = NO; 647 | COPY_PHASE_STRIP = YES; 648 | DSTROOT = /tmp/xcodeproj.dst; 649 | GCC_C_LANGUAGE_STANDARD = gnu99; 650 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 651 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 652 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 653 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 654 | OTHER_CFLAGS = ( 655 | "-DNS_BLOCK_ASSERTIONS=1", 656 | "$(inherited)", 657 | ); 658 | OTHER_CPLUSPLUSFLAGS = ( 659 | "-DNS_BLOCK_ASSERTIONS=1", 660 | "$(inherited)", 661 | ); 662 | OTHER_LDFLAGS = ""; 663 | PRODUCT_NAME = "$(TARGET_NAME)"; 664 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 665 | SDKROOT = iphoneos; 666 | SKIP_INSTALL = YES; 667 | VALIDATE_PRODUCT = YES; 668 | }; 669 | name = Release; 670 | }; 671 | 27970C53BBDD460CA730E46F /* Debug */ = { 672 | isa = XCBuildConfiguration; 673 | baseConfigurationReference = 702FC067D9BC44DC82623EA3 /* Pods-StyleSheet_Tests.xcconfig */; 674 | buildSettings = { 675 | ALWAYS_SEARCH_USER_PATHS = NO; 676 | COPY_PHASE_STRIP = NO; 677 | DSTROOT = /tmp/xcodeproj.dst; 678 | GCC_C_LANGUAGE_STANDARD = gnu99; 679 | GCC_DYNAMIC_NO_PIC = NO; 680 | GCC_OPTIMIZATION_LEVEL = 0; 681 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 682 | GCC_PREPROCESSOR_DEFINITIONS = ( 683 | "DEBUG=1", 684 | "$(inherited)", 685 | ); 686 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 687 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 688 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 689 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 690 | OTHER_LDFLAGS = ""; 691 | PRODUCT_NAME = "$(TARGET_NAME)"; 692 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 693 | SDKROOT = iphoneos; 694 | SKIP_INSTALL = YES; 695 | }; 696 | name = Debug; 697 | }; 698 | 35ABFF99018B4AA1B8E25436 /* Debug */ = { 699 | isa = XCBuildConfiguration; 700 | buildSettings = { 701 | PRODUCT_NAME = "$(TARGET_NAME)"; 702 | SDKROOT = iphoneos; 703 | SKIP_INSTALL = YES; 704 | WRAPPER_EXTENSION = bundle; 705 | }; 706 | name = Debug; 707 | }; 708 | 3D1BD8D8A08E436F876F9676 /* Release */ = { 709 | isa = XCBuildConfiguration; 710 | buildSettings = { 711 | ALWAYS_SEARCH_USER_PATHS = NO; 712 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 713 | CLANG_CXX_LIBRARY = "libc++"; 714 | CLANG_ENABLE_MODULES = YES; 715 | CLANG_ENABLE_OBJC_ARC = NO; 716 | CLANG_WARN_BOOL_CONVERSION = YES; 717 | CLANG_WARN_CONSTANT_CONVERSION = YES; 718 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 719 | CLANG_WARN_EMPTY_BODY = YES; 720 | CLANG_WARN_ENUM_CONVERSION = YES; 721 | CLANG_WARN_INT_CONVERSION = YES; 722 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 723 | COPY_PHASE_STRIP = NO; 724 | ENABLE_NS_ASSERTIONS = NO; 725 | GCC_C_LANGUAGE_STANDARD = gnu99; 726 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 727 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 728 | GCC_WARN_UNDECLARED_SELECTOR = YES; 729 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 730 | GCC_WARN_UNUSED_FUNCTION = YES; 731 | GCC_WARN_UNUSED_VARIABLE = YES; 732 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 733 | STRIP_INSTALLED_PRODUCT = NO; 734 | VALIDATE_PRODUCT = YES; 735 | }; 736 | name = Release; 737 | }; 738 | 5B71CD26D0494480A4F58B89 /* Release */ = { 739 | isa = XCBuildConfiguration; 740 | baseConfigurationReference = 3EAE599EF2374942A099C4A4 /* Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig */; 741 | buildSettings = { 742 | ALWAYS_SEARCH_USER_PATHS = NO; 743 | COPY_PHASE_STRIP = YES; 744 | DSTROOT = /tmp/xcodeproj.dst; 745 | GCC_C_LANGUAGE_STANDARD = gnu99; 746 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 747 | GCC_PREFIX_HEADER = "Pods-StyleSheet_Tests-StyleSheet-prefix.pch"; 748 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 749 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 750 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 751 | OTHER_CFLAGS = ( 752 | "-DNS_BLOCK_ASSERTIONS=1", 753 | "$(inherited)", 754 | ); 755 | OTHER_CPLUSPLUSFLAGS = ( 756 | "-DNS_BLOCK_ASSERTIONS=1", 757 | "$(inherited)", 758 | ); 759 | OTHER_LDFLAGS = ""; 760 | PRODUCT_NAME = "$(TARGET_NAME)"; 761 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 762 | SDKROOT = iphoneos; 763 | SKIP_INSTALL = YES; 764 | VALIDATE_PRODUCT = YES; 765 | }; 766 | name = Release; 767 | }; 768 | 7CA0452087434313B4E03190 /* Debug */ = { 769 | isa = XCBuildConfiguration; 770 | baseConfigurationReference = ACF6024352AA49BE88F43D63 /* Pods-StyleSheet_Example.xcconfig */; 771 | buildSettings = { 772 | ALWAYS_SEARCH_USER_PATHS = NO; 773 | COPY_PHASE_STRIP = NO; 774 | DSTROOT = /tmp/xcodeproj.dst; 775 | GCC_C_LANGUAGE_STANDARD = gnu99; 776 | GCC_DYNAMIC_NO_PIC = NO; 777 | GCC_OPTIMIZATION_LEVEL = 0; 778 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 779 | GCC_PREPROCESSOR_DEFINITIONS = ( 780 | "DEBUG=1", 781 | "$(inherited)", 782 | ); 783 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 784 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 785 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 786 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 787 | OTHER_LDFLAGS = ""; 788 | PRODUCT_NAME = "$(TARGET_NAME)"; 789 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 790 | SDKROOT = iphoneos; 791 | SKIP_INSTALL = YES; 792 | }; 793 | name = Debug; 794 | }; 795 | 95A19298BB274CBCA90A349B /* Debug */ = { 796 | isa = XCBuildConfiguration; 797 | buildSettings = { 798 | ALWAYS_SEARCH_USER_PATHS = NO; 799 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 800 | CLANG_CXX_LIBRARY = "libc++"; 801 | CLANG_ENABLE_MODULES = YES; 802 | CLANG_ENABLE_OBJC_ARC = NO; 803 | CLANG_WARN_BOOL_CONVERSION = YES; 804 | CLANG_WARN_CONSTANT_CONVERSION = YES; 805 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 806 | CLANG_WARN_EMPTY_BODY = YES; 807 | CLANG_WARN_ENUM_CONVERSION = YES; 808 | CLANG_WARN_INT_CONVERSION = YES; 809 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 810 | COPY_PHASE_STRIP = YES; 811 | GCC_C_LANGUAGE_STANDARD = gnu99; 812 | GCC_DYNAMIC_NO_PIC = NO; 813 | GCC_OPTIMIZATION_LEVEL = 0; 814 | GCC_PREPROCESSOR_DEFINITIONS = ( 815 | "DEBUG=1", 816 | "$(inherited)", 817 | ); 818 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 819 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 820 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 821 | GCC_WARN_UNDECLARED_SELECTOR = YES; 822 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 823 | GCC_WARN_UNUSED_FUNCTION = YES; 824 | GCC_WARN_UNUSED_VARIABLE = YES; 825 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 826 | ONLY_ACTIVE_ARCH = YES; 827 | STRIP_INSTALLED_PRODUCT = NO; 828 | }; 829 | name = Debug; 830 | }; 831 | 9BF9564F9FDA4EFDAC33D0ED /* Debug */ = { 832 | isa = XCBuildConfiguration; 833 | baseConfigurationReference = FC1CD73B5E4A4E6B9E0CD9B6 /* Pods-StyleSheet_Example-StyleSheet-Private.xcconfig */; 834 | buildSettings = { 835 | ALWAYS_SEARCH_USER_PATHS = NO; 836 | COPY_PHASE_STRIP = NO; 837 | DSTROOT = /tmp/xcodeproj.dst; 838 | GCC_C_LANGUAGE_STANDARD = gnu99; 839 | GCC_DYNAMIC_NO_PIC = NO; 840 | GCC_OPTIMIZATION_LEVEL = 0; 841 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 842 | GCC_PREFIX_HEADER = "Pods-StyleSheet_Example-StyleSheet-prefix.pch"; 843 | GCC_PREPROCESSOR_DEFINITIONS = ( 844 | "DEBUG=1", 845 | "$(inherited)", 846 | ); 847 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 848 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 849 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 850 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 851 | OTHER_LDFLAGS = ""; 852 | PRODUCT_NAME = "$(TARGET_NAME)"; 853 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 854 | SDKROOT = iphoneos; 855 | SKIP_INSTALL = YES; 856 | }; 857 | name = Debug; 858 | }; 859 | DCA0CF13D81C4223B43D501C /* Release */ = { 860 | isa = XCBuildConfiguration; 861 | baseConfigurationReference = FC1CD73B5E4A4E6B9E0CD9B6 /* Pods-StyleSheet_Example-StyleSheet-Private.xcconfig */; 862 | buildSettings = { 863 | ALWAYS_SEARCH_USER_PATHS = NO; 864 | COPY_PHASE_STRIP = YES; 865 | DSTROOT = /tmp/xcodeproj.dst; 866 | GCC_C_LANGUAGE_STANDARD = gnu99; 867 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 868 | GCC_PREFIX_HEADER = "Pods-StyleSheet_Example-StyleSheet-prefix.pch"; 869 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 870 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 871 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 872 | OTHER_CFLAGS = ( 873 | "-DNS_BLOCK_ASSERTIONS=1", 874 | "$(inherited)", 875 | ); 876 | OTHER_CPLUSPLUSFLAGS = ( 877 | "-DNS_BLOCK_ASSERTIONS=1", 878 | "$(inherited)", 879 | ); 880 | OTHER_LDFLAGS = ""; 881 | PRODUCT_NAME = "$(TARGET_NAME)"; 882 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 883 | SDKROOT = iphoneos; 884 | SKIP_INSTALL = YES; 885 | VALIDATE_PRODUCT = YES; 886 | }; 887 | name = Release; 888 | }; 889 | EECE417569E6431C9847F26A /* Debug */ = { 890 | isa = XCBuildConfiguration; 891 | baseConfigurationReference = 3EAE599EF2374942A099C4A4 /* Pods-StyleSheet_Tests-StyleSheet-Private.xcconfig */; 892 | buildSettings = { 893 | ALWAYS_SEARCH_USER_PATHS = NO; 894 | COPY_PHASE_STRIP = NO; 895 | DSTROOT = /tmp/xcodeproj.dst; 896 | GCC_C_LANGUAGE_STANDARD = gnu99; 897 | GCC_DYNAMIC_NO_PIC = NO; 898 | GCC_OPTIMIZATION_LEVEL = 0; 899 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 900 | GCC_PREFIX_HEADER = "Pods-StyleSheet_Tests-StyleSheet-prefix.pch"; 901 | GCC_PREPROCESSOR_DEFINITIONS = ( 902 | "DEBUG=1", 903 | "$(inherited)", 904 | ); 905 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 906 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 907 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 908 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 909 | OTHER_LDFLAGS = ""; 910 | PRODUCT_NAME = "$(TARGET_NAME)"; 911 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 912 | SDKROOT = iphoneos; 913 | SKIP_INSTALL = YES; 914 | }; 915 | name = Debug; 916 | }; 917 | FCC73DA0F043455C9DC9555F /* Release */ = { 918 | isa = XCBuildConfiguration; 919 | baseConfigurationReference = 702FC067D9BC44DC82623EA3 /* Pods-StyleSheet_Tests.xcconfig */; 920 | buildSettings = { 921 | ALWAYS_SEARCH_USER_PATHS = NO; 922 | COPY_PHASE_STRIP = YES; 923 | DSTROOT = /tmp/xcodeproj.dst; 924 | GCC_C_LANGUAGE_STANDARD = gnu99; 925 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 926 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 927 | INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)"; 928 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 929 | OTHER_CFLAGS = ( 930 | "-DNS_BLOCK_ASSERTIONS=1", 931 | "$(inherited)", 932 | ); 933 | OTHER_CPLUSPLUSFLAGS = ( 934 | "-DNS_BLOCK_ASSERTIONS=1", 935 | "$(inherited)", 936 | ); 937 | OTHER_LDFLAGS = ""; 938 | PRODUCT_NAME = "$(TARGET_NAME)"; 939 | PUBLIC_HEADERS_FOLDER_PATH = "$(TARGET_NAME)"; 940 | SDKROOT = iphoneos; 941 | SKIP_INSTALL = YES; 942 | VALIDATE_PRODUCT = YES; 943 | }; 944 | name = Release; 945 | }; 946 | /* End XCBuildConfiguration section */ 947 | 948 | /* Begin XCConfigurationList section */ 949 | 03DD7282DA3A4624B3949493 /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Tests-StyleSheet" */ = { 950 | isa = XCConfigurationList; 951 | buildConfigurations = ( 952 | EECE417569E6431C9847F26A /* Debug */, 953 | 5B71CD26D0494480A4F58B89 /* Release */, 954 | ); 955 | defaultConfigurationIsVisible = 0; 956 | defaultConfigurationName = Release; 957 | }; 958 | 23FD6795C61843519D22FA4B /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Example-StyleSheet" */ = { 959 | isa = XCConfigurationList; 960 | buildConfigurations = ( 961 | 9BF9564F9FDA4EFDAC33D0ED /* Debug */, 962 | DCA0CF13D81C4223B43D501C /* Release */, 963 | ); 964 | defaultConfigurationIsVisible = 0; 965 | defaultConfigurationName = Release; 966 | }; 967 | 2D08F49A5469446D9AD7BE9F /* Build configuration list for PBXNativeTarget "StyleSheet" */ = { 968 | isa = XCConfigurationList; 969 | buildConfigurations = ( 970 | 35ABFF99018B4AA1B8E25436 /* Debug */, 971 | 1F74B180BDDA4261BE767742 /* Release */, 972 | ); 973 | defaultConfigurationIsVisible = 0; 974 | defaultConfigurationName = Release; 975 | }; 976 | A4FAE31410144F6C8483F7CC /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Tests" */ = { 977 | isa = XCConfigurationList; 978 | buildConfigurations = ( 979 | 27970C53BBDD460CA730E46F /* Debug */, 980 | FCC73DA0F043455C9DC9555F /* Release */, 981 | ); 982 | defaultConfigurationIsVisible = 0; 983 | defaultConfigurationName = Release; 984 | }; 985 | BD0C3AEC00074202AF7608FE /* Build configuration list for PBXNativeTarget "Pods-StyleSheet_Example" */ = { 986 | isa = XCConfigurationList; 987 | buildConfigurations = ( 988 | 7CA0452087434313B4E03190 /* Debug */, 989 | 236C0C2AC13843CFBCFFC6A5 /* Release */, 990 | ); 991 | defaultConfigurationIsVisible = 0; 992 | defaultConfigurationName = Release; 993 | }; 994 | EA48DBB65E584A0FA6F4FE81 /* Build configuration list for PBXProject "Pods" */ = { 995 | isa = XCConfigurationList; 996 | buildConfigurations = ( 997 | 95A19298BB274CBCA90A349B /* Debug */, 998 | 3D1BD8D8A08E436F876F9676 /* Release */, 999 | ); 1000 | defaultConfigurationIsVisible = 0; 1001 | defaultConfigurationName = Release; 1002 | }; 1003 | /* End XCConfigurationList section */ 1004 | }; 1005 | rootObject = DAD24186AABC4591A3AF6627 /* Project object */; 1006 | } 1007 | -------------------------------------------------------------------------------- /Example/StyleSheet.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 11 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 12 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 13 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 14 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 15 | 6003F59E195388D20070C39A /* DZAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* DZAppDelegate.m */; }; 16 | 6003F5A7195388D20070C39A /* DZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* DZViewController.m */; }; 17 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 18 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 19 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 20 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 21 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 22 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 23 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 24 | 9B874F2769604C22A2597B5F /* libPods-StyleSheet_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A08F6F405C4449CFAB1F0BBB /* libPods-StyleSheet_Example.a */; }; 25 | D5E4C092E13446D2A3B96543 /* libPods-StyleSheet_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 84B847304F3247A388693A5C /* libPods-StyleSheet_Tests.a */; }; 26 | E103BE151B6B415D00E4AA07 /* IMG_1231.PNG in Resources */ = {isa = PBXBuildFile; fileRef = E103BE141B6B415D00E4AA07 /* IMG_1231.PNG */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 6003F582195388D10070C39A /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 6003F589195388D20070C39A; 35 | remoteInfo = StyleSheet; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 4EB404FD3881365C84387E94 /* StyleSheet.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = StyleSheet.podspec; path = ../StyleSheet.podspec; sourceTree = ""; }; 41 | 5123051890D94D13A2BE0A4F /* Pods-StyleSheet_Example.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-StyleSheet_Example.xcconfig"; path = "Pods/Pods-StyleSheet_Example.xcconfig"; sourceTree = ""; }; 42 | 6003F58A195388D20070C39A /* StyleSheet_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StyleSheet_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 44 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 45 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 46 | 6003F595195388D20070C39A /* StyleSheet-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "StyleSheet-Info.plist"; sourceTree = ""; }; 47 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 48 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 49 | 6003F59B195388D20070C39A /* StyleSheet-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "StyleSheet-Prefix.pch"; sourceTree = ""; }; 50 | 6003F59C195388D20070C39A /* DZAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DZAppDelegate.h; sourceTree = ""; }; 51 | 6003F59D195388D20070C39A /* DZAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DZAppDelegate.m; sourceTree = ""; }; 52 | 6003F5A5195388D20070C39A /* DZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DZViewController.h; sourceTree = ""; }; 53 | 6003F5A6195388D20070C39A /* DZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DZViewController.m; sourceTree = ""; }; 54 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 55 | 6003F5AE195388D20070C39A /* StyleSheet_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StyleSheet_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 57 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 58 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 59 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 60 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 61 | 84B847304F3247A388693A5C /* libPods-StyleSheet_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StyleSheet_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 63 | 90370D5D55F558D4BF7E2F0E /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 64 | A08F6F405C4449CFAB1F0BBB /* libPods-StyleSheet_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-StyleSheet_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | B3E5EF530F564214A4734A60 /* Pods-StyleSheet_Tests.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-StyleSheet_Tests.xcconfig"; path = "Pods/Pods-StyleSheet_Tests.xcconfig"; sourceTree = ""; }; 66 | C6AB0BE2F3E584B3E8E3DFD0 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 67 | E103BE141B6B415D00E4AA07 /* IMG_1231.PNG */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = IMG_1231.PNG; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 6003F587195388D20070C39A /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 76 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 77 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 78 | 9B874F2769604C22A2597B5F /* libPods-StyleSheet_Example.a in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 6003F5AB195388D20070C39A /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 87 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 88 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 89 | D5E4C092E13446D2A3B96543 /* libPods-StyleSheet_Tests.a in Frameworks */, 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | /* End PBXFrameworksBuildPhase section */ 94 | 95 | /* Begin PBXGroup section */ 96 | 6003F581195388D10070C39A = { 97 | isa = PBXGroup; 98 | children = ( 99 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 100 | 6003F593195388D20070C39A /* Example for StyleSheet */, 101 | 6003F5B5195388D20070C39A /* Tests */, 102 | 6003F58C195388D20070C39A /* Frameworks */, 103 | 6003F58B195388D20070C39A /* Products */, 104 | 5123051890D94D13A2BE0A4F /* Pods-StyleSheet_Example.xcconfig */, 105 | B3E5EF530F564214A4734A60 /* Pods-StyleSheet_Tests.xcconfig */, 106 | ); 107 | sourceTree = ""; 108 | }; 109 | 6003F58B195388D20070C39A /* Products */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 6003F58A195388D20070C39A /* StyleSheet_Example.app */, 113 | 6003F5AE195388D20070C39A /* StyleSheet_Tests.xctest */, 114 | ); 115 | name = Products; 116 | sourceTree = ""; 117 | }; 118 | 6003F58C195388D20070C39A /* Frameworks */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 6003F58D195388D20070C39A /* Foundation.framework */, 122 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 123 | 6003F591195388D20070C39A /* UIKit.framework */, 124 | 6003F5AF195388D20070C39A /* XCTest.framework */, 125 | A08F6F405C4449CFAB1F0BBB /* libPods-StyleSheet_Example.a */, 126 | 84B847304F3247A388693A5C /* libPods-StyleSheet_Tests.a */, 127 | ); 128 | name = Frameworks; 129 | sourceTree = ""; 130 | }; 131 | 6003F593195388D20070C39A /* Example for StyleSheet */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | E103BE141B6B415D00E4AA07 /* IMG_1231.PNG */, 135 | 6003F59C195388D20070C39A /* DZAppDelegate.h */, 136 | 6003F59D195388D20070C39A /* DZAppDelegate.m */, 137 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 138 | 6003F5A5195388D20070C39A /* DZViewController.h */, 139 | 6003F5A6195388D20070C39A /* DZViewController.m */, 140 | 6003F5A8195388D20070C39A /* Images.xcassets */, 141 | 6003F594195388D20070C39A /* Supporting Files */, 142 | ); 143 | name = "Example for StyleSheet"; 144 | path = StyleSheet; 145 | sourceTree = ""; 146 | }; 147 | 6003F594195388D20070C39A /* Supporting Files */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 6003F595195388D20070C39A /* StyleSheet-Info.plist */, 151 | 6003F596195388D20070C39A /* InfoPlist.strings */, 152 | 6003F599195388D20070C39A /* main.m */, 153 | 6003F59B195388D20070C39A /* StyleSheet-Prefix.pch */, 154 | ); 155 | name = "Supporting Files"; 156 | sourceTree = ""; 157 | }; 158 | 6003F5B5195388D20070C39A /* Tests */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 6003F5BB195388D20070C39A /* Tests.m */, 162 | 6003F5B6195388D20070C39A /* Supporting Files */, 163 | ); 164 | path = Tests; 165 | sourceTree = ""; 166 | }; 167 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 171 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 172 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 173 | ); 174 | name = "Supporting Files"; 175 | sourceTree = ""; 176 | }; 177 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 4EB404FD3881365C84387E94 /* StyleSheet.podspec */, 181 | C6AB0BE2F3E584B3E8E3DFD0 /* README.md */, 182 | 90370D5D55F558D4BF7E2F0E /* LICENSE */, 183 | ); 184 | name = "Podspec Metadata"; 185 | sourceTree = ""; 186 | }; 187 | /* End PBXGroup section */ 188 | 189 | /* Begin PBXNativeTarget section */ 190 | 6003F589195388D20070C39A /* StyleSheet_Example */ = { 191 | isa = PBXNativeTarget; 192 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "StyleSheet_Example" */; 193 | buildPhases = ( 194 | 4163C37F64774062B1F2A3CE /* Check Pods Manifest.lock */, 195 | 6003F586195388D20070C39A /* Sources */, 196 | 6003F587195388D20070C39A /* Frameworks */, 197 | 6003F588195388D20070C39A /* Resources */, 198 | ECAA35A5B9EF45BB8A2CDE10 /* Copy Pods Resources */, 199 | ); 200 | buildRules = ( 201 | ); 202 | dependencies = ( 203 | ); 204 | name = StyleSheet_Example; 205 | productName = StyleSheet; 206 | productReference = 6003F58A195388D20070C39A /* StyleSheet_Example.app */; 207 | productType = "com.apple.product-type.application"; 208 | }; 209 | 6003F5AD195388D20070C39A /* StyleSheet_Tests */ = { 210 | isa = PBXNativeTarget; 211 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "StyleSheet_Tests" */; 212 | buildPhases = ( 213 | 93973EF29BCA4DD4B22C40A5 /* Check Pods Manifest.lock */, 214 | 6003F5AA195388D20070C39A /* Sources */, 215 | 6003F5AB195388D20070C39A /* Frameworks */, 216 | 6003F5AC195388D20070C39A /* Resources */, 217 | A69E7F9BE67A4732A9CDAAB5 /* Copy Pods Resources */, 218 | ); 219 | buildRules = ( 220 | ); 221 | dependencies = ( 222 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 223 | ); 224 | name = StyleSheet_Tests; 225 | productName = StyleSheetTests; 226 | productReference = 6003F5AE195388D20070C39A /* StyleSheet_Tests.xctest */; 227 | productType = "com.apple.product-type.bundle.unit-test"; 228 | }; 229 | /* End PBXNativeTarget section */ 230 | 231 | /* Begin PBXProject section */ 232 | 6003F582195388D10070C39A /* Project object */ = { 233 | isa = PBXProject; 234 | attributes = { 235 | CLASSPREFIX = DZ; 236 | LastUpgradeCheck = 0510; 237 | ORGANIZATIONNAME = dongzhao; 238 | TargetAttributes = { 239 | 6003F5AD195388D20070C39A = { 240 | TestTargetID = 6003F589195388D20070C39A; 241 | }; 242 | }; 243 | }; 244 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "StyleSheet" */; 245 | compatibilityVersion = "Xcode 3.2"; 246 | developmentRegion = English; 247 | hasScannedForEncodings = 0; 248 | knownRegions = ( 249 | en, 250 | Base, 251 | ); 252 | mainGroup = 6003F581195388D10070C39A; 253 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 254 | projectDirPath = ""; 255 | projectRoot = ""; 256 | targets = ( 257 | 6003F589195388D20070C39A /* StyleSheet_Example */, 258 | 6003F5AD195388D20070C39A /* StyleSheet_Tests */, 259 | ); 260 | }; 261 | /* End PBXProject section */ 262 | 263 | /* Begin PBXResourcesBuildPhase section */ 264 | 6003F588195388D20070C39A /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 269 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 270 | E103BE151B6B415D00E4AA07 /* IMG_1231.PNG in Resources */, 271 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 6003F5AC195388D20070C39A /* Resources */ = { 276 | isa = PBXResourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | /* End PBXResourcesBuildPhase section */ 284 | 285 | /* Begin PBXShellScriptBuildPhase section */ 286 | 4163C37F64774062B1F2A3CE /* Check Pods Manifest.lock */ = { 287 | isa = PBXShellScriptBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | ); 291 | inputPaths = ( 292 | ); 293 | name = "Check Pods Manifest.lock"; 294 | outputPaths = ( 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | 93973EF29BCA4DD4B22C40A5 /* Check Pods Manifest.lock */ = { 302 | isa = PBXShellScriptBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | inputPaths = ( 307 | ); 308 | name = "Check Pods Manifest.lock"; 309 | outputPaths = ( 310 | ); 311 | runOnlyForDeploymentPostprocessing = 0; 312 | shellPath = /bin/sh; 313 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 314 | showEnvVarsInLog = 0; 315 | }; 316 | A69E7F9BE67A4732A9CDAAB5 /* Copy Pods Resources */ = { 317 | isa = PBXShellScriptBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | inputPaths = ( 322 | ); 323 | name = "Copy Pods Resources"; 324 | outputPaths = ( 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | shellPath = /bin/sh; 328 | shellScript = "\"${SRCROOT}/Pods/Pods-StyleSheet_Tests-resources.sh\"\n"; 329 | showEnvVarsInLog = 0; 330 | }; 331 | ECAA35A5B9EF45BB8A2CDE10 /* Copy Pods Resources */ = { 332 | isa = PBXShellScriptBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | ); 336 | inputPaths = ( 337 | ); 338 | name = "Copy Pods Resources"; 339 | outputPaths = ( 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | shellPath = /bin/sh; 343 | shellScript = "\"${SRCROOT}/Pods/Pods-StyleSheet_Example-resources.sh\"\n"; 344 | showEnvVarsInLog = 0; 345 | }; 346 | /* End PBXShellScriptBuildPhase section */ 347 | 348 | /* Begin PBXSourcesBuildPhase section */ 349 | 6003F586195388D20070C39A /* Sources */ = { 350 | isa = PBXSourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | 6003F59E195388D20070C39A /* DZAppDelegate.m in Sources */, 354 | 6003F5A7195388D20070C39A /* DZViewController.m in Sources */, 355 | 6003F59A195388D20070C39A /* main.m in Sources */, 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | 6003F5AA195388D20070C39A /* Sources */ = { 360 | isa = PBXSourcesBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | /* End PBXSourcesBuildPhase section */ 368 | 369 | /* Begin PBXTargetDependency section */ 370 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 371 | isa = PBXTargetDependency; 372 | target = 6003F589195388D20070C39A /* StyleSheet_Example */; 373 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 374 | }; 375 | /* End PBXTargetDependency section */ 376 | 377 | /* Begin PBXVariantGroup section */ 378 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 379 | isa = PBXVariantGroup; 380 | children = ( 381 | 6003F597195388D20070C39A /* en */, 382 | ); 383 | name = InfoPlist.strings; 384 | sourceTree = ""; 385 | }; 386 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 387 | isa = PBXVariantGroup; 388 | children = ( 389 | 6003F5B9195388D20070C39A /* en */, 390 | ); 391 | name = InfoPlist.strings; 392 | sourceTree = ""; 393 | }; 394 | /* End PBXVariantGroup section */ 395 | 396 | /* Begin XCBuildConfiguration section */ 397 | 6003F5BD195388D20070C39A /* Debug */ = { 398 | isa = XCBuildConfiguration; 399 | buildSettings = { 400 | ALWAYS_SEARCH_USER_PATHS = NO; 401 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 402 | CLANG_CXX_LIBRARY = "libc++"; 403 | CLANG_ENABLE_MODULES = YES; 404 | CLANG_ENABLE_OBJC_ARC = YES; 405 | CLANG_WARN_BOOL_CONVERSION = YES; 406 | CLANG_WARN_CONSTANT_CONVERSION = YES; 407 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 408 | CLANG_WARN_EMPTY_BODY = YES; 409 | CLANG_WARN_ENUM_CONVERSION = YES; 410 | CLANG_WARN_INT_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 414 | COPY_PHASE_STRIP = NO; 415 | GCC_C_LANGUAGE_STANDARD = gnu99; 416 | GCC_DYNAMIC_NO_PIC = NO; 417 | GCC_OPTIMIZATION_LEVEL = 0; 418 | GCC_PREPROCESSOR_DEFINITIONS = ( 419 | "DEBUG=1", 420 | "$(inherited)", 421 | ); 422 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 430 | ONLY_ACTIVE_ARCH = YES; 431 | SDKROOT = iphoneos; 432 | TARGETED_DEVICE_FAMILY = "1,2"; 433 | }; 434 | name = Debug; 435 | }; 436 | 6003F5BE195388D20070C39A /* Release */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ALWAYS_SEARCH_USER_PATHS = NO; 440 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 441 | CLANG_CXX_LIBRARY = "libc++"; 442 | CLANG_ENABLE_MODULES = YES; 443 | CLANG_ENABLE_OBJC_ARC = YES; 444 | CLANG_WARN_BOOL_CONVERSION = YES; 445 | CLANG_WARN_CONSTANT_CONVERSION = YES; 446 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 447 | CLANG_WARN_EMPTY_BODY = YES; 448 | CLANG_WARN_ENUM_CONVERSION = YES; 449 | CLANG_WARN_INT_CONVERSION = YES; 450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 451 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 452 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 453 | COPY_PHASE_STRIP = YES; 454 | ENABLE_NS_ASSERTIONS = NO; 455 | GCC_C_LANGUAGE_STANDARD = gnu99; 456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 458 | GCC_WARN_UNDECLARED_SELECTOR = YES; 459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 460 | GCC_WARN_UNUSED_FUNCTION = YES; 461 | GCC_WARN_UNUSED_VARIABLE = YES; 462 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 463 | SDKROOT = iphoneos; 464 | TARGETED_DEVICE_FAMILY = "1,2"; 465 | VALIDATE_PRODUCT = YES; 466 | }; 467 | name = Release; 468 | }; 469 | 6003F5C0195388D20070C39A /* Debug */ = { 470 | isa = XCBuildConfiguration; 471 | baseConfigurationReference = 5123051890D94D13A2BE0A4F /* Pods-StyleSheet_Example.xcconfig */; 472 | buildSettings = { 473 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 474 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 475 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 476 | GCC_PREFIX_HEADER = "StyleSheet/StyleSheet-Prefix.pch"; 477 | INFOPLIST_FILE = "StyleSheet/StyleSheet-Info.plist"; 478 | MODULE_NAME = ExampleApp; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | WRAPPER_EXTENSION = app; 481 | }; 482 | name = Debug; 483 | }; 484 | 6003F5C1195388D20070C39A /* Release */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = 5123051890D94D13A2BE0A4F /* Pods-StyleSheet_Example.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 490 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 491 | GCC_PREFIX_HEADER = "StyleSheet/StyleSheet-Prefix.pch"; 492 | INFOPLIST_FILE = "StyleSheet/StyleSheet-Info.plist"; 493 | MODULE_NAME = ExampleApp; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | WRAPPER_EXTENSION = app; 496 | }; 497 | name = Release; 498 | }; 499 | 6003F5C3195388D20070C39A /* Debug */ = { 500 | isa = XCBuildConfiguration; 501 | baseConfigurationReference = B3E5EF530F564214A4734A60 /* Pods-StyleSheet_Tests.xcconfig */; 502 | buildSettings = { 503 | BUNDLE_LOADER = "$(TEST_HOST)"; 504 | FRAMEWORK_SEARCH_PATHS = ( 505 | "$(SDKROOT)/Developer/Library/Frameworks", 506 | "$(inherited)", 507 | "$(DEVELOPER_FRAMEWORKS_DIR)", 508 | ); 509 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 510 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 511 | GCC_PREPROCESSOR_DEFINITIONS = ( 512 | "DEBUG=1", 513 | "$(inherited)", 514 | ); 515 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StyleSheet_Example.app/StyleSheet_Example"; 518 | WRAPPER_EXTENSION = xctest; 519 | }; 520 | name = Debug; 521 | }; 522 | 6003F5C4195388D20070C39A /* Release */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = B3E5EF530F564214A4734A60 /* Pods-StyleSheet_Tests.xcconfig */; 525 | buildSettings = { 526 | BUNDLE_LOADER = "$(TEST_HOST)"; 527 | FRAMEWORK_SEARCH_PATHS = ( 528 | "$(SDKROOT)/Developer/Library/Frameworks", 529 | "$(inherited)", 530 | "$(DEVELOPER_FRAMEWORKS_DIR)", 531 | ); 532 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 533 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 534 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 535 | PRODUCT_NAME = "$(TARGET_NAME)"; 536 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/StyleSheet_Example.app/StyleSheet_Example"; 537 | WRAPPER_EXTENSION = xctest; 538 | }; 539 | name = Release; 540 | }; 541 | /* End XCBuildConfiguration section */ 542 | 543 | /* Begin XCConfigurationList section */ 544 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "StyleSheet" */ = { 545 | isa = XCConfigurationList; 546 | buildConfigurations = ( 547 | 6003F5BD195388D20070C39A /* Debug */, 548 | 6003F5BE195388D20070C39A /* Release */, 549 | ); 550 | defaultConfigurationIsVisible = 0; 551 | defaultConfigurationName = Release; 552 | }; 553 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "StyleSheet_Example" */ = { 554 | isa = XCConfigurationList; 555 | buildConfigurations = ( 556 | 6003F5C0195388D20070C39A /* Debug */, 557 | 6003F5C1195388D20070C39A /* Release */, 558 | ); 559 | defaultConfigurationIsVisible = 0; 560 | defaultConfigurationName = Release; 561 | }; 562 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "StyleSheet_Tests" */ = { 563 | isa = XCConfigurationList; 564 | buildConfigurations = ( 565 | 6003F5C3195388D20070C39A /* Debug */, 566 | 6003F5C4195388D20070C39A /* Release */, 567 | ); 568 | defaultConfigurationIsVisible = 0; 569 | defaultConfigurationName = Release; 570 | }; 571 | /* End XCConfigurationList section */ 572 | }; 573 | rootObject = 6003F582195388D10070C39A /* Project object */; 574 | } 575 | -------------------------------------------------------------------------------- /Example/StyleSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/StyleSheet.xcodeproj/xcshareddata/xcschemes/StyleSheet-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 63 | 69 | 70 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /Example/StyleSheet.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Example/StyleSheet/DZAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZAppDelegate.h 3 | // StyleSheet 4 | // 5 | // Created by dongzhao on 07/23/2015. 6 | // Copyright (c) 2015 dongzhao. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface DZAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/StyleSheet/DZAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZAppDelegate.m 3 | // StyleSheet 4 | // 5 | // Created by dongzhao on 07/23/2015. 6 | // Copyright (c) 2015 dongzhao. All rights reserved. 7 | // 8 | 9 | #import "DZAppDelegate.h" 10 | 11 | @implementation DZAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/StyleSheet/DZViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZViewController.h 3 | // StyleSheet 4 | // 5 | // Created by dongzhao on 07/23/2015. 6 | // Copyright (c) 2015 dongzhao. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface DZViewController : UIViewController 12 | @property (nonatomic, weak) IBOutlet UILabel* label; 13 | @property (nonatomic, weak) IBOutlet UILabel* label2; 14 | @property (nonatomic, weak) IBOutlet UIButton* button; 15 | @property (nonatomic, weak) IBOutlet UIView* aView; 16 | @end 17 | -------------------------------------------------------------------------------- /Example/StyleSheet/DZViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZViewController.m 3 | // StyleSheet 4 | // 5 | // Created by dongzhao on 07/23/2015. 6 | // Copyright (c) 2015 dongzhao. All rights reserved. 7 | // 8 | 9 | #import "DZViewController.h" 10 | #import 11 | 12 | @interface DZViewController () 13 | 14 | @end 15 | 16 | EXTERN_SHARE_LABEL_STYLE(Content) 17 | 18 | IMP_SHARE_LABEL_STYLE(Content, 19 | style.backgroundColor = [UIColor clearColor]; 20 | style.cornerRedius = 2; 21 | style.textStyle.textColor = [UIColor redColor]; 22 | style.styleBackgroundImage = [UIImage imageNamed:@"IMG_1231.PNG"]; 23 | ) 24 | 25 | IMP_SHARE_SWITCH_STYLE(RedContent, 26 | style.backgroundColor = [UIColor redColor]; 27 | ) 28 | 29 | 30 | 31 | @implementation DZViewController 32 | 33 | - (void)viewDidLoad 34 | { 35 | 36 | [super viewDidLoad]; 37 | 38 | // self.label.style.backgroundColor = [UIColor redColor]; 39 | // 40 | 41 | #ifdef ORIGIN_TEST 42 | self.label.layer.cornerRadius = 3; 43 | self.label.textColor = [UIColor darkTextColor]; 44 | self.label.font = [UIFont systemFontOfSize:13]; 45 | self.label.backgroundColor = [UIColor greenColor]; 46 | self.label.layer.borderWidth = 2; 47 | self.label.layer.borderColor = [UIColor redColor].CGColor; 48 | 49 | 50 | self.label2.layer.cornerRadius = 3; 51 | self.label2.textColor = [UIColor darkTextColor]; 52 | self.label2.font = [UIFont systemFontOfSize:13]; 53 | self.label2.backgroundColor = [UIColor greenColor]; 54 | self.label2.layer.borderWidth = 2; 55 | self.label2.layer.borderColor = [UIColor redColor].CGColor; 56 | 57 | 58 | self.button.layer.cornerRadius = 3; 59 | self.button.backgroundColor = [UIColor greenColor]; 60 | self.button.layer.borderWidth = 2; 61 | self.button.layer.borderColor = [UIColor redColor].CGColor; 62 | 63 | self.aView.layer.cornerRadius = 3; 64 | self.aView.backgroundColor = [UIColor greenColor]; 65 | self.aView.layer.borderWidth = 2; 66 | self.aView.layer.borderColor = [UIColor redColor].CGColor; 67 | 68 | 69 | #else 70 | 71 | 72 | self.label.style = DZStyleContent(); 73 | 74 | DZTextStyle* titleStyle =DZTextStyleMake( 75 | style.font = [UIFont systemFontOfSize:15]; 76 | style.textColor = [UIColor blueColor]; 77 | ); 78 | 79 | self.label.style = DZStyleContent(); 80 | self.label2.style = self.label.style; 81 | self.label2.style.textStyle = titleStyle; 82 | self.label2.adjustsFontSizeToFitWidth = YES; 83 | self.aView.style = self.label.style; 84 | self.aView.style.backgroundColor = [UIColor clearColor]; 85 | [self.button.style copyAttributesWithStyle:self.label.style]; 86 | self.button.style.disabledStyle = DZButtonStateStyleMake( 87 | style.titleColor = [ UIColor redColor]; 88 | ); 89 | 90 | self.button.style.hightlightedStyle = DZButtonStateStyleMake( 91 | style.titleColor = [UIColor redColor]; 92 | ); 93 | 94 | self.button.style.normalStyle = DZButtonStateStyleMake( 95 | style.titleColor = [UIColor blackColor]; 96 | 97 | ); 98 | #endif 99 | // 100 | // Do any additional setup after loading the view, typically from a nib. 101 | } 102 | 103 | - (void)didReceiveMemoryWarning 104 | { 105 | [super didReceiveMemoryWarning]; 106 | // Dispose of any resources that can be recreated. 107 | } 108 | 109 | @end 110 | -------------------------------------------------------------------------------- /Example/StyleSheet/IMG_1231.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yishuiliunian/StyleSheet/53c5b9b1e9a6f0d04738d0adbe0bd531f85540d2/Example/StyleSheet/IMG_1231.PNG -------------------------------------------------------------------------------- /Example/StyleSheet/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/StyleSheet/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Example/StyleSheet/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 33 | 34 | 35 | 36 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Example/StyleSheet/StyleSheet-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} 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 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/StyleSheet/StyleSheet-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/StyleSheet/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/StyleSheet/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // StyleSheet 4 | // 5 | // Created by dongzhao on 07/23/2015. 6 | // Copyright (c) 2015 dongzhao. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "DZAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([DZAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // StyleSheetTests.m 3 | // StyleSheetTests 4 | // 5 | // Created by dongzhao on 07/23/2015. 6 | // Copyright (c) 2015 dongzhao. 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/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 dongzhao 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 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yishuiliunian/StyleSheet/53c5b9b1e9a6f0d04738d0adbe0bd531f85540d2/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yishuiliunian/StyleSheet/53c5b9b1e9a6f0d04738d0adbe0bd531f85540d2/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/DZStyleCSS.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #ifndef DZStyle_DZStyle_h 10 | #define DZStyle_DZStyle_h 11 | 12 | #import "UIView+Style.h" 13 | #import "DZViewStyle.h" 14 | #import "DZButtonStyle.h" 15 | #import "DZPageControlStyle.h" 16 | #import "DZTextFieldStyle.h" 17 | #import "DZTextViewStyle.h" 18 | #import "DZSwitchStyle.h" 19 | #import "DZSegementStyle.h" 20 | #endif 21 | -------------------------------------------------------------------------------- /Pod/Classes/DZStyleCSS.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZStyleCSS.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZStyleCSS.h" 10 | #import 11 | #import "DZButtonStyle.h" 12 | #import "DZLabelStyle.h" 13 | #import "DZPageControlStyle.h" 14 | #import "DZTextFieldStyle.h" 15 | #import "DZTextViewStyle.h" 16 | #import "DZSwitchStyle.h" 17 | #import "DZSegementStyle.h" 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Pod/Classes/DZStyleRender.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZStyleRender.h 3 | // Pods 4 | // 5 | // Created by baidu on 15/7/31. 6 | // 7 | // 8 | 9 | #import 10 | 11 | 12 | #define DZShareStypeRender [DZStyleRender shareRender] 13 | @class DZStyle; 14 | @interface DZStyleRender : NSObject 15 | + (DZStyleRender*) shareRender; 16 | - (void) addNeedRenderStyle:(DZStyle*)style; 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/DZStyleRender.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZStyleRender.m 3 | // Pods 4 | // 5 | // Created by baidu on 15/7/31. 6 | // 7 | // 8 | 9 | #import "DZStyleRender.h" 10 | #import 11 | #import "DZStyle.h" 12 | 13 | @interface DZStyleRender () 14 | { 15 | CADisplayLink* _displayLink; 16 | NSPointerArray* _needRenderStyle; 17 | } 18 | @end 19 | 20 | 21 | @implementation DZStyleRender 22 | 23 | - (void) dealloc 24 | { 25 | [_displayLink invalidate]; 26 | } 27 | 28 | 29 | + (DZStyleRender*) shareRender 30 | { 31 | static DZStyleRender* render; 32 | static dispatch_once_t onceToken; 33 | dispatch_once(&onceToken, ^{ 34 | render = [DZStyleRender new]; 35 | }); 36 | return render; 37 | } 38 | 39 | 40 | - (instancetype) init 41 | { 42 | self = [super init]; 43 | if (!self) { 44 | return self; 45 | } 46 | _displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(handleDisplay:)]; 47 | [_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode]; 48 | _needRenderStyle = [NSPointerArray weakObjectsPointerArray]; 49 | return self; 50 | } 51 | 52 | - (void) handleDisplay:(CADisplayLink*)link 53 | { 54 | if (_needRenderStyle.count == 0) { 55 | return; 56 | } 57 | for (DZStyle * style in _needRenderStyle.allObjects) { 58 | [style renderAllLinedViews]; 59 | } 60 | _needRenderStyle = [NSPointerArray weakObjectsPointerArray]; 61 | } 62 | 63 | - (BOOL) hasStyle:(DZStyle*)style 64 | { 65 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 66 | NSArray * allStyles = [[_needRenderStyle allObjects] copy]; 67 | for (DZStyle * style in allStyles) { 68 | if (style == style) { 69 | return YES; 70 | } 71 | } 72 | return NO; 73 | } 74 | 75 | - (void) addNeedRenderStyle:(DZStyle*)style 76 | { 77 | if ([self hasStyle:style]) { 78 | return; 79 | } 80 | if (!style) { 81 | return;; 82 | } 83 | [_needRenderStyle addPointer:(__bridge void*)style]; 84 | } 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZButtonStateStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZButtonStateStyle.h 3 | // Pods 4 | // 5 | // Created by baidu on 15/8/6. 6 | // 7 | // 8 | 9 | #import "DZStyle.h" 10 | 11 | #define DZButtonStateStyleMake(initCode) DZStyleMake(initCode, DZButtonStateStyle) 12 | #define IMP_SHARE_BUTTON_STATE_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZButtonStateStyle) 13 | #define EXTERN_SHARE_BUTTON_STATE_STYLE(name) EXTERN_SHARE_STYLE(name, DZButtonStateStyle); 14 | 15 | @interface DZButtonStateStyle : DZStyle 16 | @property (nonatomic, assign) UIControlState state; 17 | @property (nonatomic, strong) UIColor* titleColor; 18 | @property (nonatomic, strong) UIColor* titleShadowColor; 19 | @property (nonatomic, strong) UIImage* backgroundImage; 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZButtonStateStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZButtonStateStyle.m 3 | // Pods 4 | // 5 | // Created by baidu on 15/8/6. 6 | // 7 | // 8 | 9 | #import "DZButtonStateStyle.h" 10 | 11 | @implementation DZButtonStateStyle 12 | IMP_ZERO_STYLE 13 | 14 | - (instancetype) init 15 | { 16 | self = [super init]; 17 | if (!self) { 18 | return self; 19 | } 20 | _state = UIControlStateNormal; 21 | return self; 22 | } 23 | 24 | - (void) setTitleColor:(UIColor *)titleColor 25 | { 26 | if (_titleColor != titleColor) { 27 | _titleColor = titleColor; 28 | [self setAttributeNeedRefresh]; 29 | } 30 | } 31 | 32 | - (void) setTitleShadowColor:(UIColor *)titleShadowColor 33 | { 34 | if (_titleShadowColor != titleShadowColor) { 35 | _titleShadowColor = titleShadowColor; 36 | [self setAttributeNeedRefresh]; 37 | } 38 | } 39 | 40 | - (void) setBackgroundImage:(UIImage *)backgroundImage 41 | { 42 | if (_backgroundImage != backgroundImage) { 43 | _backgroundImage = backgroundImage; 44 | [self setAttributeNeedRefresh]; 45 | } 46 | } 47 | 48 | 49 | - (void) decorateView:(UIView *)aView 50 | { 51 | [super decorateView:aView]; 52 | if (![aView isKindOfClass:[UIButton class]]) { 53 | return; 54 | } 55 | UIButton* btn = (UIButton*)aView; 56 | [btn setTitleShadowColor:_titleShadowColor forState:_state]; 57 | [btn setTitleColor:_titleColor forState:_state]; 58 | [btn setBackgroundImage:_backgroundImage forState:_state]; 59 | } 60 | 61 | - (void) copyAttributesWithStyle:(id)style 62 | { 63 | DZBeginCopyAttribute(DZButtonStateStyle) 64 | DZStyleCopyAttribute(titleColor) 65 | DZStyleCopyAttribute(titleShadowColor) 66 | DZStyleCopyAttribute(backgroundImage) 67 | DZFinishCopyAttribute 68 | } 69 | 70 | - (id) copyWithZone:(NSZone *)zone 71 | { 72 | DZButtonStateStyle* style = [super copyWithZone:zone]; 73 | style.backgroundImage = self.backgroundImage; 74 | style.titleShadowColor = self.titleShadowColor; 75 | style.titleColor = self.titleColor; 76 | return style; 77 | } 78 | 79 | @end 80 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZButtonStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZButtonStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #import "DZButtonStateStyle.h" 11 | 12 | #define DZButtonStyleMake(initCode) DZStyleMake(initCode, DZButtonStyle) 13 | #define IMP_SHARE_BUTTON_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZButtonStyle) 14 | #define EXTERN_SHARE_BUTTON_STYLE(name) EXTERN_SHARE_STYLE(name, DZButtonStyle); 15 | 16 | @interface DZButtonStyle : DZViewStyle 17 | @property (nonatomic, copy) DZButtonStateStyle* normalStyle; 18 | @property (nonatomic, copy) DZButtonStateStyle* disabledStyle; 19 | @property (nonatomic, copy) DZButtonStateStyle* hightlightedStyle; 20 | @property (nonatomic, copy) DZButtonStateStyle* selectedStyle; 21 | @property (nonatomic, copy) UIFont* labelFont; 22 | @end 23 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZButtonStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZButtonStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZButtonStyle.h" 10 | 11 | @interface DZButtonStyle () 12 | { 13 | } 14 | @end 15 | 16 | @implementation DZButtonStyle 17 | @synthesize normalStyle = _normalStyle; 18 | @synthesize disabledStyle = _disabledStyle; 19 | @synthesize hightlightedStyle = _hightlightedStyle; 20 | @synthesize selectedStyle = _selectedStyle; 21 | IMP_ZERO_STYLE 22 | 23 | - (instancetype) init 24 | { 25 | self = [super init]; 26 | if (!self) { 27 | return self; 28 | } 29 | return self; 30 | } 31 | 32 | - (DZButtonStateStyle*) normalStyle 33 | { 34 | if (!_normalStyle) { 35 | _normalStyle = [[DZButtonStateStyle zeroStyle] copy]; 36 | _normalStyle.state = UIControlStateNormal; 37 | } 38 | return _normalStyle; 39 | } 40 | 41 | 42 | - (DZButtonStateStyle*) disabledStyle 43 | { 44 | if (!_disabledStyle) { 45 | _disabledStyle = [[DZButtonStateStyle zeroStyle] copy]; 46 | _disabledStyle.state = UIControlStateDisabled; 47 | } 48 | return _disabledStyle; 49 | } 50 | 51 | - (DZButtonStateStyle*) hightlightedStyle 52 | { 53 | if (!_hightlightedStyle) { 54 | _hightlightedStyle = [[DZButtonStateStyle zeroStyle] copy]; 55 | _hightlightedStyle.state = UIControlStateHighlighted; 56 | } 57 | return _hightlightedStyle; 58 | } 59 | 60 | 61 | - (DZButtonStateStyle*) selectedStyle 62 | { 63 | if (!_selectedStyle) { 64 | _selectedStyle = [[DZButtonStateStyle zeroStyle]copy]; 65 | _selectedStyle.state = UIControlStateSelected; 66 | } 67 | return _selectedStyle; 68 | } 69 | 70 | - (void) setSelectedStyle:(DZButtonStateStyle *)selectedStyle 71 | { 72 | if (_selectedStyle != selectedStyle) { 73 | _selectedStyle = [selectedStyle copy]; 74 | _selectedStyle.state = UIControlStateSelected; 75 | [selectedStyle setAttributeNeedRefresh]; 76 | } 77 | } 78 | 79 | -(void) setNormalStyle:(DZButtonStateStyle *)normalStyle 80 | { 81 | if (_normalStyle != normalStyle) { 82 | _normalStyle = [normalStyle copy]; 83 | _normalStyle.state = UIControlStateNormal; 84 | [self setAttributeNeedRefresh]; 85 | } 86 | } 87 | 88 | - (void) setDisabledStyle:(DZButtonStateStyle *)disabledStyle 89 | { 90 | if (_disabledStyle != disabledStyle) { 91 | _disabledStyle = [disabledStyle copy]; 92 | _disabledStyle.state = UIControlStateDisabled; 93 | [self setAttributeNeedRefresh]; 94 | } 95 | } 96 | 97 | - (void) setLabelFont:(UIFont *)labelFont 98 | { 99 | if (_labelFont != labelFont) { 100 | _labelFont = labelFont; 101 | [self setAttributeNeedRefresh]; 102 | } 103 | } 104 | - (void) setHightlightedStyle:(DZButtonStateStyle *)hightlightedStyle 105 | { 106 | if (_hightlightedStyle != hightlightedStyle) { 107 | _hightlightedStyle = [hightlightedStyle copy]; 108 | _hightlightedStyle.state = UIControlStateHighlighted; 109 | [self setAttributeNeedRefresh]; 110 | } 111 | } 112 | 113 | - (void) copyAttributesWithStyle:(id)style 114 | { 115 | DZBeginCopyAttribute(DZButtonStyle) 116 | DZStyleCopyAttribute_Copy(disabledStyle) 117 | DZStyleCopyAttribute_Copy(normalStyle) 118 | DZStyleCopyAttribute_Copy(hightlightedStyle) 119 | DZStyleCopyAttribute_Copy(selectedStyle); 120 | DZStyleCopyAttribute_Copy(labelFont); 121 | DZFinishCopyAttribute 122 | } 123 | 124 | 125 | - (void) decorateView:(UIView *)aView 126 | { 127 | [super decorateView:aView]; 128 | if (![aView isKindOfClass:[UIButton class]]) { 129 | return; 130 | } 131 | UIButton* btn = (UIButton*)aView; 132 | [self.disabledStyle decorateView:aView]; 133 | [self.normalStyle decorateView:aView]; 134 | [self.hightlightedStyle decorateView:aView]; 135 | [self.selectedStyle decorateView:aView]; 136 | if (_labelFont) { 137 | btn.titleLabel.font = self.labelFont; 138 | } 139 | } 140 | 141 | - (id) copyWithZone:(NSZone *)zone 142 | { 143 | DZButtonStyle* style = [super copyWithZone:zone]; 144 | style.hightlightedStyle = [self.hightlightedStyle copy]; 145 | style.normalStyle = [self.normalStyle copy]; 146 | style.disabledStyle = [self.disabledStyle copy]; 147 | style.selectedStyle = [self.selectedStyle copy]; 148 | style.labelFont = self.labelFont; 149 | return style; 150 | } 151 | 152 | @end -------------------------------------------------------------------------------- /Pod/Classes/Style/DZLabelStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZLabelStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #import "DZTextStyle.h" 11 | 12 | #define DZLabelStyleMake(initCode) DZStyleMake(initCode, DZLabelStyle) 13 | #define IMP_SHARE_LABEL_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZLabelStyle) 14 | #define EXTERN_SHARE_LABEL_STYLE(name) EXTERN_SHARE_STYLE(name, DZLabelStyle); 15 | 16 | 17 | 18 | @interface DZLabelStyle : DZViewStyle 19 | @property (nonatomic, copy) DZTextStyle* textStyle; 20 | @property (nonatomic, strong) UIColor* highlightedTextColor; 21 | @property (nonatomic, strong) UIColor* shadowColor; 22 | @property (nonatomic, assign) CGSize shadowOffset; 23 | @property (nonatomic) CGFloat adjustsFontSizeToFitWidth; 24 | @property (nonatomic, assign) NSTextAlignment textAlignment; 25 | @end 26 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZLabelStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZLabelStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZLabelStyle.h" 10 | 11 | @implementation DZLabelStyle 12 | IMP_ZERO_STYLE 13 | 14 | - (instancetype)init 15 | { 16 | self = [super init]; 17 | if (self) { 18 | [self setTextStyle:(DZTextStyle*)[DZTextStyle zeroStyle]]; 19 | _clipsToBounds = NO; 20 | } 21 | return self; 22 | } 23 | - (void) setTextAlignment:(UITextAlignment)textAlignment 24 | { 25 | _textAlignment = textAlignment; 26 | [self setAttributeNeedRefresh]; 27 | } 28 | 29 | - (void) setHighlightedTextColor:(UIColor *)highlightedTextColor 30 | { 31 | if (_highlightedTextColor != highlightedTextColor) { 32 | _highlightedTextColor = highlightedTextColor; 33 | [self setAttributeNeedRefresh]; 34 | } 35 | } 36 | 37 | - (void) setShadowColor:(UIColor *)shadowColor 38 | { 39 | if (_shadowColor != shadowColor) { 40 | _shadowColor= shadowColor; 41 | [self setAttributeNeedRefresh]; 42 | } 43 | } 44 | 45 | - (void) setShadowOffset:(CGSize)shadowOffset 46 | { 47 | _shadowOffset = shadowOffset; 48 | [self setAttributeNeedRefresh]; 49 | } 50 | 51 | - (void) setAdjustsFontSizeToFitWidth:(CGFloat)adjustsFontSizeToFitWidth 52 | { 53 | _adjustsFontSizeToFitWidth = adjustsFontSizeToFitWidth; 54 | [self setAttributeNeedRefresh]; 55 | } 56 | - (void) setTextStyle:(DZTextStyle *)textStyle 57 | { 58 | [_textStyle unInstallOnViews:self.linkedViews]; 59 | _textStyle = [textStyle copy]; 60 | [_textStyle installOnViews:self.linkedViews]; 61 | [_textStyle setAttributeNeedRefresh]; 62 | } 63 | 64 | - (void) decorateView:(UIView *)aView 65 | { 66 | [super decorateView:aView]; 67 | if (![aView isKindOfClass:[UILabel class]]) { 68 | return; 69 | } 70 | UILabel* label = (UILabel*)aView; 71 | label.textAlignment = self.textAlignment; 72 | [self.textStyle decorateView:aView]; 73 | label.highlightedTextColor = _highlightedTextColor; 74 | label.shadowColor = _shadowColor; 75 | label.shadowOffset = _shadowOffset; 76 | label.adjustsFontSizeToFitWidth = _adjustsFontSizeToFitWidth; 77 | 78 | } 79 | 80 | - (void) copyAttributesWithStyle:(id)style 81 | { 82 | DZBeginCopyAttribute(DZLabelStyle); 83 | DZStyleCopyAttribute(highlightedTextColor) 84 | DZStyleCopyAttribute(shadowColor) 85 | DZStyleCopyAttribute(shadowOffset) 86 | DZStyleCopyAttribute(adjustsFontSizeToFitWidth) 87 | DZStyleCopyAttribute(textAlignment) 88 | if ([origin respondsToSelector:@selector(textStyle)]) { 89 | self.textStyle = [origin.textStyle copy]; 90 | } 91 | DZFinishCopyAttribute 92 | } 93 | 94 | - (id) copyWithZone:(NSZone *)zone 95 | { 96 | DZLabelStyle* style = [super copyWithZone:zone]; 97 | style.textAlignment = self.textAlignment; 98 | style.textStyle = [[self textStyle] copy]; 99 | style.highlightedTextColor = _highlightedTextColor; 100 | style.shadowColor = _shadowColor; 101 | style.shadowOffset= _shadowOffset; 102 | style.adjustsFontSizeToFitWidth = _adjustsFontSizeToFitWidth; 103 | return style; 104 | } 105 | @end 106 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZMetricsContainerStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZMetricsContainerStyle.h 3 | // Pods 4 | // 5 | // Created by stonedong on 15/8/8. 6 | // 7 | // 8 | 9 | #import "DZStyle.h" 10 | #import "DZMetricsStyle.h" 11 | @interface DZMetricsContainerStyle : DZStyle 12 | @property (nonatomic, copy) DZMetricsStyle* defualtMetricsStyle; 13 | @property (nonatomic, copy) DZMetricsStyle* compactMetricStyle; 14 | @property (nonatomic, copy) DZMetricsStyle* landscapePhoneMetricStyle; 15 | @property (nonatomic, copy) DZMetricsStyle* landscapePhonePromptMetricStyle; 16 | @end 17 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZMetricsContainerStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZMetricsContainerStyle.m 3 | // Pods 4 | // 5 | // Created by stonedong on 15/8/8. 6 | // 7 | // 8 | 9 | #import "DZMetricsContainerStyle.h" 10 | 11 | @implementation DZMetricsContainerStyle 12 | @synthesize defualtMetricsStyle = _defualtMetricsStyle; 13 | @synthesize compactMetricStyle = _compactMetricStyle; 14 | @synthesize landscapePhoneMetricStyle = _landscapePhoneMetricStyle; 15 | @synthesize landscapePhonePromptMetricStyle = _landscapePhonePromptMetricStyle; 16 | IMP_ZERO_STYLE 17 | 18 | - (void) setDefualtMetricsStyle:(DZMetricsStyle *)defualtMetricsStyle 19 | { 20 | if (_defualtMetricsStyle != defualtMetricsStyle) { 21 | [_defualtMetricsStyle unInstallOnViews:self.linkedViews]; 22 | _defualtMetricsStyle = [defualtMetricsStyle copy]; 23 | [_defualtMetricsStyle installOnViews:self.linkedViews]; 24 | [self setAttributeNeedRefresh]; 25 | } 26 | } 27 | 28 | - (DZMetricsStyle*) defualtMetricsStyle 29 | { 30 | if (!_defualtMetricsStyle) { 31 | _defualtMetricsStyle = [[DZMetricsStyle zeroStyle] copy]; 32 | [_defualtMetricsStyle installOnViews:self.linkedViews]; 33 | } 34 | return _defualtMetricsStyle; 35 | } 36 | 37 | - (void) setCompactMetricStyle:(DZMetricsStyle *)compactMetricStyle 38 | { 39 | if (_compactMetricStyle != compactMetricStyle) { 40 | [_compactMetricStyle unInstallOnViews:self.linkedViews]; 41 | _compactMetricStyle = [compactMetricStyle copy]; 42 | [_compactMetricStyle installOnViews:self.linkedViews]; 43 | [self setAttributeNeedRefresh]; 44 | } 45 | } 46 | 47 | #define IMP_Object_Style(BigName, littleName) \ 48 | - (DZMetricsStyle*) littleName \ 49 | { \ 50 | if (!_##littleName) { \ 51 | _##littleName = [[DZMetricsStyle zeroStyle] copy]; \ 52 | [_##littleName installOnViews:self.linkedViews]; \ 53 | } \ 54 | return _##littleName; \ 55 | } 56 | 57 | IMP_Object_Style(compactMetricStyle, compactMetricStyle) 58 | 59 | @end 60 | 61 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZMetricsStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZMetricsStyle.h 3 | // Pods 4 | // 5 | // Created by stonedong on 15/8/8. 6 | // 7 | // 8 | 9 | #import "DZStyle.h" 10 | 11 | @interface DZMetricsStyle : DZStyle 12 | @property (nonatomic, assign) UIBarMetrics metrics; 13 | @property (nonatomic, strong) UIImage* backgroundImage; 14 | @property (nonatomic, assign) CGFloat titleVerticalPositionAdjustment; 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZMetricsStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZMetricsStyle.m 3 | // Pods 4 | // 5 | // Created by stonedong on 15/8/8. 6 | // 7 | // 8 | 9 | #import "DZMetricsStyle.h" 10 | 11 | @implementation DZMetricsStyle 12 | 13 | - (instancetype) initWithMetrics:(UIBarMetrics)metrics 14 | { 15 | self = [super init]; 16 | if (!self) { 17 | return self; 18 | } 19 | _metrics = metrics; 20 | return self; 21 | } 22 | 23 | - (void) setMetrics:(UIBarMetrics)metrics 24 | { 25 | _metrics = metrics; 26 | [self setAttributeNeedRefresh]; 27 | } 28 | 29 | - (void) setBackgroundImage:(UIImage *)backgroundImage 30 | { 31 | if(_backgroundImage != backgroundImage) { 32 | _backgroundImage = backgroundImage; 33 | [self setAttributeNeedRefresh]; 34 | } 35 | } 36 | 37 | - (void) setTitleVerticalPositionAdjustment:(CGFloat)titleVerticalPositionAdjustment 38 | { 39 | _titleVerticalPositionAdjustment = titleVerticalPositionAdjustment; 40 | [self setAttributeNeedRefresh]; 41 | } 42 | 43 | - (void) decorateView:(UIView *)aView 44 | { 45 | [super decorateView:aView]; 46 | if ([aView respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)]) { 47 | [(UINavigationBar*)aView setBackgroundImage:_backgroundImage forBarMetrics:_metrics]; 48 | } 49 | if ([aView respondsToSelector:@selector(setTitleVerticalPositionAdjustment:forBarMetrics:)]) { 50 | [(UINavigationBar*)aView setTitleVerticalPositionAdjustment:_titleVerticalPositionAdjustment forBarMetrics:_metrics]; 51 | } 52 | } 53 | - (void) copyAttributesWithStyle:(id)style 54 | { 55 | DZBeginCopyAttribute(DZMetricsStyle) 56 | DZStyleCopyAttribute(backgroundImage) 57 | DZStyleCopyAttribute(metrics) 58 | DZStyleCopyAttribute(titleVerticalPositionAdjustment) 59 | DZFinishCopyAttribute 60 | } 61 | 62 | - (id) copyWithZone:(NSZone *)zone 63 | { 64 | DZMetricsStyle* style = [super copyWithZone:zone]; 65 | style.metrics = self.metrics; 66 | style.backgroundImage = self.backgroundImage; 67 | style.titleVerticalPositionAdjustment = self.titleVerticalPositionAdjustment; 68 | return style; 69 | } 70 | @end 71 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZNavigationBarStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZNavigationBarStyle.h 3 | // Pods 4 | // 5 | // Created by stonedong on 15/8/8. 6 | // 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #import "DZMetricsStyle.h" 11 | @interface DZNavigationBarStyle : DZViewStyle 12 | @property (nonatomic, assign) UIBarStyle barStyle; 13 | @property (nonatomic, strong) UIColor* barTintColor; 14 | @property (nonatomic, strong) UIImage* shadowImage; 15 | @property (nonatomic, assign) BOOL translucent; 16 | 17 | 18 | 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZNavigationBarStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZNavigationBarStyle.m 3 | // Pods 4 | // 5 | // Created by stonedong on 15/8/8. 6 | // 7 | // 8 | 9 | #import "DZNavigationBarStyle.h" 10 | 11 | @implementation DZNavigationBarStyle 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZPageControlStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZPageControlStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #define DZPageControlStyleMake(initCode) DZStyleMake (initCode, DZPageControlStyle ) 11 | #define IMP_SHARE_PAGE_CONTROL_STYLE(name , initCode) IMP_SHARE_STYLE (name , initCode, DZPageControlStyle) 12 | #define EXTERN_SHARE_PAGE_CONTROL_STYLE(name) EXTERN_SHARE_STYLE (name, DZPageControlStyle ); 13 | @interface DZPageControlStyle : DZViewStyle 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZPageControlStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZPageControlStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZPageControlStyle.h" 10 | 11 | @implementation DZPageControlStyle 12 | IMP_ZERO_STYLE 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZSegementStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZSegementStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #define DZSegementStyleMake(initCode) DZStyleMake (initCode, DZSegementStyle ) 11 | #define IMP_SHARE_SEGMENT_STYLE(name , initCode) IMP_SHARE_STYLE (name , initCode, DZSegementStyle) 12 | #define EXTERN_SHARE_SEGMENT_STYLE(name) EXTERN_SHARE_STYLE (name, DZSegementStyle ); 13 | @interface DZSegementStyle : DZViewStyle 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZSegementStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZSegementStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZSegementStyle.h" 10 | 11 | @implementation DZSegementStyle 12 | IMP_ZERO_STYLE 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | #define IMP_ZERO_STYLE \ 13 | + (DZStyle*) zeroStyle; \ 14 | { \ 15 | static DZStyle* style = nil; \ 16 | static dispatch_once_t onceToken; \ 17 | dispatch_once(&onceToken, ^{ \ 18 | style = [[[self class] alloc] init]; \ 19 | \ 20 | }); \ 21 | return style; \ 22 | } 23 | 24 | 25 | 26 | #define IMP_SHARE_STYLE(name , initCode, cla) \ 27 | cla* DZStyle##name(){ \ 28 | static cla* style = nil; \ 29 | static dispatch_once_t onceToken; \ 30 | dispatch_once(&onceToken, ^{ \ 31 | \ 32 | style = DZStyleMake(initCode, cla); \ 33 | }); \ 34 | return style; \ 35 | } 36 | 37 | #define EXTERN_SHARE_STYLE(name, cla) FOUNDATION_EXTERN cla* DZStyle##name(); 38 | 39 | #define DZBeginCopyAttribute(cla) \ 40 | cla* origin = (cla*)style; \ 41 | [super copyAttributesWithStyle:style]; \ 42 | 43 | #define DZFinishCopyAttribute [self setAttributeNeedRefresh]; 44 | 45 | #define DZStyleCopyAttribute(attr) \ 46 | if ([style respondsToSelector:@selector(attr)]) { \ 47 | self.attr = origin.attr; \ 48 | } 49 | 50 | #define DZStyleCopyAttribute_Copy(attr) \ 51 | if ([style respondsToSelector:@selector(attr)]) { \ 52 | self.attr = [origin.attr copy]; \ 53 | } 54 | 55 | @interface DZStyle : NSObject 56 | { 57 | NSMutableArray* _childStyle; 58 | } 59 | @property (nonatomic, strong, readonly) NSString* key; 60 | @property (nonatomic, weak, readonly) NSArray* linkedViews; 61 | /** 62 | * 标准的样式,采用空的默认样式 63 | * 64 | * @return 空的默认样式 65 | */ 66 | + (DZStyle*) zeroStyle; 67 | /** 68 | * 用该模式渲染制定的View 69 | * 70 | * @param aView 需要渲染的View 71 | */ 72 | - (void) decorateView:(UIView*)aView; 73 | 74 | // 75 | /** 76 | * 将该样式关联到制定的View,当样式改变的时候会及时改变该View的样式 77 | * 78 | * @param aView 关联的View 79 | */ 80 | - (void) installOnView:(UIView*)aView; 81 | /** 82 | * 取消关联 83 | * 84 | * @param aView 取消关联View 85 | */ 86 | - (void) unInstallOnView:(UIView*)aView; 87 | // 88 | 89 | /*将该样式绑定到制定的View上面,当样式发生改变的时候改变该View的样式 90 | * */ 91 | - (void) installOnViews:(NSArray *)views; 92 | 93 | /* 取消绑定 94 | * */ 95 | - (void) unInstallOnViews:(NSArray *)views; 96 | 97 | /** 98 | * 当样式的属性改变的时候,调用该函数,会重新进行渲染。 99 | */ 100 | - (void) setAttributeNeedRefresh; 101 | 102 | 103 | /*直接渲染所有连接的View 104 | * */ 105 | - (void) renderAllLinedViews; 106 | - (void) copyAttributesWithStyle:(id)style; 107 | 108 | - (void) addChildStyle:(DZStyle*)style; 109 | - (void) removeChildStyle:(DZStyle*)style; 110 | - (void) removeAllChildStyle;; 111 | @end 112 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZStyle.h" 10 | #import "UIView+Style.h" 11 | #import "DZStyleRender.h" 12 | 13 | @interface DZStyle () 14 | { 15 | NSPointerArray * _linkedWeakViews; 16 | } 17 | @end 18 | 19 | 20 | @implementation DZStyle 21 | @synthesize linkedViews = _linkedViews; 22 | IMP_ZERO_STYLE 23 | 24 | - (instancetype)init 25 | { 26 | self = [super init]; 27 | if (self) { 28 | _childStyle = [NSMutableArray new]; 29 | } 30 | _linkedWeakViews = [NSPointerArray weakObjectsPointerArray]; 31 | return self; 32 | } 33 | - (void) copyAttributesWithStyle:(id)style 34 | { 35 | if (![style isKindOfClass:[DZStyle class]]) { 36 | return ; 37 | } 38 | return; 39 | } 40 | 41 | - (void) decorateView:(UIView *)aView 42 | { 43 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 44 | } 45 | 46 | - (id) copyWithZone:(NSZone *)zone 47 | { 48 | DZStyle* style = [[[self class] allocWithZone:zone] init]; 49 | return style; 50 | } 51 | 52 | - (void) installOnView:(UIView *)aView 53 | { 54 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 55 | if (!aView) { 56 | return; 57 | } 58 | for (UIView *view in _linkedWeakViews.allObjects) { 59 | if (aView == view) { 60 | return; 61 | } 62 | } 63 | [_linkedWeakViews addPointer:(__bridge void*)aView]; 64 | } 65 | 66 | - (void) unInstallOnView:(UIView *)aView 67 | { 68 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 69 | if (!aView) { 70 | return; 71 | } 72 | NSPointerArray * coped = [_linkedWeakViews copy]; 73 | for (int i = 0; i < coped.count; ++i) { 74 | if (aView == [coped pointerAtIndex:i]) { 75 | [_linkedWeakViews removePointerAtIndex:i]; 76 | return; 77 | } 78 | } 79 | } 80 | 81 | - (void)installOnViews:(NSArray *)views { 82 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 83 | if (views.count == 0) { 84 | return; 85 | } 86 | 87 | NSArray * allExistObject = [_linkedWeakViews allObjects]; 88 | for (UIView * view in views) { 89 | if ([allExistObject containsObject:view]) { 90 | continue; 91 | } else { 92 | [_linkedWeakViews addPointer:(__bridge void*)view]; 93 | } 94 | } 95 | } 96 | 97 | - (void)unInstallOnViews:(NSArray *)views { 98 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 99 | if (views.count == 0) { 100 | return; 101 | } 102 | [_linkedWeakViews compact]; 103 | for (id view in views) { 104 | NSArray * allExistObject = [_linkedWeakViews allObjects]; 105 | if (allExistObject.count == 0) { 106 | break; 107 | } 108 | NSInteger index = [allExistObject indexOfObject:view]; 109 | if (index != NSNotFound) { 110 | [_linkedWeakViews removePointerAtIndex:index]; 111 | } 112 | } 113 | } 114 | 115 | - (NSArray *)linkedViews { 116 | return _linkedWeakViews.allObjects; 117 | } 118 | - (void) setAttributeNeedRefresh 119 | { 120 | if (self.linkedViews.count) { 121 | [DZShareStypeRender addNeedRenderStyle:self]; 122 | } 123 | } 124 | 125 | - (void)renderAllLinedViews { 126 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 127 | for (UIView * view in _linkedWeakViews.allObjects) { 128 | [self decorateView:view]; 129 | } 130 | } 131 | 132 | - (void) addChildStyle:(DZStyle*)style 133 | { 134 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 135 | if (style) { 136 | [_childStyle addObject:style.copy]; 137 | } 138 | } 139 | 140 | - (void) removeChildStyle:(DZStyle*)style 141 | { 142 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 143 | [_childStyle removeObject:style.copy]; 144 | } 145 | 146 | - (void) removeAllChildStyle 147 | { 148 | NSAssert([NSThread isMainThread], @"请在主线程运行StyleSheet"); 149 | [_childStyle removeAllObjects]; 150 | } 151 | @end 152 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZSwitchStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZSwitchStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | 11 | #define DZSwitchStyleMake(initCode) DZStyleMake (initCode, DZSwitchStyle ) 12 | #define IMP_SHARE_SWITCH_STYLE(name , initCode) IMP_SHARE_STYLE (name , initCode, DZSwitchStyle) 13 | #define EXTERN_SHARE_SWITCH_STYLE(name) EXTERN_SHARE_STYLE (name, DZSwitchStyle ); 14 | 15 | @interface DZSwitchStyle : DZViewStyle 16 | @property (nonatomic, strong) UIColor* onTintColor; 17 | @property (nonatomic, strong) UIColor* tintColor; 18 | @property (nonatomic, strong) UIColor* thumbTintColor; 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZSwitchStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZSwitchStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZSwitchStyle.h" 10 | 11 | @implementation DZSwitchStyle 12 | IMP_ZERO_STYLE 13 | 14 | - (void) setTintColor:(UIColor *)tintColor 15 | { 16 | if (_tintColor != tintColor) { 17 | _tintColor = tintColor; 18 | [self setAttributeNeedRefresh]; 19 | } 20 | } 21 | 22 | - (void) setThumbTintColor:(UIColor *)thumbTintColor 23 | { 24 | if (_thumbTintColor != thumbTintColor) { 25 | _thumbTintColor = thumbTintColor; 26 | [self setAttributeNeedRefresh]; 27 | } 28 | } 29 | 30 | - (void) setOnTintColor:(UIColor *)onTintColor 31 | { 32 | if (_onTintColor != onTintColor) { 33 | _onTintColor = onTintColor; 34 | [self setAttributeNeedRefresh]; 35 | } 36 | } 37 | 38 | - (void) decorateView:(UIView *)aView 39 | { 40 | [super decorateView:aView]; 41 | if (![aView isKindOfClass:[UISwitch class]]) { 42 | return; 43 | } 44 | UISwitch* sw = (UISwitch*)aView; 45 | sw.onTintColor = self.onTintColor; 46 | sw.tintColor = self.tintColor; 47 | sw.thumbTintColor = self.thumbTintColor; 48 | } 49 | - (void) copyAttributesWithStyle:(id)style 50 | { 51 | DZBeginCopyAttribute(DZSwitchStyle) 52 | DZStyleCopyAttribute(tintColor) 53 | DZStyleCopyAttribute(onTintColor) 54 | DZStyleCopyAttribute(thumbTintColor) 55 | DZFinishCopyAttribute 56 | } 57 | 58 | - (id) copyWithZone:(NSZone *)zone 59 | { 60 | DZSwitchStyle* style = [super copyWithZone:zone]; 61 | style.tintColor = self.tintColor; 62 | style.thumbTintColor = self.thumbTintColor; 63 | style.onTintColor = self.onTintColor; 64 | return style; 65 | } 66 | @end 67 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZTextFieldStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZTextFieldStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #import "DZTextStyle.h" 11 | #define DZTextFiledStyleMake(initCode) DZStyleMake(initCode, DZTextFieldStyle) 12 | #define IMP_SHARE_TEXTFIELD_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZTextFieldStyle) 13 | #define EXTERN_SHARE_TEXTFIELD_STYLE(name) EXTERN_SHARE_STYLE(name, DZTextFieldStyle); 14 | 15 | @interface DZTextFieldStyle : DZViewStyle 16 | @property (nonatomic, copy) DZTextStyle* textStyle; 17 | @end 18 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZTextFieldStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZTextFieldStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZTextFieldStyle.h" 10 | 11 | @implementation DZTextFieldStyle 12 | IMP_ZERO_STYLE 13 | 14 | - (instancetype)init 15 | { 16 | self = [super init]; 17 | if (self) { 18 | [self setTextStyle:(DZTextStyle*)[DZTextStyle zeroStyle]]; 19 | _clipsToBounds = NO; 20 | } 21 | return self; 22 | } 23 | 24 | - (void) setTextStyle:(DZTextStyle *)textStyle 25 | { 26 | [_textStyle unInstallOnViews:self.linkedViews]; 27 | _textStyle = [textStyle copy]; 28 | [_textStyle installOnViews:self.linkedViews]; 29 | [_textStyle setAttributeNeedRefresh]; 30 | } 31 | 32 | 33 | - (void) decorateView:(UIView *)aView 34 | { 35 | [super decorateView:aView]; 36 | if (![aView isKindOfClass:[UITextField class]]) { 37 | return; 38 | } 39 | UITextField* textField = (UITextField*)aView; 40 | [self.textStyle decorateView:aView]; 41 | 42 | } 43 | 44 | - (void) copyAttributesWithStyle:(id)style 45 | { 46 | DZBeginCopyAttribute(DZTextFieldStyle) 47 | if ([origin respondsToSelector:@selector(textStyle)]) { 48 | self.textStyle = [origin.textStyle copy]; 49 | } 50 | DZFinishCopyAttribute 51 | } 52 | 53 | - (id) copyWithZone:(NSZone *)zone 54 | { 55 | DZTextFieldStyle* style = [super copyWithZone:zone]; 56 | style.textStyle = [[self textStyle] copy]; 57 | return style; 58 | } 59 | @end 60 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZTextStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZTextStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZStyle.h" 10 | 11 | #define DZTextStyleMake(initCode) DZStyleMake (initCode, DZTextStyle ) 12 | #define IMP_SHARE_TEXT_STYLE(name , initCode) IMP_SHARE_STYLE (name , initCode, DZTextStyle) 13 | #define EXTERN_SHARE_TEXT_STYLE(name) EXTERN_SHARE_STYLE (name, DZTextStyle ); 14 | 15 | 16 | @interface DZTextStyle : DZStyle 17 | @property (nonatomic, strong) UIFont* font; 18 | @property (nonatomic, strong) UIColor* textColor; 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZTextStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZTextStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZTextStyle.h" 10 | 11 | @implementation DZTextStyle 12 | IMP_ZERO_STYLE 13 | - (void) setTextColor:(UIColor *)textColor 14 | { 15 | if (_textColor != textColor) { 16 | _textColor = textColor; 17 | [self setAttributeNeedRefresh]; 18 | } 19 | } 20 | 21 | - (void) setFont:(UIFont *)font 22 | { 23 | if (_font != font) { 24 | _font = font; 25 | [self setAttributeNeedRefresh]; 26 | } 27 | } 28 | 29 | - (void) decorateView:(UIView *)aView 30 | { 31 | [super decorateView:aView]; 32 | if ([aView respondsToSelector:@selector(setFont:)]) { 33 | [aView performSelector:@selector(setFont:) withObject:self.font]; 34 | } 35 | 36 | if ([aView respondsToSelector:@selector(setTextColor:)]) { 37 | [aView performSelector:@selector(setTextColor:) withObject:self.textColor]; 38 | } 39 | } 40 | - (id) copyWithZone:(NSZone *)zone 41 | { 42 | DZTextStyle* style = [super copyWithZone:zone]; 43 | style.font = self.font; 44 | style.textColor = self.textColor; 45 | return style; 46 | } 47 | @end 48 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZTextViewStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZTextViewStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | 11 | #define DZTextViewStyleMake(initCode) DZStyleMake(initCode, DZTextViewStyle) 12 | #define IMP_SHARE_TEXTVIEW_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZTextViewStyle) 13 | #define EXTERN_SHARE_TEXTVIEW_STYLE(name) EXTERN_SHARE_STYLE(name, DZTextViewStyle); 14 | 15 | 16 | @interface DZTextViewStyle : DZViewStyle 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZTextViewStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZTextViewStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/23. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZTextViewStyle.h" 10 | 11 | @implementation DZTextViewStyle 12 | IMP_ZERO_STYLE 13 | @end 14 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZViewStyle.h: -------------------------------------------------------------------------------- 1 | // 2 | // DZViewStyle.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZStyle.h" 10 | 11 | #define DZStyleMake(initCode , cla) \ 12 | ^{ \ 13 | cla * style = [[cla alloc] init]; \ 14 | {initCode} \ 15 | return style; \ 16 | }(); \ 17 | 18 | 19 | #define DZViewStyleMake(initCode) DZStyleMake(initCode, DZViewStyle) 20 | #define IMP_SHARE_VIEW_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZViewStyle) 21 | #define EXTERN_SHARE_VIEW_STYLE(name) EXTERN_SHARE_STYLE(name, DZViewStyle); 22 | 23 | @interface DZViewStyle : DZStyle 24 | { 25 | CGFloat _cornerRedius; 26 | CGFloat _borderWidth; 27 | UIColor* _borderColor; 28 | UIColor* _backgroundColor; 29 | CGFloat _alpha; 30 | BOOL _clipsToBounds; 31 | BOOL _clearsContextBeforeDrawing; 32 | } 33 | @property (nonatomic, assign) CGFloat cornerRedius; 34 | @property (nonatomic, assign) CGFloat borderWidth; 35 | @property (nonatomic, strong) UIColor* borderColor; 36 | @property (nonatomic, strong) UIColor* backgroundColor; 37 | @property (nonatomic, assign) CGFloat alpha; 38 | @property (nonatomic, assign) BOOL clipsToBounds; 39 | @property (nonatomic, assign) BOOL clearsContextBeforeDrawing; 40 | @property (nonatomic, assign) UIViewContentMode contentMode; 41 | @end 42 | -------------------------------------------------------------------------------- /Pod/Classes/Style/DZViewStyle.m: -------------------------------------------------------------------------------- 1 | // 2 | // DZViewStyle.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "DZViewStyle.h" 10 | #import 11 | 12 | 13 | @implementation DZViewStyle 14 | IMP_ZERO_STYLE 15 | - (instancetype)init 16 | { 17 | self = [super init]; 18 | if (self) { 19 | _alpha = 1.0; 20 | _clearsContextBeforeDrawing = YES; 21 | _clipsToBounds = YES; 22 | _contentMode = UIViewContentModeScaleToFill; 23 | } 24 | return self; 25 | } 26 | 27 | 28 | - (void) setBorderColor:(UIColor *)borderColor 29 | { 30 | if (_borderColor != borderColor) { 31 | _borderColor = borderColor; 32 | [self setAttributeNeedRefresh]; 33 | } 34 | } 35 | 36 | - (void) setBackgroundColor:(UIColor *)backgroundColor 37 | { 38 | if (_backgroundColor != backgroundColor) { 39 | _backgroundColor = backgroundColor; 40 | [self setAttributeNeedRefresh]; 41 | } 42 | } 43 | 44 | - (void) setAlpha:(CGFloat)alpha 45 | { 46 | _alpha = alpha; 47 | [self setAttributeNeedRefresh]; 48 | } 49 | - (void) setBorderWidth:(CGFloat)borderWidth 50 | { 51 | _borderWidth = borderWidth; 52 | [self setAttributeNeedRefresh]; 53 | } 54 | 55 | - (void) setCornerRedius:(CGFloat)cornerRedius 56 | { 57 | _cornerRedius = cornerRedius; 58 | [self setAttributeNeedRefresh]; 59 | } 60 | 61 | 62 | - (void) setClipsToBounds:(BOOL)clipsToBounds 63 | { 64 | _clipsToBounds = clipsToBounds; 65 | [self setAttributeNeedRefresh]; 66 | } 67 | 68 | - (void) setClearsContextBeforeDrawing:(BOOL)clearsContextBeforeDrawing 69 | { 70 | _clearsContextBeforeDrawing = clearsContextBeforeDrawing; 71 | [self setAttributeNeedRefresh]; 72 | } 73 | 74 | - (void) decorateView:(UIView *)aView 75 | { 76 | [super decorateView:aView]; 77 | if ([aView respondsToSelector:@selector(setBackgroundColor:)]) { 78 | [aView setBackgroundColor:self.backgroundColor]; 79 | } 80 | if ([aView respondsToSelector:@selector(layer)]) { 81 | aView.layer.cornerRadius = self.cornerRedius; 82 | aView.layer.borderWidth = self.borderWidth; 83 | aView.layer.borderColor = self.borderColor.CGColor; 84 | } 85 | aView.alpha = self.alpha; 86 | if (aView.clipsToBounds != self.clipsToBounds) { 87 | aView.clipsToBounds = self.clipsToBounds; 88 | } 89 | if (aView.contentMode != self.contentMode) { 90 | aView.contentMode = self.contentMode; 91 | } 92 | aView.clearsContextBeforeDrawing = self.clearsContextBeforeDrawing; 93 | } 94 | 95 | - (void) copyAttributesWithStyle:(id)style 96 | { 97 | DZBeginCopyAttribute(DZViewStyle) 98 | DZStyleCopyAttribute(cornerRedius) 99 | DZStyleCopyAttribute(borderWidth) 100 | DZStyleCopyAttribute(backgroundColor) 101 | DZStyleCopyAttribute(borderColor) 102 | DZStyleCopyAttribute(alpha) 103 | DZStyleCopyAttribute(clipsToBounds) 104 | DZStyleCopyAttribute(clearsContextBeforeDrawing) 105 | DZStyleCopyAttribute(contentMode) 106 | DZFinishCopyAttribute 107 | } 108 | - (id) copyWithZone:(NSZone *)zone 109 | { 110 | DZViewStyle* style = [super copyWithZone:zone]; 111 | style.backgroundColor = self.backgroundColor; 112 | style.cornerRedius = self.cornerRedius; 113 | style.borderColor = self.borderColor; 114 | style.borderWidth = self.borderWidth; 115 | style.alpha = self.alpha; 116 | style.clipsToBounds = self.clipsToBounds; 117 | style.contentMode = self.contentMode; 118 | return style; 119 | } 120 | 121 | @end 122 | -------------------------------------------------------------------------------- /Pod/Classes/StyleSheet.h: -------------------------------------------------------------------------------- 1 | // 2 | // StyleSheet.h 3 | // Pods 4 | // 5 | // Created by stonedong on 16/5/1. 6 | // 7 | // 8 | 9 | #ifndef StyleSheet_h 10 | #define StyleSheet_h 11 | 12 | #import "DZLabelStyle.h" 13 | #import "DZButtonStyle.h" 14 | 15 | #endif /* StyleSheet_h */ 16 | -------------------------------------------------------------------------------- /Pod/Classes/View-Category/UIView+Style.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Style.h 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DZViewStyle.h" 11 | #import "DZButtonStyle.h" 12 | #import "DZLabelStyle.h" 13 | #import "DZButtonStyle.h" 14 | #import "DZPageControlStyle.h" 15 | #import "DZTextFieldStyle.h" 16 | #import "DZTextViewStyle.h" 17 | #import "DZSwitchStyle.h" 18 | #import "DZSegementStyle.h" 19 | @interface UIView (Style) 20 | - (void) registreStyleClass:(Class)cla; 21 | @property (nonatomic, copy) DZViewStyle* style; 22 | @end 23 | 24 | @interface UIButton (Style) 25 | @property (nonatomic, copy) DZButtonStyle* style; 26 | @end 27 | 28 | @interface UILabel (Style) 29 | @property (nonatomic, copy) DZLabelStyle* style; 30 | @end 31 | 32 | @interface UISegmentedControl (Style) 33 | @property (nonatomic, copy) DZSegementStyle* style; 34 | @end 35 | 36 | @interface UITextField (Style) 37 | @property (nonatomic, copy) DZTextFieldStyle* style; 38 | @end 39 | 40 | @interface UITextView (Style) 41 | @property (nonatomic, copy) DZTextViewStyle* style; 42 | @end 43 | 44 | @interface UISwitch (Style) 45 | @property (nonatomic, copy) DZSwitchStyle* style; 46 | @end 47 | 48 | @interface UIPageControl (Style) 49 | @property (nonatomic, copy) DZPageControlStyle* style; 50 | @end -------------------------------------------------------------------------------- /Pod/Classes/View-Category/UIView+Style.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Style.m 3 | // DZStyle 4 | // 5 | // Created by baidu on 15/7/22. 6 | // Copyright (c) 2015年 dzpqzb. All rights reserved. 7 | // 8 | 9 | #import "UIView+Style.h" 10 | #import "DZStyle.h" 11 | #import 12 | #import "DZStyleCSS.h" 13 | 14 | static void* kDZStyleKey = &kDZStyleKey; 15 | static void* kDZStyleClass = &kDZStyleClass; 16 | @implementation UIView (Style) 17 | 18 | - (void) registreStyleClass:(Class)cla 19 | { 20 | objc_setAssociatedObject(self, kDZStyleClass, cla, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 21 | } 22 | 23 | - (Class) __styleClass 24 | { 25 | if ([self isKindOfClass:[UIButton class]]) { 26 | return [DZButtonStyle class]; 27 | } else if ([self isKindOfClass:[UILabel class]]) 28 | { 29 | return [DZLabelStyle class]; 30 | } else if ([self isKindOfClass:[UISegmentedControl class]]) 31 | { 32 | return [DZSegementStyle class]; 33 | } 34 | else if ([self isKindOfClass:[UIPageControl class]]) { 35 | return [DZPageControlStyle class]; 36 | } 37 | else if ([self isKindOfClass:[DZTextFieldStyle class]]) { 38 | return [DZTextFieldStyle class]; 39 | } else if ([self isKindOfClass:[UISwitch class]]) { 40 | return [DZSwitchStyle class]; 41 | } 42 | else { 43 | Class cla = objc_getAssociatedObject(self, kDZStyleClass); 44 | if (cla) { 45 | return cla; 46 | } 47 | return [DZViewStyle class]; 48 | } 49 | } 50 | 51 | - (DZStyle*) __zeroStyle 52 | { 53 | DZStyle* style; 54 | Class cla = [self __styleClass]; 55 | if ([(NSObject*)cla respondsToSelector:@selector(zeroStyle)]) { 56 | style = [[[self __styleClass] zeroStyle ] copy]; 57 | } 58 | return style; 59 | } 60 | - (void) __storeStyle:(DZStyle*)copyedStyle 61 | { 62 | objc_setAssociatedObject(self, kDZStyleKey, copyedStyle, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 63 | [copyedStyle installOnView:self]; 64 | [copyedStyle decorateView:self]; 65 | 66 | } 67 | - (void) setStyle:(DZStyle *)style 68 | { 69 | id oldStyle = objc_getAssociatedObject(self, kDZStyleKey); 70 | if (oldStyle) { 71 | [oldStyle unInstallOnView:self]; 72 | } 73 | DZStyle* copyedStyle = [self __zeroStyle] ; 74 | [copyedStyle copyAttributesWithStyle:style]; 75 | [self __storeStyle:copyedStyle]; 76 | 77 | } 78 | 79 | - (DZStyle*) style 80 | { 81 | DZStyle* style = objc_getAssociatedObject(self, kDZStyleKey); 82 | if (!style) { 83 | Class cla = [self __styleClass]; 84 | if ([(NSObject*)cla respondsToSelector:@selector(zeroStyle)]) { 85 | style = [[[self __styleClass] zeroStyle ] copy]; 86 | [self __storeStyle:style]; 87 | } 88 | } 89 | return style; 90 | } 91 | @end 92 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # StyleSheet 2 | 3 | [![CI Status](http://img.shields.io/travis/dongzhao/StyleSheet.svg?style=flat)](https://travis-ci.org/dongzhao/StyleSheet) 4 | [![Version](https://img.shields.io/cocoapods/v/StyleSheet.svg?style=flat)](http://cocoapods.org/pods/StyleSheet) 5 | [![License](https://img.shields.io/cocoapods/l/StyleSheet.svg?style=flat)](http://cocoapods.org/pods/StyleSheet) 6 | [![Platform](https://img.shields.io/cocoapods/p/StyleSheet.svg?style=flat)](http://cocoapods.org/pods/StyleSheet) 7 | 8 | nothing 9 | 10 | ## Usage 11 | 12 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 13 | 14 | ## Requirements 15 | 16 | 1. UIKit 17 | 18 | ## Installation 19 | 20 | StyleSheet is available through [CocoaPods](http://cocoapods.org). To install 21 | it, simply add the following line to your Podfile: 22 | 23 | ```ruby 24 | pod "StyleSheet" 25 | ``` 26 | 27 | 28 | ## What's wrong with origin method? 29 | 30 | 如果要实现下面这个效果,两个label,一个button,一个view 31 | ![image](http://ww1.sinaimg.cn/large/7df22103jw1euv1c5pbvdj20k00zkq3f.jpg) 32 | 基于原有的配置大概要写 33 | 34 | ``` 35 | self.label.layer.cornerRadius = 3; 36 | self.label.textColor = [UIColor darkTextColor]; 37 | self.label.font = [UIFont systemFontOfSize:13]; 38 | self.label.backgroundColor = [UIColor greenColor]; 39 | self.label.layer.borderWidth = 2; 40 | self.label.layer.borderColor = [UIColor redColor].CGColor; 41 | 42 | 43 | self.label2.layer.cornerRadius = 3; 44 | self.label2.textColor = [UIColor darkTextColor]; 45 | self.label2.font = [UIFont systemFontOfSize:13]; 46 | self.label2.backgroundColor = [UIColor greenColor]; 47 | self.label2.layer.borderWidth = 2; 48 | self.label2.layer.borderColor = [UIColor redColor].CGColor; 49 | 50 | 51 | self.button.layer.cornerRadius = 3; 52 | self.button.backgroundColor = [UIColor greenColor]; 53 | self.button.layer.borderWidth = 2; 54 | self.button.layer.borderColor = [UIColor redColor].CGColor; 55 | 56 | self.aView.layer.cornerRadius = 3; 57 | self.aView.backgroundColor = [UIColor greenColor]; 58 | self.aView.layer.borderWidth = 2; 59 | self.aView.layer.borderColor = [UIColor redColor].CGColor; 60 | ``` 61 | 62 | 所暴漏的问题: 63 | 64 | 1. 繁琐的代码,大量重复性的工作 65 | 2. 样式无法共享,每一个View都需要重新进行样式赋值。 66 | 67 | 因而StyleSheet所要解决的问题就是: 68 | 69 | 1. 样式配置轻便化,能够使用更加少的代码来描述View的样式 70 | 2. 样式在View之间的共享 71 | 72 | 73 | 目前阶段使用StyleSheet完成上述样式: 74 | 75 | ``` 76 | self.label.style = DZLabelStyleMake( 77 | style.backgroundColor = [UIColor greenColor]; 78 | style.cornerRedius = 3; 79 | style.borderColor = [UIColor redColor]; 80 | style.borderWidth = 2; 81 | style.textStyle.textColor = [UIColor darkTextColor]; 82 | style.textStyle.font = [UIFont systemFontOfSize:13]; 83 | ); 84 | self.label2.style = self.label.style; 85 | self.aView.style = self.label.style; 86 | [self.button.style copyAttributesWithStyle:self.label.style]; 87 | ``` 88 | 89 | 90 | 91 | ### How to use? 92 | 93 | 在设计StyleSheet的时候故意淡化了被渲染的View的类型的概念,任何一种类型的Style可以对任何类型的View进行渲染,但是必须是这种类型的View支持Style所指称的属性。比如你可以使用真对Button设计的DZButtonStateStyle来渲染一个UILabel,但由于UILabel不支持DZButtonStateStyle中的渲染属性,所以渲染结果是无效的。 94 | 95 | 但是当使用DZButtonStyle(继承自DZViewStyle)来渲染UILabel的时候,会使用DZButtonStyle中其父类的某些渲染属性,来渲染UILabel的父类UIView所支持的那些属性。 96 | #### 直接使用Style对View进行渲染: 97 | 98 | ``` 99 | DZLabelStyle* style = DZLabelStyleMake( 100 | style.backgroundColor = [UIColor greenColor]; 101 | style.cornerRedius = 3; 102 | style.borderColor = [UIColor redColor]; 103 | style.borderWidth = 2; 104 | style.textStyle.textColor = [UIColor darkTextColor]; 105 | style.textStyle.font = [UIFont systemFontOfSize:13]; 106 | ); 107 | 108 | [style decorateView:self.label]; 109 | ``` 110 | 直接渲染的好处是,不用再次生成Style对象,更加方便样式在多个View之间渲染。 111 | 112 | 113 | #### 赋值渲染 114 | 115 | ``` 116 | self.label.style = style; 117 | ``` 118 | 119 | 或者 120 | 121 | ``` 122 | self.label.style = DZLabelStyleMake( 123 | style.backgroundColor = [UIColor greenColor]; 124 | style.cornerRedius = 3; 125 | style.borderColor = [UIColor redColor]; 126 | style.borderWidth = 2; 127 | style.textStyle.textColor = [UIColor darkTextColor]; 128 | style.textStyle.font = [UIFont systemFontOfSize:13]; 129 | ); 130 | ``` 131 | 132 | 当进行赋值渲染的时候,会将Style的Copy后的实例与当前View绑定,当更改Style的属性的时候,对应View的样式会立刻改变。 133 | 134 | ### 通用样式的共享 135 | 136 | 使用原有的配置,进行通用样式的共享是个非常困难的事情,基本上都是体力活,靠人力来维护。我们的代码中会掺杂大量的用于配置样式的代码,而且是独立且散在。 137 | 138 | 现在你可以通过StyleSheet解决: 139 | 140 | #### 定义共享的样式: 141 | 142 | ``` 143 | EXTERN_SHARE_LABEL_STYLE(Content) 144 | 145 | IMP_SHARE_LABEL_STYLE(Content, 146 | style.backgroundColor = [UIColor clearColor]; 147 | style.cornerRedius = 2; 148 | style.textStyle.textColor = [UIColor redColor]; 149 | ) 150 | ``` 151 | 152 | 153 | #### 使用共享样式,方式一 154 | 155 | ``` 156 | self.label.style = DZStyleContent(); 157 | ``` 158 | #### 使用共享样式,方式二(推荐) 159 | 很多时候, 如果不需要进一步更改样式,可以不采复制赋值的方式来进行渲染,可以直接使用: 160 | 161 | ``` 162 | [DZStyleContent() decorateView:self.label]; 163 | 164 | ``` 165 | 只进行渲染,而不进行复制 166 | 167 | ## 支持的类型 168 | 169 | 1. UIView 170 | 2. UILabel 171 | 3. UITextView 172 | 4. UITextField 173 | 5. UIButton 174 | 175 | ## 计划中支持的类型 176 | 177 | 1. UISearchBar 178 | 2. UINavigationBar 179 | 3. ..... 180 | 181 | ## Author 182 | 183 | yishuiliunian@gmail.com 184 | 185 | ## License 186 | 187 | StyleSheet is available under the MIT license. See the LICENSE file for more info. 188 | -------------------------------------------------------------------------------- /StyleSheet.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint StyleSheet.podspec' to ensure this is a 3 | # valid spec and remove all comments before submitting the spec. 4 | # 5 | # Any lines starting with a # are optional, but encouraged 6 | # 7 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 8 | # 9 | 10 | Pod::Spec.new do |s| 11 | s.name = "StyleSheet" 12 | s.version = "0.1.6" 13 | s.summary = "在IOS基础空间所能够支持的样式基础之上,建立的类似于样式配置表css的模块。为每个控件制定一个style,可以用来控制该控件的样式,同时样式可以在多个控件之间复用。" 14 | s.description = <<-DESC 15 | 在IOS基础控件所能够支持的样式基础之上,建立的类似于样式配置表css的模块。为每个控件制定一个style,可以用来控制该控件的样式,同时样式可以在多个控件之间复用。 16 | DESC 17 | s.homepage = "https://github.com/yishuiliunian/StyleSheet" 18 | # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" 19 | s.license = 'MIT' 20 | s.author = { "dongzhao" => "yishuiliunian@gmail.com" } 21 | s.source = { :git => "https://github.com/yishuiliunian/StyleSheet.git", :tag => s.version.to_s } 22 | # s.social_media_url = 'https://twitter.com/' 23 | 24 | s.platform = :ios, '7.0' 25 | s.requires_arc = true 26 | 27 | s.source_files = 'Pod/Classes/**/*' 28 | s.resource_bundles = { 29 | 'StyleSheet' => ['Pod/Assets/*.png'] 30 | } 31 | 32 | # s.public_header_files = 'Pod/Classes/**/*.h' 33 | # s.frameworks = 'UIKit', 'MapKit' 34 | # s.dependency 'AFNetworking', '~> 2.3' 35 | end 36 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /readmeImgs/demo.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yishuiliunian/StyleSheet/53c5b9b1e9a6f0d04738d0adbe0bd531f85540d2/readmeImgs/demo.jpeg --------------------------------------------------------------------------------