diff --git a/ZYShareView.podspec b/ZYShareView.podspec new file mode 100644 index 0000000..1372d78 --- /dev/null +++ b/ZYShareView.podspec @@ -0,0 +1,138 @@ +# +# Be sure to run `pod spec lint ZYShareView.podspec' to ensure this is a +# valid spec and to remove all comments including this before submitting the spec. +# +# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html +# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ +# + +Pod::Spec.new do |s| + + # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # These will help people to find your library, and whilst it + # can feel like a chore to fill in it's definitely to your advantage. The + # summary should be tweet-length, and the description more in depth. + # + + s.name = "ZYShareView" + s.version = "1.0.0" + s.summary = "应用中常见的分享/功能菜单面板, 高仿微信:-)" + + # This description is used to generate tags and improve search results. + # * Think: What does it do? Why did you write it? What is the focus? + # * Try to keep it short, snappy and to the point. + # * Write the description between the DESC delimiters below. + # * Finally, don't worry about the indent, CocoaPods strips it! + s.description = <<-DESC + 模仿微信,在应用中常见的分享/功能菜单面板。 magnusguo协助兼容iOS11,修复若干Warning. + DESC + + s.homepage = "https://github.com/magnusguo/ZYShareView" + # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" + + + # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Licensing your code is important. See http://choosealicense.com for more info. + # CocoaPods will detect a license file if there is a named LICENSE* + # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. + # + + s.license= { :type => "MIT", :file => "LICENSE" } + # s.license = { :type => "MIT", :file => "FILE_LICENSE" } + + + # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the authors of the library, with email addresses. Email addresses + # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also + # accepts just a name if you'd rather not provide an email address. + # + # Specify a social_media_url where others can refer to, for example a twitter + # profile URL. + # + + s.author = { "Ryan Zhang" => "http://nszzy.me" } + # Or just: s.author = "Magnus" + # s.authors = { "Magnus" => "magnusguo@gmail.com" } + # s.social_media_url = "http://twitter.com/Magnus" + + # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If this Pod runs only on iOS or OS X, then specify the platform and + # the deployment target. You can optionally include the target after the platform. + # + + # s.platform = :ios + s.platform = :ios, "7.0" + + # When using multiple platforms + s.ios.deployment_target = "7.0" + # s.osx.deployment_target = "10.7" + # s.watchos.deployment_target = "2.0" + # s.tvos.deployment_target = "9.0" + + + # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the location from where the source should be retrieved. + # Supports git, hg, bzr, svn and HTTP. + # + + s.source = { :git => "https://github.com/magnusguo/ZYShareView.git", :tag => "#{s.version}" } + + + # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # CocoaPods is smart about how it includes source code. For source files + # giving a folder will include any swift, h, m, mm, c & cpp files. + # For header files it will include any header in the folder. + # Not including the public_header_files will make all headers public. + # + + s.source_files = "ZYShareView", "ZYShareView/*" + #s.exclude_files = "Classes/Exclude" + + # s.public_header_files = "Classes/**/*.h" + + + # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # A list of resources included with the Pod. These are copied into the + # target bundle with a build phase script. Anything else will be cleaned. + # You can preserve files from being cleaned, please don't preserve + # non-essential files like tests, examples and documentation. + # + + # s.resource = "icon.png" + # s.resources = "Resources/*.png" + + # s.preserve_paths = "FilesToSave", "MoreFilesToSave" + + + # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Link your library with frameworks, or libraries. Libraries do not include + # the lib prefix of their name. + # + + # s.framework = "SomeFramework" + # s.frameworks = "SomeFramework", "AnotherFramework" + + # s.library = "iconv" + # s.libraries = "iconv", "xml2" + + + # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If your library depends on compiler flags you can set them in the xcconfig hash + # where they will only apply to your library. If you depend on other Podspecs + # you can include multiple dependencies to ensure it works. + + # s.requires_arc = true + + # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } + # s.dependency "JSONKit", "~> 1.4" + +end diff --git a/ZYShareView/Images.xcassets/Action_Copy.imageset/Action_Copy@2x.png b/ZYShareView/Images.xcassets/Action_Copy.imageset/Action_Copy@2x.png new file mode 100644 index 0000000..448475e Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Copy.imageset/Action_Copy@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Copy.imageset/Action_Copy@3x.png b/ZYShareView/Images.xcassets/Action_Copy.imageset/Action_Copy@3x.png new file mode 100644 index 0000000..c759cd8 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Copy.imageset/Action_Copy@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Copy.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_Copy.imageset/Contents.json new file mode 100644 index 0000000..17fb7bc --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_Copy.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_Copy@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_Copy@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_Font.imageset/Action_Font@2x.png b/ZYShareView/Images.xcassets/Action_Font.imageset/Action_Font@2x.png new file mode 100644 index 0000000..5d7853e Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Font.imageset/Action_Font@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Font.imageset/Action_Font@3x.png b/ZYShareView/Images.xcassets/Action_Font.imageset/Action_Font@3x.png new file mode 100644 index 0000000..63b16c6 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Font.imageset/Action_Font@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Font.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_Font.imageset/Contents.json new file mode 100644 index 0000000..47fd8d8 --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_Font.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_Font@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_Font@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_Moments.imageset/Action_Moments@2x.png b/ZYShareView/Images.xcassets/Action_Moments.imageset/Action_Moments@2x.png new file mode 100644 index 0000000..34d2cab Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Moments.imageset/Action_Moments@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Moments.imageset/Action_Moments@3x.png b/ZYShareView/Images.xcassets/Action_Moments.imageset/Action_Moments@3x.png new file mode 100644 index 0000000..1ae0d78 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Moments.imageset/Action_Moments@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Moments.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_Moments.imageset/Contents.json new file mode 100644 index 0000000..cff9616 --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_Moments.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_Moments@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_Moments@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@2x.png b/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@2x.png new file mode 100644 index 0000000..5c4aefe Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@3x.png b/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@3x.png new file mode 100644 index 0000000..7e23632 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Action_MyFavAdd@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Contents.json new file mode 100644 index 0000000..47dc73c --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_MyFavAdd.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_MyFavAdd@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_MyFavAdd@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_QQ.imageset/AS_QQ@2x.png b/ZYShareView/Images.xcassets/Action_QQ.imageset/AS_QQ@2x.png new file mode 100644 index 0000000..a5527e2 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_QQ.imageset/AS_QQ@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_QQ.imageset/AS_QQ@3x.png b/ZYShareView/Images.xcassets/Action_QQ.imageset/AS_QQ@3x.png new file mode 100644 index 0000000..3484ad8 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_QQ.imageset/AS_QQ@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_QQ.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_QQ.imageset/Contents.json new file mode 100644 index 0000000..f961764 --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_QQ.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "AS_QQ@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "AS_QQ@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_Refresh.imageset/Action_Refresh@2x.png b/ZYShareView/Images.xcassets/Action_Refresh.imageset/Action_Refresh@2x.png new file mode 100644 index 0000000..8aedc91 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Refresh.imageset/Action_Refresh@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Refresh.imageset/Action_Refresh@3x.png b/ZYShareView/Images.xcassets/Action_Refresh.imageset/Action_Refresh@3x.png new file mode 100644 index 0000000..4b72990 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Refresh.imageset/Action_Refresh@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Refresh.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_Refresh.imageset/Contents.json new file mode 100644 index 0000000..b1e7fce --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_Refresh.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_Refresh@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_Refresh@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_Share.imageset/Action_Share@2x.png b/ZYShareView/Images.xcassets/Action_Share.imageset/Action_Share@2x.png new file mode 100644 index 0000000..3befb28 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Share.imageset/Action_Share@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Share.imageset/Action_Share@3x.png b/ZYShareView/Images.xcassets/Action_Share.imageset/Action_Share@3x.png new file mode 100644 index 0000000..e55d046 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Share.imageset/Action_Share@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Share.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_Share.imageset/Contents.json new file mode 100644 index 0000000..5a87b0c --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_Share.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_Share@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_Share@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_Verified.imageset/Action_Verified@2x.png b/ZYShareView/Images.xcassets/Action_Verified.imageset/Action_Verified@2x.png new file mode 100644 index 0000000..5502e5c Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Verified.imageset/Action_Verified@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Verified.imageset/Action_Verified@3x.png b/ZYShareView/Images.xcassets/Action_Verified.imageset/Action_Verified@3x.png new file mode 100644 index 0000000..1f1ada4 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_Verified.imageset/Action_Verified@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_Verified.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_Verified.imageset/Contents.json new file mode 100644 index 0000000..9756d83 --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_Verified.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_Verified@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_Verified@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_facebook.imageset/Action_facebook@2x.png b/ZYShareView/Images.xcassets/Action_facebook.imageset/Action_facebook@2x.png new file mode 100644 index 0000000..34aff42 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_facebook.imageset/Action_facebook@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_facebook.imageset/Action_facebook@3x.png b/ZYShareView/Images.xcassets/Action_facebook.imageset/Action_facebook@3x.png new file mode 100644 index 0000000..0a7c625 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_facebook.imageset/Action_facebook@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_facebook.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_facebook.imageset/Contents.json new file mode 100644 index 0000000..6fa8ef7 --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_facebook.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_facebook@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_facebook@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/Action_qzone.imageset/Action_qzone@2x.png b/ZYShareView/Images.xcassets/Action_qzone.imageset/Action_qzone@2x.png new file mode 100644 index 0000000..e8ff272 Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_qzone.imageset/Action_qzone@2x.png differ diff --git a/ZYShareView/Images.xcassets/Action_qzone.imageset/Action_qzone@3x.png b/ZYShareView/Images.xcassets/Action_qzone.imageset/Action_qzone@3x.png new file mode 100644 index 0000000..6573adc Binary files /dev/null and b/ZYShareView/Images.xcassets/Action_qzone.imageset/Action_qzone@3x.png differ diff --git a/ZYShareView/Images.xcassets/Action_qzone.imageset/Contents.json b/ZYShareView/Images.xcassets/Action_qzone.imageset/Contents.json new file mode 100644 index 0000000..1463e97 --- /dev/null +++ b/ZYShareView/Images.xcassets/Action_qzone.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Action_qzone@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Action_qzone@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/AppIcon.appiconset/Contents.json b/ZYShareView/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/ZYShareView/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/background.imageset/Contents.json b/ZYShareView/Images.xcassets/background.imageset/Contents.json new file mode 100644 index 0000000..77f1405 --- /dev/null +++ b/ZYShareView/Images.xcassets/background.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "background@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/background.imageset/background@2x.png b/ZYShareView/Images.xcassets/background.imageset/background@2x.png new file mode 100644 index 0000000..fc07b81 Binary files /dev/null and b/ZYShareView/Images.xcassets/background.imageset/background@2x.png differ diff --git a/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/Contents.json b/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/Contents.json new file mode 100644 index 0000000..f53baa3 --- /dev/null +++ b/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "barbuttonicon_more@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "barbuttonicon_more@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@2x.png b/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@2x.png new file mode 100644 index 0000000..b14319e Binary files /dev/null and b/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@2x.png differ diff --git a/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@3x.png b/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@3x.png new file mode 100644 index 0000000..e80c892 Binary files /dev/null and b/ZYShareView/Images.xcassets/barbuttonicon_more.imageset/barbuttonicon_more@3x.png differ diff --git a/ZYShareView/ZYShareItem.h b/ZYShareView/ZYShareItem.h index 3818b66..2577eeb 100755 --- a/ZYShareView/ZYShareItem.h +++ b/ZYShareView/ZYShareItem.h @@ -12,13 +12,13 @@ @property (nonatomic, copy) NSString *icon; /**< 图标名称 */ @property (nonatomic, copy) NSString *title; /**< 标题 */ -@property (nonatomic, copy) void (^selectionHandler)(); /**< 点击后的事件处理 */ +@property (nonatomic, copy) void (^selectionHandler)(void); /**< 点击后的事件处理 */ /** * 快速创建方法 */ + (instancetype)itemWithTitle:(NSString *)title icon:(NSString *)icon - handler:(void (^)())handler; + handler:(void (^)(void))handler; @end diff --git a/ZYShareView/ZYShareItem.m b/ZYShareView/ZYShareItem.m index cdc5c61..89242c5 100755 --- a/ZYShareView/ZYShareItem.m +++ b/ZYShareView/ZYShareItem.m @@ -12,7 +12,7 @@ @implementation ZYShareItem + (instancetype)itemWithTitle:(NSString *)title icon:(NSString *)icon - handler:(void (^)())handler + handler:(void (^)(void))handler { ZYShareItem *item = [[ZYShareItem alloc] init]; item.title = title; diff --git a/ZYShareView/ZYShareSheetView.h b/ZYShareView/ZYShareSheetView.h index 6b8191d..09c2251 100755 --- a/ZYShareView/ZYShareSheetView.h +++ b/ZYShareView/ZYShareSheetView.h @@ -17,7 +17,7 @@ //@property (nonatomic, strong) NSArray *functionArray; @property (nonatomic, strong) NSMutableArray *dataArray; -@property (nonatomic, copy) void (^cancelBlock)(); +@property (nonatomic, copy) void (^cancelBlock)(void); - (CGFloat)shareSheetHeight; - (CGFloat)initialHeight; diff --git a/ZYShareView/ZYShareSheetView.m b/ZYShareView/ZYShareSheetView.m index 82a95a0..6871d47 100755 --- a/ZYShareView/ZYShareSheetView.m +++ b/ZYShareView/ZYShareSheetView.m @@ -42,16 +42,23 @@ - (void)layoutSubviews { [super layoutSubviews]; + for (id view in self.subviews) { + if ([view isKindOfClass:(NSClassFromString(@"_UIToolbarContentView"))]) { + UIView *theView = view; + theView.userInteractionEnabled = NO; + } + } + CGRect frame = self.frame; frame.size.height = [self shareSheetHeight]; self.frame = frame; - + // 标题 self.titleLabel.frame = CGRectMake(ZY_TitlePadding, 0, ZY_ScreenWidth - 2 * ZY_TitlePadding, self.titleHeight); - + // 取消按钮 self.cancelButton.frame = CGRectMake(0, self.frame.size.height - ZY_CancelButtonHeight, ZY_ScreenWidth, ZY_CancelButtonHeight); - + // TableView self.tableView.frame = CGRectMake(0, self.titleHeight, ZY_ScreenWidth, self.dataArray.count * ZY_ItemCellHeight); } diff --git a/ZYShareViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json b/ZYShareViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json index 36d2c80..d8db8d6 100644 --- a/ZYShareViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/ZYShareViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json @@ -1,5 +1,15 @@ { "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, { "idiom" : "iphone", "size" : "29x29", @@ -30,6 +40,16 @@ "size" : "60x60", "scale" : "3x" }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, { "idiom" : "ipad", "size" : "29x29", @@ -59,6 +79,16 @@ "idiom" : "ipad", "size" : "76x76", "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : {