From 4b632c1e1f6459f4eb357cbd50bb85467cdd58f1 Mon Sep 17 00:00:00 2001 From: stan <3421902@qq.com> Date: Tue, 6 Jun 2017 18:23:30 +0800 Subject: [PATCH] fix something --- .DS_Store | Bin 0 -> 6148 bytes StarReview.podspec | 4 ++-- StarReview/StarReview.swift | 2 +- StarReviewDemo/.DS_Store | Bin 0 -> 6148 bytes .../StarReviewDemo.xcodeproj/project.pbxproj | 3 +++ 5 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .DS_Store create mode 100644 StarReviewDemo/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ff6e21d604a9fbc2c2d2c3fcf0241d2c7058be7e GIT binary patch literal 6148 zcmeH~%}T>i5QWcZ7ezt3ba`LFHwY!ZfO!E0MFef3Xx(P#YkTHLX-(X^kTWoIlF7`y zxR!0oWcII2vb){o!w!>m)u2VZ(olq=x zXTC)_tV>lC0TDPRaGJL(pa0kNU(Wx>O}Y~S5%^aGY|#(>ny*x|b@FmPYa9KR{$;F< na)ubi)ELFQ@lkwvP}lsL&%4qwHQJevcB*~^oQq5Z{(`_K$FCi% literal 0 HcmV?d00001 diff --git a/StarReview.podspec b/StarReview.podspec index d58b0b1..ecbaaad 100644 --- a/StarReview.podspec +++ b/StarReview.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "StarReview" - s.version = "0.0.3" + s.version = "1.0.0" s.summary = "StarReview is a iOS rate tool. it use star to rate something" # This description is used to generate tags and improve search results. @@ -80,7 +80,7 @@ Pod::Spec.new do |s| # Supports git, hg, bzr, svn and HTTP. # - s.source = { :git => "https://github.com/DuckDeck/StarReview.git", :tag => "0.0.3" } + s.source = { :git => "https://github.com/DuckDeck/StarReview.git", :tag => "1.0.0" } # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # diff --git a/StarReview/StarReview.swift b/StarReview/StarReview.swift index e071b0e..662ccbc 100644 --- a/StarReview/StarReview.swift +++ b/StarReview/StarReview.swift @@ -195,7 +195,7 @@ public final class StarReview: UIControl { ctx?.setStrokeColor(starBackgroundColor.cgColor) ctx?.setLineCap(CGLineCap.butt) ctx?.move(to: CGPoint(x: p1.x, y: p1.y)) - let angle = Float(4 * M_PI / 5) + let angle = Float(4 * Double.pi / 5) for i in 1...5{ let x = Float(starCenter.x) - sinf(angle * Float(i)) * Float(radius) let y = Float(starCenter.y) - cosf(angle * Float(i)) * Float(radius) diff --git a/StarReviewDemo/.DS_Store b/StarReviewDemo/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9bdd3e9a4aecfabad0de62f2ed9d03083d3a2cb9 GIT binary patch literal 6148 zcmeHKO-jR15dNliQE}5{m+u5ZZxBj)0doN*5q~fwl-9b;kp!>eO}v2LyctTRx==x+ z%)rd|@-j2Yd=D}i0J7LLb6^T!LRB1{(tIL%U-dvnzB49D&T)ZjJmQXad*B@#|B(Sb zyBR91afKE3&#&Yuw&-w$s+(! zeD>p_*;YZLX7s-k{_;Vy)W+=}U| dt$0Sw!u_NRV&OO#a)%N>0-1&|!N8v~@D7?9M!^68 literal 0 HcmV?d00001 diff --git a/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj b/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj index 4432b90..317da60 100644 --- a/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj +++ b/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj @@ -122,6 +122,7 @@ TargetAttributes = { A20DD94B1C116E7A00F690E8 = { CreatedOnToolsVersion = 7.1.1; + DevelopmentTeam = 76966J85NL; LastSwiftMigration = 0800; }; }; @@ -274,6 +275,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 76966J85NL; INFOPLIST_FILE = StarReviewDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -288,6 +290,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 76966J85NL; INFOPLIST_FILE = StarReviewDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";