├── .gitignore ├── .travis.yml ├── Example ├── FTfloatBall.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── FTfloatBall-Example.xcscheme ├── FTfloatBall.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── FTfloatBall │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── FTAppDelegate.h │ ├── FTAppDelegate.m │ ├── FTViewController.h │ ├── FTViewController.m │ ├── FTfloatBall-Info.plist │ ├── FTfloatBall-Prefix.pch │ ├── FTfloatBall.h │ ├── FTfloatBall.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── moon.imageset │ │ │ ├── Contents.json │ │ │ └── moon.png │ ├── background.jpg │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── FTfloatBall.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── FTfloatBall │ │ ├── FTfloatBall-Info.plist │ │ ├── FTfloatBall-dummy.m │ │ ├── FTfloatBall-prefix.pch │ │ ├── FTfloatBall-umbrella.h │ │ ├── FTfloatBall.debug.xcconfig │ │ ├── FTfloatBall.modulemap │ │ └── FTfloatBall.release.xcconfig │ │ ├── Pods-FTfloatBall_Example │ │ ├── Pods-FTfloatBall_Example-Info.plist │ │ ├── Pods-FTfloatBall_Example-acknowledgements.markdown │ │ ├── Pods-FTfloatBall_Example-acknowledgements.plist │ │ ├── Pods-FTfloatBall_Example-dummy.m │ │ ├── Pods-FTfloatBall_Example-frameworks.sh │ │ ├── Pods-FTfloatBall_Example-umbrella.h │ │ ├── Pods-FTfloatBall_Example.debug.xcconfig │ │ ├── Pods-FTfloatBall_Example.modulemap │ │ └── Pods-FTfloatBall_Example.release.xcconfig │ │ └── Pods-FTfloatBall_Tests │ │ ├── Pods-FTfloatBall_Tests-Info.plist │ │ ├── Pods-FTfloatBall_Tests-acknowledgements.markdown │ │ ├── Pods-FTfloatBall_Tests-acknowledgements.plist │ │ ├── Pods-FTfloatBall_Tests-dummy.m │ │ ├── Pods-FTfloatBall_Tests-umbrella.h │ │ ├── Pods-FTfloatBall_Tests.debug.xcconfig │ │ ├── Pods-FTfloatBall_Tests.modulemap │ │ └── Pods-FTfloatBall_Tests.release.xcconfig └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── FTfloatBall.podspec ├── FTfloatBall ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── FTfloatBall.h │ └── FTfloatBall.m ├── LICENSE ├── README.md ├── ScreenShots └── demo.gif └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/FTfloatBall.xcworkspace -scheme FTfloatBall-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/FTfloatBall.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 /* FTAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* FTAppDelegate.m */; }; 16 | 6003F5A7195388D20070C39A /* FTViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* FTViewController.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 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 24 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 25 | 987AB9D124DD4222003880CA /* FTfloatBall.m in Sources */ = {isa = PBXBuildFile; fileRef = 987AB9CF24DD4221003880CA /* FTfloatBall.m */; }; 26 | 987AB9D324DD4260003880CA /* background.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 987AB9D224DD4260003880CA /* background.jpg */; }; 27 | AD82B6410925EC28BE06348A /* Pods_FTfloatBall_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E5C28AB8B2B7DADD76053A50 /* Pods_FTfloatBall_Example.framework */; }; 28 | E1CAA1C80F8093DCC8130FA8 /* Pods_FTfloatBall_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21AB201B34F82238E5CB1AE0 /* Pods_FTfloatBall_Tests.framework */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = 6003F582195388D10070C39A /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = 6003F589195388D20070C39A; 37 | remoteInfo = FTfloatBall; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 009F8195E8AE88F9B2DF1E15 /* Pods-FTfloatBall_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FTfloatBall_Example.debug.xcconfig"; path = "Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.debug.xcconfig"; sourceTree = ""; }; 43 | 21AB201B34F82238E5CB1AE0 /* Pods_FTfloatBall_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FTfloatBall_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 6003F58A195388D20070C39A /* FTfloatBall_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FTfloatBall_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 46 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 47 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 48 | 6003F595195388D20070C39A /* FTfloatBall-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "FTfloatBall-Info.plist"; sourceTree = ""; }; 49 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 50 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 51 | 6003F59B195388D20070C39A /* FTfloatBall-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "FTfloatBall-Prefix.pch"; sourceTree = ""; }; 52 | 6003F59C195388D20070C39A /* FTAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FTAppDelegate.h; sourceTree = ""; }; 53 | 6003F59D195388D20070C39A /* FTAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FTAppDelegate.m; sourceTree = ""; }; 54 | 6003F5A5195388D20070C39A /* FTViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FTViewController.h; sourceTree = ""; }; 55 | 6003F5A6195388D20070C39A /* FTViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FTViewController.m; sourceTree = ""; }; 56 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 57 | 6003F5AE195388D20070C39A /* FTfloatBall_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FTfloatBall_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 59 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 60 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 61 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 62 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 63 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 64 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 65 | 8BF77EF19187387F8CF1E585 /* FTfloatBall.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = FTfloatBall.podspec; path = ../FTfloatBall.podspec; sourceTree = ""; }; 66 | 8BF8B55304A733D0B873613D /* Pods-FTfloatBall_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FTfloatBall_Tests.debug.xcconfig"; path = "Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.debug.xcconfig"; sourceTree = ""; }; 67 | 97A63BD4FB535034673B3883 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 68 | 987AB9CF24DD4221003880CA /* FTfloatBall.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FTfloatBall.m; sourceTree = ""; }; 69 | 987AB9D024DD4221003880CA /* FTfloatBall.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FTfloatBall.h; sourceTree = ""; }; 70 | 987AB9D224DD4260003880CA /* background.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = background.jpg; sourceTree = ""; }; 71 | C386C880B252EB3EE6B30CC7 /* Pods-FTfloatBall_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FTfloatBall_Tests.release.xcconfig"; path = "Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.release.xcconfig"; sourceTree = ""; }; 72 | CBBF99835E915F70EEFE73D4 /* Pods-FTfloatBall_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FTfloatBall_Example.release.xcconfig"; path = "Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.release.xcconfig"; sourceTree = ""; }; 73 | CE93C4C2746F39B3B1AC928E /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 74 | E5C28AB8B2B7DADD76053A50 /* Pods_FTfloatBall_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FTfloatBall_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | /* End PBXFileReference section */ 76 | 77 | /* Begin PBXFrameworksBuildPhase section */ 78 | 6003F587195388D20070C39A /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 83 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 84 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 85 | AD82B6410925EC28BE06348A /* Pods_FTfloatBall_Example.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 6003F5AB195388D20070C39A /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 94 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 95 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 96 | E1CAA1C80F8093DCC8130FA8 /* Pods_FTfloatBall_Tests.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | 6003F581195388D10070C39A = { 104 | isa = PBXGroup; 105 | children = ( 106 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 107 | 6003F593195388D20070C39A /* Example for FTfloatBall */, 108 | 6003F5B5195388D20070C39A /* Tests */, 109 | 6003F58C195388D20070C39A /* Frameworks */, 110 | 6003F58B195388D20070C39A /* Products */, 111 | 6921958706E2ED47BB4C10CA /* Pods */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | 6003F58B195388D20070C39A /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 6003F58A195388D20070C39A /* FTfloatBall_Example.app */, 119 | 6003F5AE195388D20070C39A /* FTfloatBall_Tests.xctest */, 120 | ); 121 | name = Products; 122 | sourceTree = ""; 123 | }; 124 | 6003F58C195388D20070C39A /* Frameworks */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 6003F58D195388D20070C39A /* Foundation.framework */, 128 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 129 | 6003F591195388D20070C39A /* UIKit.framework */, 130 | 6003F5AF195388D20070C39A /* XCTest.framework */, 131 | E5C28AB8B2B7DADD76053A50 /* Pods_FTfloatBall_Example.framework */, 132 | 21AB201B34F82238E5CB1AE0 /* Pods_FTfloatBall_Tests.framework */, 133 | ); 134 | name = Frameworks; 135 | sourceTree = ""; 136 | }; 137 | 6003F593195388D20070C39A /* Example for FTfloatBall */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 987AB9D224DD4260003880CA /* background.jpg */, 141 | 987AB9D024DD4221003880CA /* FTfloatBall.h */, 142 | 987AB9CF24DD4221003880CA /* FTfloatBall.m */, 143 | 6003F59C195388D20070C39A /* FTAppDelegate.h */, 144 | 6003F59D195388D20070C39A /* FTAppDelegate.m */, 145 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 146 | 6003F5A5195388D20070C39A /* FTViewController.h */, 147 | 6003F5A6195388D20070C39A /* FTViewController.m */, 148 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, 149 | 6003F5A8195388D20070C39A /* Images.xcassets */, 150 | 6003F594195388D20070C39A /* Supporting Files */, 151 | ); 152 | name = "Example for FTfloatBall"; 153 | path = FTfloatBall; 154 | sourceTree = ""; 155 | }; 156 | 6003F594195388D20070C39A /* Supporting Files */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 6003F595195388D20070C39A /* FTfloatBall-Info.plist */, 160 | 6003F596195388D20070C39A /* InfoPlist.strings */, 161 | 6003F599195388D20070C39A /* main.m */, 162 | 6003F59B195388D20070C39A /* FTfloatBall-Prefix.pch */, 163 | ); 164 | name = "Supporting Files"; 165 | sourceTree = ""; 166 | }; 167 | 6003F5B5195388D20070C39A /* Tests */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 6003F5BB195388D20070C39A /* Tests.m */, 171 | 6003F5B6195388D20070C39A /* Supporting Files */, 172 | ); 173 | path = Tests; 174 | sourceTree = ""; 175 | }; 176 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 180 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 181 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 182 | ); 183 | name = "Supporting Files"; 184 | sourceTree = ""; 185 | }; 186 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 8BF77EF19187387F8CF1E585 /* FTfloatBall.podspec */, 190 | CE93C4C2746F39B3B1AC928E /* README.md */, 191 | 97A63BD4FB535034673B3883 /* LICENSE */, 192 | ); 193 | name = "Podspec Metadata"; 194 | sourceTree = ""; 195 | }; 196 | 6921958706E2ED47BB4C10CA /* Pods */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 009F8195E8AE88F9B2DF1E15 /* Pods-FTfloatBall_Example.debug.xcconfig */, 200 | CBBF99835E915F70EEFE73D4 /* Pods-FTfloatBall_Example.release.xcconfig */, 201 | 8BF8B55304A733D0B873613D /* Pods-FTfloatBall_Tests.debug.xcconfig */, 202 | C386C880B252EB3EE6B30CC7 /* Pods-FTfloatBall_Tests.release.xcconfig */, 203 | ); 204 | path = Pods; 205 | sourceTree = ""; 206 | }; 207 | /* End PBXGroup section */ 208 | 209 | /* Begin PBXNativeTarget section */ 210 | 6003F589195388D20070C39A /* FTfloatBall_Example */ = { 211 | isa = PBXNativeTarget; 212 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "FTfloatBall_Example" */; 213 | buildPhases = ( 214 | D110F2DA02C214B2A5D360F1 /* [CP] Check Pods Manifest.lock */, 215 | 6003F586195388D20070C39A /* Sources */, 216 | 6003F587195388D20070C39A /* Frameworks */, 217 | 6003F588195388D20070C39A /* Resources */, 218 | 33B58A8AA58D25D1B8912BE3 /* [CP] Embed Pods Frameworks */, 219 | ); 220 | buildRules = ( 221 | ); 222 | dependencies = ( 223 | ); 224 | name = FTfloatBall_Example; 225 | productName = FTfloatBall; 226 | productReference = 6003F58A195388D20070C39A /* FTfloatBall_Example.app */; 227 | productType = "com.apple.product-type.application"; 228 | }; 229 | 6003F5AD195388D20070C39A /* FTfloatBall_Tests */ = { 230 | isa = PBXNativeTarget; 231 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "FTfloatBall_Tests" */; 232 | buildPhases = ( 233 | 39C9074C394BCB838260A1C9 /* [CP] Check Pods Manifest.lock */, 234 | 6003F5AA195388D20070C39A /* Sources */, 235 | 6003F5AB195388D20070C39A /* Frameworks */, 236 | 6003F5AC195388D20070C39A /* Resources */, 237 | ); 238 | buildRules = ( 239 | ); 240 | dependencies = ( 241 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 242 | ); 243 | name = FTfloatBall_Tests; 244 | productName = FTfloatBallTests; 245 | productReference = 6003F5AE195388D20070C39A /* FTfloatBall_Tests.xctest */; 246 | productType = "com.apple.product-type.bundle.unit-test"; 247 | }; 248 | /* End PBXNativeTarget section */ 249 | 250 | /* Begin PBXProject section */ 251 | 6003F582195388D10070C39A /* Project object */ = { 252 | isa = PBXProject; 253 | attributes = { 254 | CLASSPREFIX = FT; 255 | LastUpgradeCheck = 0720; 256 | ORGANIZATIONNAME = "1085192695@qq.com"; 257 | TargetAttributes = { 258 | 6003F5AD195388D20070C39A = { 259 | TestTargetID = 6003F589195388D20070C39A; 260 | }; 261 | }; 262 | }; 263 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "FTfloatBall" */; 264 | compatibilityVersion = "Xcode 3.2"; 265 | developmentRegion = English; 266 | hasScannedForEncodings = 0; 267 | knownRegions = ( 268 | English, 269 | en, 270 | Base, 271 | ); 272 | mainGroup = 6003F581195388D10070C39A; 273 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 274 | projectDirPath = ""; 275 | projectRoot = ""; 276 | targets = ( 277 | 6003F589195388D20070C39A /* FTfloatBall_Example */, 278 | 6003F5AD195388D20070C39A /* FTfloatBall_Tests */, 279 | ); 280 | }; 281 | /* End PBXProject section */ 282 | 283 | /* Begin PBXResourcesBuildPhase section */ 284 | 6003F588195388D20070C39A /* Resources */ = { 285 | isa = PBXResourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 289 | 987AB9D324DD4260003880CA /* background.jpg in Resources */, 290 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, 291 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 292 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | }; 296 | 6003F5AC195388D20070C39A /* Resources */ = { 297 | isa = PBXResourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | /* End PBXResourcesBuildPhase section */ 305 | 306 | /* Begin PBXShellScriptBuildPhase section */ 307 | 33B58A8AA58D25D1B8912BE3 /* [CP] Embed Pods Frameworks */ = { 308 | isa = PBXShellScriptBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | inputPaths = ( 313 | "${PODS_ROOT}/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-frameworks.sh", 314 | "${BUILT_PRODUCTS_DIR}/FTfloatBall/FTfloatBall.framework", 315 | ); 316 | name = "[CP] Embed Pods Frameworks"; 317 | outputPaths = ( 318 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FTfloatBall.framework", 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | shellPath = /bin/sh; 322 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-frameworks.sh\"\n"; 323 | showEnvVarsInLog = 0; 324 | }; 325 | 39C9074C394BCB838260A1C9 /* [CP] Check Pods Manifest.lock */ = { 326 | isa = PBXShellScriptBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | ); 330 | inputFileListPaths = ( 331 | ); 332 | inputPaths = ( 333 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 334 | "${PODS_ROOT}/Manifest.lock", 335 | ); 336 | name = "[CP] Check Pods Manifest.lock"; 337 | outputFileListPaths = ( 338 | ); 339 | outputPaths = ( 340 | "$(DERIVED_FILE_DIR)/Pods-FTfloatBall_Tests-checkManifestLockResult.txt", 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | shellPath = /bin/sh; 344 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 345 | showEnvVarsInLog = 0; 346 | }; 347 | D110F2DA02C214B2A5D360F1 /* [CP] Check Pods Manifest.lock */ = { 348 | isa = PBXShellScriptBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | ); 352 | inputFileListPaths = ( 353 | ); 354 | inputPaths = ( 355 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 356 | "${PODS_ROOT}/Manifest.lock", 357 | ); 358 | name = "[CP] Check Pods Manifest.lock"; 359 | outputFileListPaths = ( 360 | ); 361 | outputPaths = ( 362 | "$(DERIVED_FILE_DIR)/Pods-FTfloatBall_Example-checkManifestLockResult.txt", 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | shellPath = /bin/sh; 366 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 367 | showEnvVarsInLog = 0; 368 | }; 369 | /* End PBXShellScriptBuildPhase section */ 370 | 371 | /* Begin PBXSourcesBuildPhase section */ 372 | 6003F586195388D20070C39A /* Sources */ = { 373 | isa = PBXSourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | 6003F59E195388D20070C39A /* FTAppDelegate.m in Sources */, 377 | 6003F5A7195388D20070C39A /* FTViewController.m in Sources */, 378 | 6003F59A195388D20070C39A /* main.m in Sources */, 379 | 987AB9D124DD4222003880CA /* FTfloatBall.m in Sources */, 380 | ); 381 | runOnlyForDeploymentPostprocessing = 0; 382 | }; 383 | 6003F5AA195388D20070C39A /* Sources */ = { 384 | isa = PBXSourcesBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | /* End PBXSourcesBuildPhase section */ 392 | 393 | /* Begin PBXTargetDependency section */ 394 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 395 | isa = PBXTargetDependency; 396 | target = 6003F589195388D20070C39A /* FTfloatBall_Example */; 397 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 398 | }; 399 | /* End PBXTargetDependency section */ 400 | 401 | /* Begin PBXVariantGroup section */ 402 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 403 | isa = PBXVariantGroup; 404 | children = ( 405 | 6003F597195388D20070C39A /* en */, 406 | ); 407 | name = InfoPlist.strings; 408 | sourceTree = ""; 409 | }; 410 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 411 | isa = PBXVariantGroup; 412 | children = ( 413 | 6003F5B9195388D20070C39A /* en */, 414 | ); 415 | name = InfoPlist.strings; 416 | sourceTree = ""; 417 | }; 418 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { 419 | isa = PBXVariantGroup; 420 | children = ( 421 | 71719F9E1E33DC2100824A3D /* Base */, 422 | ); 423 | name = LaunchScreen.storyboard; 424 | sourceTree = ""; 425 | }; 426 | /* End PBXVariantGroup section */ 427 | 428 | /* Begin XCBuildConfiguration section */ 429 | 6003F5BD195388D20070C39A /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ALWAYS_SEARCH_USER_PATHS = NO; 433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 434 | CLANG_CXX_LIBRARY = "libc++"; 435 | CLANG_ENABLE_MODULES = YES; 436 | CLANG_ENABLE_OBJC_ARC = YES; 437 | CLANG_WARN_BOOL_CONVERSION = YES; 438 | CLANG_WARN_CONSTANT_CONVERSION = YES; 439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 440 | CLANG_WARN_EMPTY_BODY = YES; 441 | CLANG_WARN_ENUM_CONVERSION = YES; 442 | CLANG_WARN_INT_CONVERSION = YES; 443 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 444 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 445 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 446 | COPY_PHASE_STRIP = NO; 447 | ENABLE_TESTABILITY = YES; 448 | GCC_C_LANGUAGE_STANDARD = gnu99; 449 | GCC_DYNAMIC_NO_PIC = NO; 450 | GCC_OPTIMIZATION_LEVEL = 0; 451 | GCC_PREPROCESSOR_DEFINITIONS = ( 452 | "DEBUG=1", 453 | "$(inherited)", 454 | ); 455 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 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 = 9.3; 463 | ONLY_ACTIVE_ARCH = YES; 464 | SDKROOT = iphoneos; 465 | TARGETED_DEVICE_FAMILY = "1,2"; 466 | }; 467 | name = Debug; 468 | }; 469 | 6003F5BE195388D20070C39A /* Release */ = { 470 | isa = XCBuildConfiguration; 471 | buildSettings = { 472 | ALWAYS_SEARCH_USER_PATHS = NO; 473 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 474 | CLANG_CXX_LIBRARY = "libc++"; 475 | CLANG_ENABLE_MODULES = YES; 476 | CLANG_ENABLE_OBJC_ARC = YES; 477 | CLANG_WARN_BOOL_CONVERSION = YES; 478 | CLANG_WARN_CONSTANT_CONVERSION = YES; 479 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 480 | CLANG_WARN_EMPTY_BODY = YES; 481 | CLANG_WARN_ENUM_CONVERSION = YES; 482 | CLANG_WARN_INT_CONVERSION = YES; 483 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 484 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 485 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 486 | COPY_PHASE_STRIP = YES; 487 | ENABLE_NS_ASSERTIONS = NO; 488 | GCC_C_LANGUAGE_STANDARD = gnu99; 489 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 490 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 491 | GCC_WARN_UNDECLARED_SELECTOR = YES; 492 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 493 | GCC_WARN_UNUSED_FUNCTION = YES; 494 | GCC_WARN_UNUSED_VARIABLE = YES; 495 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 496 | SDKROOT = iphoneos; 497 | TARGETED_DEVICE_FAMILY = "1,2"; 498 | VALIDATE_PRODUCT = YES; 499 | }; 500 | name = Release; 501 | }; 502 | 6003F5C0195388D20070C39A /* Debug */ = { 503 | isa = XCBuildConfiguration; 504 | baseConfigurationReference = 009F8195E8AE88F9B2DF1E15 /* Pods-FTfloatBall_Example.debug.xcconfig */; 505 | buildSettings = { 506 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 507 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 508 | GCC_PREFIX_HEADER = "FTfloatBall/FTfloatBall-Prefix.pch"; 509 | INFOPLIST_FILE = "FTfloatBall/FTfloatBall-Info.plist"; 510 | MODULE_NAME = ExampleApp; 511 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | SWIFT_VERSION = 4.0; 514 | WRAPPER_EXTENSION = app; 515 | }; 516 | name = Debug; 517 | }; 518 | 6003F5C1195388D20070C39A /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | baseConfigurationReference = CBBF99835E915F70EEFE73D4 /* Pods-FTfloatBall_Example.release.xcconfig */; 521 | buildSettings = { 522 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 523 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 524 | GCC_PREFIX_HEADER = "FTfloatBall/FTfloatBall-Prefix.pch"; 525 | INFOPLIST_FILE = "FTfloatBall/FTfloatBall-Info.plist"; 526 | MODULE_NAME = ExampleApp; 527 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 528 | PRODUCT_NAME = "$(TARGET_NAME)"; 529 | SWIFT_VERSION = 4.0; 530 | WRAPPER_EXTENSION = app; 531 | }; 532 | name = Release; 533 | }; 534 | 6003F5C3195388D20070C39A /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = 8BF8B55304A733D0B873613D /* Pods-FTfloatBall_Tests.debug.xcconfig */; 537 | buildSettings = { 538 | BUNDLE_LOADER = "$(TEST_HOST)"; 539 | FRAMEWORK_SEARCH_PATHS = ( 540 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 541 | "$(inherited)", 542 | "$(DEVELOPER_FRAMEWORKS_DIR)", 543 | ); 544 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 545 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 546 | GCC_PREPROCESSOR_DEFINITIONS = ( 547 | "DEBUG=1", 548 | "$(inherited)", 549 | ); 550 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 551 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 552 | PRODUCT_NAME = "$(TARGET_NAME)"; 553 | SWIFT_VERSION = 4.0; 554 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FTfloatBall_Example.app/FTfloatBall_Example"; 555 | WRAPPER_EXTENSION = xctest; 556 | }; 557 | name = Debug; 558 | }; 559 | 6003F5C4195388D20070C39A /* Release */ = { 560 | isa = XCBuildConfiguration; 561 | baseConfigurationReference = C386C880B252EB3EE6B30CC7 /* Pods-FTfloatBall_Tests.release.xcconfig */; 562 | buildSettings = { 563 | BUNDLE_LOADER = "$(TEST_HOST)"; 564 | FRAMEWORK_SEARCH_PATHS = ( 565 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 566 | "$(inherited)", 567 | "$(DEVELOPER_FRAMEWORKS_DIR)", 568 | ); 569 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 570 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 571 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 572 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 573 | PRODUCT_NAME = "$(TARGET_NAME)"; 574 | SWIFT_VERSION = 4.0; 575 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FTfloatBall_Example.app/FTfloatBall_Example"; 576 | WRAPPER_EXTENSION = xctest; 577 | }; 578 | name = Release; 579 | }; 580 | /* End XCBuildConfiguration section */ 581 | 582 | /* Begin XCConfigurationList section */ 583 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "FTfloatBall" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 6003F5BD195388D20070C39A /* Debug */, 587 | 6003F5BE195388D20070C39A /* Release */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "FTfloatBall_Example" */ = { 593 | isa = XCConfigurationList; 594 | buildConfigurations = ( 595 | 6003F5C0195388D20070C39A /* Debug */, 596 | 6003F5C1195388D20070C39A /* Release */, 597 | ); 598 | defaultConfigurationIsVisible = 0; 599 | defaultConfigurationName = Release; 600 | }; 601 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "FTfloatBall_Tests" */ = { 602 | isa = XCConfigurationList; 603 | buildConfigurations = ( 604 | 6003F5C3195388D20070C39A /* Debug */, 605 | 6003F5C4195388D20070C39A /* Release */, 606 | ); 607 | defaultConfigurationIsVisible = 0; 608 | defaultConfigurationName = Release; 609 | }; 610 | /* End XCConfigurationList section */ 611 | }; 612 | rootObject = 6003F582195388D10070C39A /* Project object */; 613 | } 614 | -------------------------------------------------------------------------------- /Example/FTfloatBall.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/FTfloatBall.xcodeproj/xcshareddata/xcschemes/FTfloatBall-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 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/FTfloatBall.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/FTfloatBall.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/FTfloatBall/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Example/FTfloatBall/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /Example/FTfloatBall/FTAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // FTAppDelegate.h 3 | // FTfloatBall 4 | // 5 | // Created by 1085192695@qq.com on 08/07/2020. 6 | // Copyright (c) 2020 1085192695@qq.com. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface FTAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/FTfloatBall/FTAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // FTAppDelegate.m 3 | // FTfloatBall 4 | // 5 | // Created by 1085192695@qq.com on 08/07/2020. 6 | // Copyright (c) 2020 1085192695@qq.com. All rights reserved. 7 | // 8 | 9 | #import "FTAppDelegate.h" 10 | 11 | @implementation FTAppDelegate 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/FTfloatBall/FTViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FTViewController.h 3 | // FTfloatBall 4 | // 5 | // Created by 1085192695@qq.com on 08/07/2020. 6 | // Copyright (c) 2020 1085192695@qq.com. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface FTViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/FTfloatBall/FTViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FTViewController.m 3 | // FTfloatBall 4 | // 5 | // Created by 1085192695@qq.com on 08/07/2020. 6 | // Copyright (c) 2020 1085192695@qq.com. All rights reserved. 7 | // 8 | 9 | 10 | #import "FTViewController.h" 11 | #import "FTfloatBall.h" 12 | @interface FTViewController () 13 | 14 | @property (nonatomic, strong) FTfloatBall *floatView; 15 | 16 | @end 17 | 18 | @implementation FTViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view. 23 | FTfloatBall *fbv = [FTfloatBall getFloatBall]; 24 | [fbv initWithFrame:CGRectMake(0, 200, 100, 100) baseImage:@"moon"]; 25 | fbv.layer.cornerRadius = 50; 26 | fbv.layer.borderWidth = 2; 27 | fbv.layer.borderColor = [UIColor whiteColor].CGColor; 28 | 29 | NSMutableArray *butArray = [[NSMutableArray alloc]init]; 30 | UIButton *button1 = [[UIButton alloc] initWithFrame:CGRectMake(10, 0, 80, 80)]; 31 | button1.backgroundColor = [UIColor grayColor]; 32 | [button1 setTitle:@"账户" forState:UIControlStateNormal]; 33 | button1.titleLabel.font = [UIFont systemFontOfSize:20]; 34 | button1.layer.cornerRadius = 40; 35 | button1.tag = 1; 36 | [butArray addObject:button1]; 37 | 38 | UIButton *button2 = [[UIButton alloc] initWithFrame:CGRectMake(10, 0, 80, 80)]; 39 | button2.backgroundColor = [UIColor grayColor]; 40 | button2.layer.cornerRadius = 40; 41 | [button2 setTitle:@"客服" forState:UIControlStateNormal]; 42 | button2.titleLabel.font = [UIFont systemFontOfSize:20]; 43 | button2.tag = 2; 44 | [butArray addObject:button2]; 45 | 46 | [fbv setButtonArray:butArray]; 47 | _floatView = fbv; 48 | 49 | __weak typeof(self) weakSelf = self; 50 | _floatView.clickBolcks = ^(NSInteger i) { 51 | UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Title" message:[NSString stringWithFormat:@"你点击了第 %ld 个按钮",i] preferredStyle:UIAlertControllerStyleAlert]; 52 | UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction *_Nonnull action) { 53 | NSLog(@"点击了OK"); 54 | }]; 55 | [alertController addAction:okAction]; 56 | 57 | [weakSelf presentViewController:alertController animated:YES completion:nil]; 58 | }; 59 | 60 | [self.view addSubview:_floatView]; 61 | } 62 | 63 | - (BOOL)prefersStatusBarHidden{ 64 | return YES; 65 | } 66 | 67 | @end 68 | -------------------------------------------------------------------------------- /Example/FTfloatBall/FTfloatBall-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Example/FTfloatBall/FTfloatBall-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/FTfloatBall/FTfloatBall.h: -------------------------------------------------------------------------------- 1 | // 2 | // FTfloatBall.h 3 | // FTfloatBall 4 | // 5 | // Created by ymac on 30/07/2020. 6 | // Copyright © 2020 xxx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FTfloatBall : UIView 14 | 15 | @property (nonatomic, copy) void (^ clickBolcks)(NSInteger i); 16 | 17 | + (instancetype)getFloatBall; 18 | 19 | //frame:长宽须相等 20 | - (void)initWithFrame:(CGRect)frame baseImage:(NSString *)imageName; 21 | 22 | - (void)setButtonArray:(NSMutableArray *)btnArray; 23 | 24 | // 显示 25 | - (void)show; 26 | 27 | // 隐藏 28 | - (void)hide; 29 | 30 | @end 31 | 32 | NS_ASSUME_NONNULL_END 33 | -------------------------------------------------------------------------------- /Example/FTfloatBall/FTfloatBall.m: -------------------------------------------------------------------------------- 1 | // 2 | // FTfloatBall.m 3 | // FTfloatBall 4 | // 5 | // Created by ymac on 30/07/2020. 6 | // Copyright © 2020 xxx. All rights reserved. 7 | // 8 | 9 | #import "FTfloatBall.h" 10 | 11 | #define kScreenWidth [[UIScreen mainScreen] bounds].size.width 12 | #define kScreenHeight [[UIScreen mainScreen] bounds].size.height 13 | 14 | static FTfloatBall *_floatBall = nil; 15 | 16 | @interface FTfloatBall () 17 | 18 | @property (nonatomic, strong) UIButton *baseButton; 19 | @property (nonatomic, strong) UIView *contentView; 20 | @property (nonatomic, strong) NSMutableArray *buttonArray; 21 | @property (nonatomic, assign) float buttonWidth; 22 | @property (nonatomic, strong) UIPanGestureRecognizer *pan; 23 | 24 | @end 25 | 26 | @implementation FTfloatBall 27 | 28 | + (instancetype)getFloatBall 29 | { 30 | static dispatch_once_t onceToken; 31 | dispatch_once(&onceToken, ^{ 32 | _floatBall = [[FTfloatBall alloc] init]; 33 | }); 34 | return _floatBall; 35 | } 36 | 37 | - (void)setButtonArray:(NSMutableArray *)btnArray { 38 | _buttonArray = btnArray; 39 | _contentView.frame = (CGRect) { 0, 0, self.buttonWidth * (btnArray.count + 1), self.buttonWidth }; 40 | for (UIButton *btn in self.buttonArray) { 41 | btn.alpha = 0; 42 | [btn addTarget:self action:@selector(btnOnclick:) forControlEvents:UIControlEventTouchUpInside]; 43 | [_contentView addSubview:btn]; 44 | } 45 | } 46 | 47 | - (void)btnOnclick:(UIButton *)sender { 48 | [self ShowHiddenOnclick:_baseButton]; 49 | if (self.clickBolcks) { 50 | self.clickBolcks(sender.tag); 51 | } 52 | } 53 | 54 | - (void)initWithFrame:(CGRect)frame baseImage:(NSString *)imageName 55 | { 56 | [self setFrame:frame]; 57 | self.buttonWidth = frame.size.width; 58 | if (!_contentView) { 59 | _contentView = [[UIView alloc] initWithFrame:(CGRect) { 0, 0, self.buttonWidth, self.buttonWidth }]; 60 | _contentView.alpha = 0; 61 | _contentView.userInteractionEnabled = YES; 62 | [self addSubview:_contentView]; 63 | 64 | _baseButton = [UIButton buttonWithType:UIButtonTypeCustom]; 65 | [_baseButton setFrame:(CGRect) { 0, 0, self.buttonWidth, self.buttonWidth }]; 66 | [_baseButton setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal]; 67 | [_baseButton addTarget:self action:@selector(ShowHiddenOnclick:) forControlEvents:UIControlEventTouchUpInside]; 68 | 69 | [self addSubview:_baseButton]; 70 | 71 | _pan = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(changeLocation:)]; 72 | _pan.delaysTouchesBegan = YES; 73 | [self addGestureRecognizer:_pan]; 74 | } 75 | } 76 | 77 | #pragma mark - gestures response 78 | - (void)changeLocation:(UIPanGestureRecognizer *)p 79 | { 80 | UIWindow *appWindow = [[UIApplication sharedApplication] windows][0]; 81 | CGPoint panPoint = [p locationInView:appWindow]; 82 | //透明度 83 | if (p.state == UIGestureRecognizerStateBegan) { 84 | self.alpha = 1; 85 | } else if (p.state == UIGestureRecognizerStateEnded) { 86 | self.alpha = 0.5; 87 | } 88 | 89 | if (p.state == UIGestureRecognizerStateChanged) { 90 | self.center = CGPointMake(panPoint.x, panPoint.y); 91 | } else if (p.state == UIGestureRecognizerStateEnded) { 92 | CGFloat left = fabs(panPoint.x); 93 | CGFloat right = fabs(kScreenWidth - left); 94 | 95 | CGFloat minSpace = MIN(left, right); 96 | CGRect newFrame; 97 | 98 | if (minSpace == left) { 99 | newFrame = CGRectMake(-self.buttonWidth / 2, panPoint.y - self.frame.size.height / 2, self.frame.size.width, self.frame.size.height); 100 | } else { 101 | newFrame = CGRectMake(kScreenWidth - self.buttonWidth / 2, panPoint.y - self.frame.size.height / 2, self.frame.size.width, self.frame.size.height); 102 | } 103 | 104 | [UIView animateWithDuration:0.25 animations:^{ 105 | self.frame = newFrame; 106 | }]; 107 | } 108 | } 109 | 110 | #pragma mark ------- click baseButton -------------------- 111 | - (void)ShowHiddenOnclick:(UIButton *)btn { 112 | if (btn.selected == YES) { 113 | btn.selected = NO; 114 | [self btnHidden]; 115 | } else { 116 | btn.selected = YES; 117 | [self btnShow]; 118 | } 119 | } 120 | 121 | - (void)btnHidden { 122 | self.contentView.alpha = 0; 123 | int i = 1; 124 | for (UIButton *btn in self.buttonArray) { 125 | [btn setCenter:CGPointMake(btn.center.x - self.buttonWidth * i - 2, btn.center.y) ]; 126 | i++; 127 | } 128 | [UIView animateWithDuration:0.25 animations:^{ 129 | for (UIButton *btn in self.buttonArray) { 130 | btn.alpha = 0; 131 | } 132 | if (self.center.x <= kScreenWidth / 2) { 133 | [self setFrame:CGRectMake(self.frame.origin.x, self.frame.origin.y, self.buttonWidth, self.buttonWidth)]; 134 | } else { 135 | self.baseButton.frame = CGRectMake(0, 0, self.buttonWidth, self.buttonWidth); 136 | [self setFrame:CGRectMake(kScreenWidth - self.buttonWidth, self.frame.origin.y, self.buttonWidth, self.buttonWidth)]; 137 | } 138 | } completion:^(BOOL finished) { 139 | }]; 140 | 141 | if (_pan) { 142 | [self addGestureRecognizer:_pan]; 143 | } 144 | [self performSelector:@selector(autoMove) withObject:nil afterDelay:3]; 145 | } 146 | 147 | - (void)btnShow { 148 | self.alpha = 1; 149 | if (self.center.x <= kScreenWidth / 2) { 150 | [self resetContentview]; 151 | [self setFrame:CGRectMake(0, self.frame.origin.y, _baseButton.frame.size.width + self.buttonWidth * self.buttonArray.count, self.buttonWidth)]; 152 | } else { 153 | [self moveContentview]; 154 | self.baseButton.frame = CGRectMake(self.buttonArray.count * self.buttonWidth, 0, self.buttonWidth, self.buttonWidth); 155 | [self setFrame:CGRectMake(kScreenWidth - (_baseButton.frame.size.width + self.buttonWidth * self.buttonArray.count), self.frame.origin.y, _baseButton.frame.size.width + self.buttonWidth * self.buttonArray.count, self.buttonWidth)]; 156 | } 157 | int i = 1; 158 | for (UIButton *btn in self.buttonArray) { 159 | [btn setCenter:CGPointMake(self.buttonWidth * i + btn.center.x + 2, self.baseButton.center.y) ]; 160 | i++; 161 | } 162 | 163 | self.contentView.alpha = 1; 164 | [UIView animateWithDuration:0.25 animations:^{ 165 | for (UIButton *btn in self.buttonArray) { 166 | btn.alpha = 1; 167 | } 168 | }]; 169 | 170 | if (_pan) { 171 | [self removeGestureRecognizer:_pan]; 172 | } 173 | [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(autoMove) object:nil]; 174 | } 175 | 176 | - (void)autoMove 177 | { 178 | [UIView animateWithDuration:1.0 animations:^{ 179 | self.alpha = 0.5; 180 | }]; 181 | [UIView animateWithDuration:0.5 animations:^{ 182 | CGFloat x = self.center.x < kScreenWidth / 2 ? 0 : kScreenWidth; 183 | CGFloat y = self.center.y; 184 | 185 | self.center = CGPointMake(x, y); 186 | }]; 187 | } 188 | 189 | #pragma mark ------- contentview -------------------- 190 | //当按钮在屏幕右边时,将contentview移动到左边 191 | - (void)moveContentview { 192 | _contentView.frame = (CGRect) { -self.buttonWidth, 0, _contentView.frame.size.width, _contentView.frame.size.height }; 193 | } 194 | 195 | //恢复到默认位置 196 | - (void)resetContentview { 197 | _contentView.frame = (CGRect) { 0, 0, _contentView.frame.size.width, _contentView.frame.size.height }; 198 | } 199 | 200 | - (void)show 201 | { 202 | self.hidden = NO; 203 | } 204 | 205 | - (void)hide 206 | { 207 | self.hidden = YES; 208 | } 209 | 210 | @end 211 | -------------------------------------------------------------------------------- /Example/FTfloatBall/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Example/FTfloatBall/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Example/FTfloatBall/Images.xcassets/moon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "moon.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/FTfloatBall/Images.xcassets/moon.imageset/moon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/520coding/FTfloatBall/fb156f01f6f1ade6eac7fb9e3354249935933fb3/Example/FTfloatBall/Images.xcassets/moon.imageset/moon.png -------------------------------------------------------------------------------- /Example/FTfloatBall/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/520coding/FTfloatBall/fb156f01f6f1ade6eac7fb9e3354249935933fb3/Example/FTfloatBall/background.jpg -------------------------------------------------------------------------------- /Example/FTfloatBall/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/FTfloatBall/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // FTfloatBall 4 | // 5 | // Created by 1085192695@qq.com on 08/07/2020. 6 | // Copyright (c) 2020 1085192695@qq.com. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "FTAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([FTAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '8.0' 4 | 5 | target 'FTfloatBall_Example' do 6 | pod 'FTfloatBall', :path => '../' 7 | 8 | target 'FTfloatBall_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FTfloatBall (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - FTfloatBall (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | FTfloatBall: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | FTfloatBall: 537a2647b345d9118921ac1127a699ea1a1f8d16 13 | 14 | PODFILE CHECKSUM: b4ceed96bfc76fea9c83ba1204c69bb8180b2c24 15 | 16 | COCOAPODS: 1.9.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/FTfloatBall.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "FTfloatBall", 3 | "version": "0.1.0", 4 | "summary": "A short description of FTfloatBall.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/1085192695@qq.com/FTfloatBall", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "1085192695@qq.com": "1085192695@qq.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/1085192695@qq.com/FTfloatBall.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "FTfloatBall/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FTfloatBall (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - FTfloatBall (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | FTfloatBall: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | FTfloatBall: 537a2647b345d9118921ac1127a699ea1a1f8d16 13 | 14 | PODFILE CHECKSUM: b4ceed96bfc76fea9c83ba1204c69bb8180b2c24 15 | 16 | COCOAPODS: 1.9.3 17 | -------------------------------------------------------------------------------- /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 | 0359F2C445223699C7522FB11DEB67C3 /* FTfloatBall-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F0091C5CD98410034BBDC4ACBF633F69 /* FTfloatBall-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 0447B1C908399412EDAD57F8C4F8E61B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 12 | 179FA79C9ABD99A25B0603592E6ABD4A /* Pods-FTfloatBall_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3008232E52791F92AA93ED08ADA2E3B3 /* Pods-FTfloatBall_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 192D1B900DA082AC89E68D0DC433EFD6 /* Pods-FTfloatBall_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C915858890F3E494F81E40FDF84A369 /* Pods-FTfloatBall_Tests-dummy.m */; }; 14 | 672AB2834B4F295F6F2CFF3B7AE0854B /* Pods-FTfloatBall_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F4E2D4214BE43B9D291CD034B5EFEBF5 /* Pods-FTfloatBall_Example-dummy.m */; }; 15 | C1A43B2AB82994BC5770CC0297D29EBE /* FTfloatBall-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = AD16F383F4F68D7CB5E89DBFD16FF7CC /* FTfloatBall-dummy.m */; }; 16 | D23B3637A066DB1EBAE37A150DBA6FC0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 17 | F5994B5ED872FB59694E01CC1E8DB2BD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 18 | FD7607C97769190B7185765F803058C3 /* Pods-FTfloatBall_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 28779C58EC1EF8D422252788FF0224E7 /* Pods-FTfloatBall_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 1C8620A3D6A50DB6B09383BA53476FDE /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = E3226B878D8CDC7EA296FD5F43068790; 27 | remoteInfo = "Pods-FTfloatBall_Example"; 28 | }; 29 | 49E2030E6614803DBE301419EF30368A /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 863A5144C0FCCB44BFB0E03C63FBF8FE; 34 | remoteInfo = FTfloatBall; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 171F9B57FCF4E2472F4C1EB9F23F3805 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 40 | 1C915858890F3E494F81E40FDF84A369 /* Pods-FTfloatBall_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-FTfloatBall_Tests-dummy.m"; sourceTree = ""; }; 41 | 26EBFD96673298BE1D60D80130E32187 /* Pods-FTfloatBall_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-FTfloatBall_Example.modulemap"; sourceTree = ""; }; 42 | 28779C58EC1EF8D422252788FF0224E7 /* Pods-FTfloatBall_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-FTfloatBall_Example-umbrella.h"; sourceTree = ""; }; 43 | 291A16F0630F4B6BB22ACBD1759A1FF9 /* Pods-FTfloatBall_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FTfloatBall_Tests-acknowledgements.plist"; sourceTree = ""; }; 44 | 2B5F74898BDDFB613E5EEE13D4CA5D1B /* Pods-FTfloatBall_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FTfloatBall_Example-Info.plist"; sourceTree = ""; }; 45 | 2F9A9FECD4D231D32EA2B79F3F628320 /* FTfloatBall-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "FTfloatBall-Info.plist"; sourceTree = ""; }; 46 | 3008232E52791F92AA93ED08ADA2E3B3 /* Pods-FTfloatBall_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-FTfloatBall_Tests-umbrella.h"; sourceTree = ""; }; 47 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 48 | 482DFA29F8CC4E760D1BE81A30995DF5 /* Pods-FTfloatBall_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FTfloatBall_Tests.release.xcconfig"; sourceTree = ""; }; 49 | 4867C6790F42DCF004E6460A9F1B967E /* Pods-FTfloatBall_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FTfloatBall_Example.release.xcconfig"; sourceTree = ""; }; 50 | 51EBCA310F5106B01DAC65576F844638 /* ReplaceMe.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ReplaceMe.m; path = FTfloatBall/Classes/ReplaceMe.m; sourceTree = ""; }; 51 | 5A0411A7EAD798460AE2D6A0E31DD2BE /* Pods-FTfloatBall_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-FTfloatBall_Tests-acknowledgements.markdown"; sourceTree = ""; }; 52 | 5FFB1639C3B246D6AC2635CE7E65B2F6 /* Pods-FTfloatBall_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FTfloatBall_Example.debug.xcconfig"; sourceTree = ""; }; 53 | 715FA501C88FEF85F6BB77F2DC60F612 /* Pods-FTfloatBall_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FTfloatBall_Example-acknowledgements.plist"; sourceTree = ""; }; 54 | 78C264C1445960752BFB60A383E8B295 /* Pods-FTfloatBall_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-FTfloatBall_Tests-Info.plist"; sourceTree = ""; }; 55 | 7A83583298CB617AF2492E807BBEDC28 /* Pods_FTfloatBall_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FTfloatBall_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 57 | A2761766EB5284075E82EC1BC7093B1E /* Pods_FTfloatBall_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FTfloatBall_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | A6ADF02258DB34F0F2556905654C4FF0 /* FTfloatBall.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FTfloatBall.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | AB96FD62A2B7526DD02C9250F40CADCB /* FTfloatBall.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = FTfloatBall.modulemap; sourceTree = ""; }; 60 | AD16F383F4F68D7CB5E89DBFD16FF7CC /* FTfloatBall-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "FTfloatBall-dummy.m"; sourceTree = ""; }; 61 | B69B959E02171CB9D26A893298E836C1 /* FTfloatBall.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FTfloatBall.debug.xcconfig; sourceTree = ""; }; 62 | CEC6C170C97AAD9043905D437EC57758 /* Pods-FTfloatBall_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-FTfloatBall_Example-acknowledgements.markdown"; sourceTree = ""; }; 63 | D5418ED556BAA0DC8E25891BAFEEAE6B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 64 | DB04F6F38ADC67A7F688BEFA194AAB03 /* FTfloatBall.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FTfloatBall.release.xcconfig; sourceTree = ""; }; 65 | E0478C0477E529971E09B0E02CAC8538 /* FTfloatBall.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = FTfloatBall.podspec; sourceTree = ""; tabWidth = 2; }; 66 | E146E4D762AB388C4F6F056FA3069848 /* FTfloatBall-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FTfloatBall-prefix.pch"; sourceTree = ""; }; 67 | E59D00C20D29173321EADC5E583FA691 /* Pods-FTfloatBall_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-FTfloatBall_Example-frameworks.sh"; sourceTree = ""; }; 68 | E9D7B4BE7398359EBF591EC1CCC81421 /* Pods-FTfloatBall_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-FTfloatBall_Tests.modulemap"; sourceTree = ""; }; 69 | F0091C5CD98410034BBDC4ACBF633F69 /* FTfloatBall-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FTfloatBall-umbrella.h"; sourceTree = ""; }; 70 | F4E2D4214BE43B9D291CD034B5EFEBF5 /* Pods-FTfloatBall_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-FTfloatBall_Example-dummy.m"; sourceTree = ""; }; 71 | FCF98B1DB98E60DA82E5752AEC0E4F81 /* Pods-FTfloatBall_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-FTfloatBall_Tests.debug.xcconfig"; sourceTree = ""; }; 72 | /* End PBXFileReference section */ 73 | 74 | /* Begin PBXFrameworksBuildPhase section */ 75 | 6CCC12017A40D4429A7E11534841D54F /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | D23B3637A066DB1EBAE37A150DBA6FC0 /* Foundation.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 6DFA7E7DE1724964F95A931E497DDC94 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | 0447B1C908399412EDAD57F8C4F8E61B /* Foundation.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | BF3BB9F48A131376B5700BCC032E4A57 /* Frameworks */ = { 92 | isa = PBXFrameworksBuildPhase; 93 | buildActionMask = 2147483647; 94 | files = ( 95 | F5994B5ED872FB59694E01CC1E8DB2BD /* Foundation.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | /* End PBXFrameworksBuildPhase section */ 100 | 101 | /* Begin PBXGroup section */ 102 | 0FD78179F1BF467828AF9B799A6F06DC /* Development Pods */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | E75F5A8DAD40C3C79FA02F60E3C662F4 /* FTfloatBall */, 106 | ); 107 | name = "Development Pods"; 108 | sourceTree = ""; 109 | }; 110 | 205D3BA957602108A6A49BC7EDBD1918 /* Pods-FTfloatBall_Example */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 26EBFD96673298BE1D60D80130E32187 /* Pods-FTfloatBall_Example.modulemap */, 114 | CEC6C170C97AAD9043905D437EC57758 /* Pods-FTfloatBall_Example-acknowledgements.markdown */, 115 | 715FA501C88FEF85F6BB77F2DC60F612 /* Pods-FTfloatBall_Example-acknowledgements.plist */, 116 | F4E2D4214BE43B9D291CD034B5EFEBF5 /* Pods-FTfloatBall_Example-dummy.m */, 117 | E59D00C20D29173321EADC5E583FA691 /* Pods-FTfloatBall_Example-frameworks.sh */, 118 | 2B5F74898BDDFB613E5EEE13D4CA5D1B /* Pods-FTfloatBall_Example-Info.plist */, 119 | 28779C58EC1EF8D422252788FF0224E7 /* Pods-FTfloatBall_Example-umbrella.h */, 120 | 5FFB1639C3B246D6AC2635CE7E65B2F6 /* Pods-FTfloatBall_Example.debug.xcconfig */, 121 | 4867C6790F42DCF004E6460A9F1B967E /* Pods-FTfloatBall_Example.release.xcconfig */, 122 | ); 123 | name = "Pods-FTfloatBall_Example"; 124 | path = "Target Support Files/Pods-FTfloatBall_Example"; 125 | sourceTree = ""; 126 | }; 127 | 299A1B8BB3AB982A3A17EA2729AD84EC /* Products */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | A6ADF02258DB34F0F2556905654C4FF0 /* FTfloatBall.framework */, 131 | 7A83583298CB617AF2492E807BBEDC28 /* Pods_FTfloatBall_Example.framework */, 132 | A2761766EB5284075E82EC1BC7093B1E /* Pods_FTfloatBall_Tests.framework */, 133 | ); 134 | name = Products; 135 | sourceTree = ""; 136 | }; 137 | 6A8EBBDD529EA3F833C584C74BFC9AF7 /* Targets Support Files */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 205D3BA957602108A6A49BC7EDBD1918 /* Pods-FTfloatBall_Example */, 141 | 8D0B796C68984FD878500DFF957C4FBD /* Pods-FTfloatBall_Tests */, 142 | ); 143 | name = "Targets Support Files"; 144 | sourceTree = ""; 145 | }; 146 | 8D0B796C68984FD878500DFF957C4FBD /* Pods-FTfloatBall_Tests */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | E9D7B4BE7398359EBF591EC1CCC81421 /* Pods-FTfloatBall_Tests.modulemap */, 150 | 5A0411A7EAD798460AE2D6A0E31DD2BE /* Pods-FTfloatBall_Tests-acknowledgements.markdown */, 151 | 291A16F0630F4B6BB22ACBD1759A1FF9 /* Pods-FTfloatBall_Tests-acknowledgements.plist */, 152 | 1C915858890F3E494F81E40FDF84A369 /* Pods-FTfloatBall_Tests-dummy.m */, 153 | 78C264C1445960752BFB60A383E8B295 /* Pods-FTfloatBall_Tests-Info.plist */, 154 | 3008232E52791F92AA93ED08ADA2E3B3 /* Pods-FTfloatBall_Tests-umbrella.h */, 155 | FCF98B1DB98E60DA82E5752AEC0E4F81 /* Pods-FTfloatBall_Tests.debug.xcconfig */, 156 | 482DFA29F8CC4E760D1BE81A30995DF5 /* Pods-FTfloatBall_Tests.release.xcconfig */, 157 | ); 158 | name = "Pods-FTfloatBall_Tests"; 159 | path = "Target Support Files/Pods-FTfloatBall_Tests"; 160 | sourceTree = ""; 161 | }; 162 | 982933D40DC7F6AD97826AC23AB66606 /* Support Files */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | AB96FD62A2B7526DD02C9250F40CADCB /* FTfloatBall.modulemap */, 166 | AD16F383F4F68D7CB5E89DBFD16FF7CC /* FTfloatBall-dummy.m */, 167 | 2F9A9FECD4D231D32EA2B79F3F628320 /* FTfloatBall-Info.plist */, 168 | E146E4D762AB388C4F6F056FA3069848 /* FTfloatBall-prefix.pch */, 169 | F0091C5CD98410034BBDC4ACBF633F69 /* FTfloatBall-umbrella.h */, 170 | B69B959E02171CB9D26A893298E836C1 /* FTfloatBall.debug.xcconfig */, 171 | DB04F6F38ADC67A7F688BEFA194AAB03 /* FTfloatBall.release.xcconfig */, 172 | ); 173 | name = "Support Files"; 174 | path = "Example/Pods/Target Support Files/FTfloatBall"; 175 | sourceTree = ""; 176 | }; 177 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 181 | ); 182 | name = iOS; 183 | sourceTree = ""; 184 | }; 185 | CF1408CF629C7361332E53B88F7BD30C = { 186 | isa = PBXGroup; 187 | children = ( 188 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 189 | 0FD78179F1BF467828AF9B799A6F06DC /* Development Pods */, 190 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 191 | 299A1B8BB3AB982A3A17EA2729AD84EC /* Products */, 192 | 6A8EBBDD529EA3F833C584C74BFC9AF7 /* Targets Support Files */, 193 | ); 194 | sourceTree = ""; 195 | }; 196 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 200 | ); 201 | name = Frameworks; 202 | sourceTree = ""; 203 | }; 204 | E75F5A8DAD40C3C79FA02F60E3C662F4 /* FTfloatBall */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 51EBCA310F5106B01DAC65576F844638 /* ReplaceMe.m */, 208 | F7D875D061396396A08B73187E12D232 /* Pod */, 209 | 982933D40DC7F6AD97826AC23AB66606 /* Support Files */, 210 | ); 211 | name = FTfloatBall; 212 | path = ../..; 213 | sourceTree = ""; 214 | }; 215 | F7D875D061396396A08B73187E12D232 /* Pod */ = { 216 | isa = PBXGroup; 217 | children = ( 218 | E0478C0477E529971E09B0E02CAC8538 /* FTfloatBall.podspec */, 219 | 171F9B57FCF4E2472F4C1EB9F23F3805 /* LICENSE */, 220 | D5418ED556BAA0DC8E25891BAFEEAE6B /* README.md */, 221 | ); 222 | name = Pod; 223 | sourceTree = ""; 224 | }; 225 | /* End PBXGroup section */ 226 | 227 | /* Begin PBXHeadersBuildPhase section */ 228 | 4EE5380BC91100B5E490C8A450129A8A /* Headers */ = { 229 | isa = PBXHeadersBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | FD7607C97769190B7185765F803058C3 /* Pods-FTfloatBall_Example-umbrella.h in Headers */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | 6E670BD9E9C699695FB5E28E70FBA494 /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 0359F2C445223699C7522FB11DEB67C3 /* FTfloatBall-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | D60F0B43BBF293236AC153D50B5AC76F /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 179FA79C9ABD99A25B0603592E6ABD4A /* Pods-FTfloatBall_Tests-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXHeadersBuildPhase section */ 253 | 254 | /* Begin PBXNativeTarget section */ 255 | 4E9E1095BA26922E9246837D6B92F384 /* Pods-FTfloatBall_Tests */ = { 256 | isa = PBXNativeTarget; 257 | buildConfigurationList = 2EE684A8C22640C15A1AFF65790B0C04 /* Build configuration list for PBXNativeTarget "Pods-FTfloatBall_Tests" */; 258 | buildPhases = ( 259 | D60F0B43BBF293236AC153D50B5AC76F /* Headers */, 260 | C73578BDD756576E6D6F272AB182B6AF /* Sources */, 261 | 6DFA7E7DE1724964F95A931E497DDC94 /* Frameworks */, 262 | 68E0599D1188815C3DB8D7C7F07BAC8D /* Resources */, 263 | ); 264 | buildRules = ( 265 | ); 266 | dependencies = ( 267 | 1D0E8A721471252CE7DF45ADC73A1684 /* PBXTargetDependency */, 268 | ); 269 | name = "Pods-FTfloatBall_Tests"; 270 | productName = "Pods-FTfloatBall_Tests"; 271 | productReference = A2761766EB5284075E82EC1BC7093B1E /* Pods_FTfloatBall_Tests.framework */; 272 | productType = "com.apple.product-type.framework"; 273 | }; 274 | 863A5144C0FCCB44BFB0E03C63FBF8FE /* FTfloatBall */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = E23D85B337A909CA987A4715BC4E80E9 /* Build configuration list for PBXNativeTarget "FTfloatBall" */; 277 | buildPhases = ( 278 | 6E670BD9E9C699695FB5E28E70FBA494 /* Headers */, 279 | F72DF5A2F60AE835EA64CA6D61D3E8E1 /* Sources */, 280 | BF3BB9F48A131376B5700BCC032E4A57 /* Frameworks */, 281 | B9648410A3F1FA8B048D18FBBE75077B /* Resources */, 282 | ); 283 | buildRules = ( 284 | ); 285 | dependencies = ( 286 | ); 287 | name = FTfloatBall; 288 | productName = FTfloatBall; 289 | productReference = A6ADF02258DB34F0F2556905654C4FF0 /* FTfloatBall.framework */; 290 | productType = "com.apple.product-type.framework"; 291 | }; 292 | E3226B878D8CDC7EA296FD5F43068790 /* Pods-FTfloatBall_Example */ = { 293 | isa = PBXNativeTarget; 294 | buildConfigurationList = 127CA8AF00192EE91A57107B325E87D5 /* Build configuration list for PBXNativeTarget "Pods-FTfloatBall_Example" */; 295 | buildPhases = ( 296 | 4EE5380BC91100B5E490C8A450129A8A /* Headers */, 297 | C840760A4912CBBF84F8EB450CC8C412 /* Sources */, 298 | 6CCC12017A40D4429A7E11534841D54F /* Frameworks */, 299 | 9CBA4A200DF5783EE30B9863AE6320EA /* Resources */, 300 | ); 301 | buildRules = ( 302 | ); 303 | dependencies = ( 304 | 452B0515A5916781A2B96046338C1559 /* PBXTargetDependency */, 305 | ); 306 | name = "Pods-FTfloatBall_Example"; 307 | productName = "Pods-FTfloatBall_Example"; 308 | productReference = 7A83583298CB617AF2492E807BBEDC28 /* Pods_FTfloatBall_Example.framework */; 309 | productType = "com.apple.product-type.framework"; 310 | }; 311 | /* End PBXNativeTarget section */ 312 | 313 | /* Begin PBXProject section */ 314 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 315 | isa = PBXProject; 316 | attributes = { 317 | LastSwiftUpdateCheck = 1100; 318 | LastUpgradeCheck = 1100; 319 | }; 320 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 321 | compatibilityVersion = "Xcode 3.2"; 322 | developmentRegion = en; 323 | hasScannedForEncodings = 0; 324 | knownRegions = ( 325 | en, 326 | Base, 327 | ); 328 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 329 | productRefGroup = 299A1B8BB3AB982A3A17EA2729AD84EC /* Products */; 330 | projectDirPath = ""; 331 | projectRoot = ""; 332 | targets = ( 333 | 863A5144C0FCCB44BFB0E03C63FBF8FE /* FTfloatBall */, 334 | E3226B878D8CDC7EA296FD5F43068790 /* Pods-FTfloatBall_Example */, 335 | 4E9E1095BA26922E9246837D6B92F384 /* Pods-FTfloatBall_Tests */, 336 | ); 337 | }; 338 | /* End PBXProject section */ 339 | 340 | /* Begin PBXResourcesBuildPhase section */ 341 | 68E0599D1188815C3DB8D7C7F07BAC8D /* Resources */ = { 342 | isa = PBXResourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | 9CBA4A200DF5783EE30B9863AE6320EA /* Resources */ = { 349 | isa = PBXResourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | B9648410A3F1FA8B048D18FBBE75077B /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | /* End PBXResourcesBuildPhase section */ 363 | 364 | /* Begin PBXSourcesBuildPhase section */ 365 | C73578BDD756576E6D6F272AB182B6AF /* Sources */ = { 366 | isa = PBXSourcesBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | 192D1B900DA082AC89E68D0DC433EFD6 /* Pods-FTfloatBall_Tests-dummy.m in Sources */, 370 | ); 371 | runOnlyForDeploymentPostprocessing = 0; 372 | }; 373 | C840760A4912CBBF84F8EB450CC8C412 /* Sources */ = { 374 | isa = PBXSourcesBuildPhase; 375 | buildActionMask = 2147483647; 376 | files = ( 377 | 672AB2834B4F295F6F2CFF3B7AE0854B /* Pods-FTfloatBall_Example-dummy.m in Sources */, 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | F72DF5A2F60AE835EA64CA6D61D3E8E1 /* Sources */ = { 382 | isa = PBXSourcesBuildPhase; 383 | buildActionMask = 2147483647; 384 | files = ( 385 | C1A43B2AB82994BC5770CC0297D29EBE /* FTfloatBall-dummy.m in Sources */, 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | }; 389 | /* End PBXSourcesBuildPhase section */ 390 | 391 | /* Begin PBXTargetDependency section */ 392 | 1D0E8A721471252CE7DF45ADC73A1684 /* PBXTargetDependency */ = { 393 | isa = PBXTargetDependency; 394 | name = "Pods-FTfloatBall_Example"; 395 | target = E3226B878D8CDC7EA296FD5F43068790 /* Pods-FTfloatBall_Example */; 396 | targetProxy = 1C8620A3D6A50DB6B09383BA53476FDE /* PBXContainerItemProxy */; 397 | }; 398 | 452B0515A5916781A2B96046338C1559 /* PBXTargetDependency */ = { 399 | isa = PBXTargetDependency; 400 | name = FTfloatBall; 401 | target = 863A5144C0FCCB44BFB0E03C63FBF8FE /* FTfloatBall */; 402 | targetProxy = 49E2030E6614803DBE301419EF30368A /* PBXContainerItemProxy */; 403 | }; 404 | /* End PBXTargetDependency section */ 405 | 406 | /* Begin XCBuildConfiguration section */ 407 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_ANALYZER_NONNULL = YES; 412 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 413 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 414 | CLANG_CXX_LIBRARY = "libc++"; 415 | CLANG_ENABLE_MODULES = YES; 416 | CLANG_ENABLE_OBJC_ARC = YES; 417 | CLANG_ENABLE_OBJC_WEAK = YES; 418 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 419 | CLANG_WARN_BOOL_CONVERSION = YES; 420 | CLANG_WARN_COMMA = YES; 421 | CLANG_WARN_CONSTANT_CONVERSION = YES; 422 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 423 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 424 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 425 | CLANG_WARN_EMPTY_BODY = YES; 426 | CLANG_WARN_ENUM_CONVERSION = YES; 427 | CLANG_WARN_INFINITE_RECURSION = YES; 428 | CLANG_WARN_INT_CONVERSION = YES; 429 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 430 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 431 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 432 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 433 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 434 | CLANG_WARN_STRICT_PROTOTYPES = YES; 435 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 436 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 437 | CLANG_WARN_UNREACHABLE_CODE = YES; 438 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 439 | COPY_PHASE_STRIP = NO; 440 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 441 | ENABLE_NS_ASSERTIONS = NO; 442 | ENABLE_STRICT_OBJC_MSGSEND = YES; 443 | GCC_C_LANGUAGE_STANDARD = gnu11; 444 | GCC_NO_COMMON_BLOCKS = YES; 445 | GCC_PREPROCESSOR_DEFINITIONS = ( 446 | "POD_CONFIGURATION_RELEASE=1", 447 | "$(inherited)", 448 | ); 449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 451 | GCC_WARN_UNDECLARED_SELECTOR = YES; 452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 453 | GCC_WARN_UNUSED_FUNCTION = YES; 454 | GCC_WARN_UNUSED_VARIABLE = YES; 455 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 456 | MTL_ENABLE_DEBUG_INFO = NO; 457 | MTL_FAST_MATH = YES; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | STRIP_INSTALLED_PRODUCT = NO; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 461 | SWIFT_VERSION = 5.0; 462 | SYMROOT = "${SRCROOT}/../build"; 463 | }; 464 | name = Release; 465 | }; 466 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ALWAYS_SEARCH_USER_PATHS = NO; 470 | CLANG_ANALYZER_NONNULL = YES; 471 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 472 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 473 | CLANG_CXX_LIBRARY = "libc++"; 474 | CLANG_ENABLE_MODULES = YES; 475 | CLANG_ENABLE_OBJC_ARC = YES; 476 | CLANG_ENABLE_OBJC_WEAK = YES; 477 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 478 | CLANG_WARN_BOOL_CONVERSION = YES; 479 | CLANG_WARN_COMMA = YES; 480 | CLANG_WARN_CONSTANT_CONVERSION = YES; 481 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 482 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 483 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 484 | CLANG_WARN_EMPTY_BODY = YES; 485 | CLANG_WARN_ENUM_CONVERSION = YES; 486 | CLANG_WARN_INFINITE_RECURSION = YES; 487 | CLANG_WARN_INT_CONVERSION = YES; 488 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 489 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 490 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 491 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 492 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 493 | CLANG_WARN_STRICT_PROTOTYPES = YES; 494 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 495 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 496 | CLANG_WARN_UNREACHABLE_CODE = YES; 497 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 498 | COPY_PHASE_STRIP = NO; 499 | DEBUG_INFORMATION_FORMAT = dwarf; 500 | ENABLE_STRICT_OBJC_MSGSEND = YES; 501 | ENABLE_TESTABILITY = YES; 502 | GCC_C_LANGUAGE_STANDARD = gnu11; 503 | GCC_DYNAMIC_NO_PIC = NO; 504 | GCC_NO_COMMON_BLOCKS = YES; 505 | GCC_OPTIMIZATION_LEVEL = 0; 506 | GCC_PREPROCESSOR_DEFINITIONS = ( 507 | "POD_CONFIGURATION_DEBUG=1", 508 | "DEBUG=1", 509 | "$(inherited)", 510 | ); 511 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 512 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 513 | GCC_WARN_UNDECLARED_SELECTOR = YES; 514 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 515 | GCC_WARN_UNUSED_FUNCTION = YES; 516 | GCC_WARN_UNUSED_VARIABLE = YES; 517 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 518 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 519 | MTL_FAST_MATH = YES; 520 | ONLY_ACTIVE_ARCH = YES; 521 | PRODUCT_NAME = "$(TARGET_NAME)"; 522 | STRIP_INSTALLED_PRODUCT = NO; 523 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 524 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 525 | SWIFT_VERSION = 5.0; 526 | SYMROOT = "${SRCROOT}/../build"; 527 | }; 528 | name = Debug; 529 | }; 530 | 8419418EAE92DDF73D2FB3DC1738D434 /* Debug */ = { 531 | isa = XCBuildConfiguration; 532 | baseConfigurationReference = B69B959E02171CB9D26A893298E836C1 /* FTfloatBall.debug.xcconfig */; 533 | buildSettings = { 534 | CODE_SIGN_IDENTITY = ""; 535 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 536 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 537 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 538 | CURRENT_PROJECT_VERSION = 1; 539 | DEFINES_MODULE = YES; 540 | DYLIB_COMPATIBILITY_VERSION = 1; 541 | DYLIB_CURRENT_VERSION = 1; 542 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 543 | GCC_PREFIX_HEADER = "Target Support Files/FTfloatBall/FTfloatBall-prefix.pch"; 544 | INFOPLIST_FILE = "Target Support Files/FTfloatBall/FTfloatBall-Info.plist"; 545 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 546 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 547 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 548 | MODULEMAP_FILE = "Target Support Files/FTfloatBall/FTfloatBall.modulemap"; 549 | PRODUCT_MODULE_NAME = FTfloatBall; 550 | PRODUCT_NAME = FTfloatBall; 551 | SDKROOT = iphoneos; 552 | SKIP_INSTALL = YES; 553 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 554 | SWIFT_VERSION = 4.0; 555 | TARGETED_DEVICE_FAMILY = "1,2"; 556 | VERSIONING_SYSTEM = "apple-generic"; 557 | VERSION_INFO_PREFIX = ""; 558 | }; 559 | name = Debug; 560 | }; 561 | 8FE272ECA8A1DB725BA44CEE91C6FCBB /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | baseConfigurationReference = 482DFA29F8CC4E760D1BE81A30995DF5 /* Pods-FTfloatBall_Tests.release.xcconfig */; 564 | buildSettings = { 565 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 566 | CODE_SIGN_IDENTITY = ""; 567 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 568 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 569 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 570 | CURRENT_PROJECT_VERSION = 1; 571 | DEFINES_MODULE = YES; 572 | DYLIB_COMPATIBILITY_VERSION = 1; 573 | DYLIB_CURRENT_VERSION = 1; 574 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 575 | INFOPLIST_FILE = "Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-Info.plist"; 576 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 577 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 578 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 579 | MACH_O_TYPE = staticlib; 580 | MODULEMAP_FILE = "Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.modulemap"; 581 | OTHER_LDFLAGS = ""; 582 | OTHER_LIBTOOLFLAGS = ""; 583 | PODS_ROOT = "$(SRCROOT)"; 584 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 585 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 586 | SDKROOT = iphoneos; 587 | SKIP_INSTALL = YES; 588 | TARGETED_DEVICE_FAMILY = "1,2"; 589 | VALIDATE_PRODUCT = YES; 590 | VERSIONING_SYSTEM = "apple-generic"; 591 | VERSION_INFO_PREFIX = ""; 592 | }; 593 | name = Release; 594 | }; 595 | D035662987CE698192011C9277D0C885 /* Release */ = { 596 | isa = XCBuildConfiguration; 597 | baseConfigurationReference = DB04F6F38ADC67A7F688BEFA194AAB03 /* FTfloatBall.release.xcconfig */; 598 | buildSettings = { 599 | CODE_SIGN_IDENTITY = ""; 600 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 601 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 602 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 603 | CURRENT_PROJECT_VERSION = 1; 604 | DEFINES_MODULE = YES; 605 | DYLIB_COMPATIBILITY_VERSION = 1; 606 | DYLIB_CURRENT_VERSION = 1; 607 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 608 | GCC_PREFIX_HEADER = "Target Support Files/FTfloatBall/FTfloatBall-prefix.pch"; 609 | INFOPLIST_FILE = "Target Support Files/FTfloatBall/FTfloatBall-Info.plist"; 610 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 611 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 612 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 613 | MODULEMAP_FILE = "Target Support Files/FTfloatBall/FTfloatBall.modulemap"; 614 | PRODUCT_MODULE_NAME = FTfloatBall; 615 | PRODUCT_NAME = FTfloatBall; 616 | SDKROOT = iphoneos; 617 | SKIP_INSTALL = YES; 618 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 619 | SWIFT_VERSION = 4.0; 620 | TARGETED_DEVICE_FAMILY = "1,2"; 621 | VALIDATE_PRODUCT = YES; 622 | VERSIONING_SYSTEM = "apple-generic"; 623 | VERSION_INFO_PREFIX = ""; 624 | }; 625 | name = Release; 626 | }; 627 | D779801A2653B47A73C4F41F8B867381 /* Debug */ = { 628 | isa = XCBuildConfiguration; 629 | baseConfigurationReference = 5FFB1639C3B246D6AC2635CE7E65B2F6 /* Pods-FTfloatBall_Example.debug.xcconfig */; 630 | buildSettings = { 631 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 632 | CODE_SIGN_IDENTITY = ""; 633 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 634 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 635 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 636 | CURRENT_PROJECT_VERSION = 1; 637 | DEFINES_MODULE = YES; 638 | DYLIB_COMPATIBILITY_VERSION = 1; 639 | DYLIB_CURRENT_VERSION = 1; 640 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 641 | INFOPLIST_FILE = "Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-Info.plist"; 642 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 643 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 644 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 645 | MACH_O_TYPE = staticlib; 646 | MODULEMAP_FILE = "Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.modulemap"; 647 | OTHER_LDFLAGS = ""; 648 | OTHER_LIBTOOLFLAGS = ""; 649 | PODS_ROOT = "$(SRCROOT)"; 650 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 651 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 652 | SDKROOT = iphoneos; 653 | SKIP_INSTALL = YES; 654 | TARGETED_DEVICE_FAMILY = "1,2"; 655 | VERSIONING_SYSTEM = "apple-generic"; 656 | VERSION_INFO_PREFIX = ""; 657 | }; 658 | name = Debug; 659 | }; 660 | F6E8B8F0C53405A14D0134E30DC8C600 /* Release */ = { 661 | isa = XCBuildConfiguration; 662 | baseConfigurationReference = 4867C6790F42DCF004E6460A9F1B967E /* Pods-FTfloatBall_Example.release.xcconfig */; 663 | buildSettings = { 664 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 665 | CODE_SIGN_IDENTITY = ""; 666 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 667 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 668 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 669 | CURRENT_PROJECT_VERSION = 1; 670 | DEFINES_MODULE = YES; 671 | DYLIB_COMPATIBILITY_VERSION = 1; 672 | DYLIB_CURRENT_VERSION = 1; 673 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 674 | INFOPLIST_FILE = "Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-Info.plist"; 675 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 676 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 678 | MACH_O_TYPE = staticlib; 679 | MODULEMAP_FILE = "Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.modulemap"; 680 | OTHER_LDFLAGS = ""; 681 | OTHER_LIBTOOLFLAGS = ""; 682 | PODS_ROOT = "$(SRCROOT)"; 683 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 684 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 685 | SDKROOT = iphoneos; 686 | SKIP_INSTALL = YES; 687 | TARGETED_DEVICE_FAMILY = "1,2"; 688 | VALIDATE_PRODUCT = YES; 689 | VERSIONING_SYSTEM = "apple-generic"; 690 | VERSION_INFO_PREFIX = ""; 691 | }; 692 | name = Release; 693 | }; 694 | FE825ADD7E743A6164F45B9E983558DF /* Debug */ = { 695 | isa = XCBuildConfiguration; 696 | baseConfigurationReference = FCF98B1DB98E60DA82E5752AEC0E4F81 /* Pods-FTfloatBall_Tests.debug.xcconfig */; 697 | buildSettings = { 698 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 699 | CODE_SIGN_IDENTITY = ""; 700 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 701 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 702 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 703 | CURRENT_PROJECT_VERSION = 1; 704 | DEFINES_MODULE = YES; 705 | DYLIB_COMPATIBILITY_VERSION = 1; 706 | DYLIB_CURRENT_VERSION = 1; 707 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 708 | INFOPLIST_FILE = "Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-Info.plist"; 709 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 710 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 711 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 712 | MACH_O_TYPE = staticlib; 713 | MODULEMAP_FILE = "Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.modulemap"; 714 | OTHER_LDFLAGS = ""; 715 | OTHER_LIBTOOLFLAGS = ""; 716 | PODS_ROOT = "$(SRCROOT)"; 717 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 718 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 719 | SDKROOT = iphoneos; 720 | SKIP_INSTALL = YES; 721 | TARGETED_DEVICE_FAMILY = "1,2"; 722 | VERSIONING_SYSTEM = "apple-generic"; 723 | VERSION_INFO_PREFIX = ""; 724 | }; 725 | name = Debug; 726 | }; 727 | /* End XCBuildConfiguration section */ 728 | 729 | /* Begin XCConfigurationList section */ 730 | 127CA8AF00192EE91A57107B325E87D5 /* Build configuration list for PBXNativeTarget "Pods-FTfloatBall_Example" */ = { 731 | isa = XCConfigurationList; 732 | buildConfigurations = ( 733 | D779801A2653B47A73C4F41F8B867381 /* Debug */, 734 | F6E8B8F0C53405A14D0134E30DC8C600 /* Release */, 735 | ); 736 | defaultConfigurationIsVisible = 0; 737 | defaultConfigurationName = Release; 738 | }; 739 | 2EE684A8C22640C15A1AFF65790B0C04 /* Build configuration list for PBXNativeTarget "Pods-FTfloatBall_Tests" */ = { 740 | isa = XCConfigurationList; 741 | buildConfigurations = ( 742 | FE825ADD7E743A6164F45B9E983558DF /* Debug */, 743 | 8FE272ECA8A1DB725BA44CEE91C6FCBB /* Release */, 744 | ); 745 | defaultConfigurationIsVisible = 0; 746 | defaultConfigurationName = Release; 747 | }; 748 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 749 | isa = XCConfigurationList; 750 | buildConfigurations = ( 751 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */, 752 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */, 753 | ); 754 | defaultConfigurationIsVisible = 0; 755 | defaultConfigurationName = Release; 756 | }; 757 | E23D85B337A909CA987A4715BC4E80E9 /* Build configuration list for PBXNativeTarget "FTfloatBall" */ = { 758 | isa = XCConfigurationList; 759 | buildConfigurations = ( 760 | 8419418EAE92DDF73D2FB3DC1738D434 /* Debug */, 761 | D035662987CE698192011C9277D0C885 /* Release */, 762 | ); 763 | defaultConfigurationIsVisible = 0; 764 | defaultConfigurationName = Release; 765 | }; 766 | /* End XCConfigurationList section */ 767 | }; 768 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 769 | } 770 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_FTfloatBall : NSObject 3 | @end 4 | @implementation PodsDummy_FTfloatBall 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double FTfloatBallVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char FTfloatBallVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | PODS_BUILD_DIR = ${BUILD_DIR} 4 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 5 | PODS_ROOT = ${SRCROOT} 6 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall.modulemap: -------------------------------------------------------------------------------- 1 | framework module FTfloatBall { 2 | umbrella header "FTfloatBall-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FTfloatBall/FTfloatBall.release.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | PODS_BUILD_DIR = ${BUILD_DIR} 4 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 5 | PODS_ROOT = ${SRCROOT} 6 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## FTfloatBall 5 | 6 | Copyright (c) 2020 1085192695@qq.com <1085192695@qq.com> 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 - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_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) 2020 1085192695@qq.com <1085192695@qq.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 | License 38 | MIT 39 | Title 40 | FTfloatBall 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_FTfloatBall_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_FTfloatBall_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | warn_missing_arch=${2:-true} 88 | if [ -r "$source" ]; then 89 | # Copy the dSYM into the targets temp dir. 90 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 91 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 92 | 93 | local basename 94 | basename="$(basename -s .dSYM "$source")" 95 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 96 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 97 | 98 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 99 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 100 | strip_invalid_archs "$binary" "$warn_missing_arch" 101 | fi 102 | 103 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 104 | # Move the stripped file into its final destination. 105 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 106 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 107 | else 108 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 109 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 110 | fi 111 | fi 112 | } 113 | 114 | # Copies the bcsymbolmap files of a vendored framework 115 | install_bcsymbolmap() { 116 | local bcsymbolmap_path="$1" 117 | local destination="${BUILT_PRODUCTS_DIR}" 118 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 119 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 120 | } 121 | 122 | # Signs a framework with the provided identity 123 | code_sign_if_enabled() { 124 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 125 | # Use the current code_sign_identity 126 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 127 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 128 | 129 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 130 | code_sign_cmd="$code_sign_cmd &" 131 | fi 132 | echo "$code_sign_cmd" 133 | eval "$code_sign_cmd" 134 | fi 135 | } 136 | 137 | # Strip invalid architectures 138 | strip_invalid_archs() { 139 | binary="$1" 140 | warn_missing_arch=${2:-true} 141 | # Get architectures for current target binary 142 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 143 | # Intersect them with the architectures we are building for 144 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 145 | # If there are no archs supported by this binary then warn the user 146 | if [[ -z "$intersected_archs" ]]; then 147 | if [[ "$warn_missing_arch" == "true" ]]; then 148 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 149 | fi 150 | STRIP_BINARY_RETVAL=0 151 | return 152 | fi 153 | stripped="" 154 | for arch in $binary_archs; do 155 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 156 | # Strip non-valid architectures in-place 157 | lipo -remove "$arch" -output "$binary" "$binary" 158 | stripped="$stripped $arch" 159 | fi 160 | done 161 | if [[ "$stripped" ]]; then 162 | echo "Stripped $binary of architectures:$stripped" 163 | fi 164 | STRIP_BINARY_RETVAL=1 165 | } 166 | 167 | install_artifact() { 168 | artifact="$1" 169 | base="$(basename "$artifact")" 170 | case $base in 171 | *.framework) 172 | install_framework "$artifact" 173 | ;; 174 | *.dSYM) 175 | # Suppress arch warnings since XCFrameworks will include many dSYM files 176 | install_dsym "$artifact" "false" 177 | ;; 178 | *.bcsymbolmap) 179 | install_bcsymbolmap "$artifact" 180 | ;; 181 | *) 182 | echo "error: Unrecognized artifact "$artifact"" 183 | ;; 184 | esac 185 | } 186 | 187 | copy_artifacts() { 188 | file_list="$1" 189 | while read artifact; do 190 | install_artifact "$artifact" 191 | done <$file_list 192 | } 193 | 194 | ARTIFACT_LIST_FILE="${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt" 195 | if [ -r "${ARTIFACT_LIST_FILE}" ]; then 196 | copy_artifacts "${ARTIFACT_LIST_FILE}" 197 | fi 198 | 199 | if [[ "$CONFIGURATION" == "Debug" ]]; then 200 | install_framework "${BUILT_PRODUCTS_DIR}/FTfloatBall/FTfloatBall.framework" 201 | fi 202 | if [[ "$CONFIGURATION" == "Release" ]]; then 203 | install_framework "${BUILT_PRODUCTS_DIR}/FTfloatBall/FTfloatBall.framework" 204 | fi 205 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 206 | wait 207 | fi 208 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_FTfloatBall_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_FTfloatBall_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall/FTfloatBall.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "FTfloatBall" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_FTfloatBall_Example { 2 | umbrella header "Pods-FTfloatBall_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Example/Pods-FTfloatBall_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall/FTfloatBall.framework/Headers" 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_LDFLAGS = $(inherited) -framework "FTfloatBall" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_FTfloatBall_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_FTfloatBall_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_FTfloatBall_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_FTfloatBall_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall/FTfloatBall.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "FTfloatBall" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_FTfloatBall_Tests { 2 | umbrella header "Pods-FTfloatBall_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-FTfloatBall_Tests/Pods-FTfloatBall_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FTfloatBall/FTfloatBall.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "FTfloatBall" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /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 | // FTfloatBallTests.m 3 | // FTfloatBallTests 4 | // 5 | // Created by 1085192695@qq.com on 08/07/2020. 6 | // Copyright (c) 2020 1085192695@qq.com. 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 | -------------------------------------------------------------------------------- /FTfloatBall.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint FTfloatBall.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'FTfloatBall' 11 | s.version = '0.1.1' 12 | s.summary = 'ios 悬浮球 floatBall' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | ios悬浮球,可拖动的悬浮球,自动吸附边缘,类似ios的辅助触控,floatBall,floatWindow,suspension 22 | DESC 23 | 24 | s.homepage = 'https://github.com/520coding/FTfloatBall' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { '520coding' => '1085192695@qq.com,794751446@qq.com' } 28 | s.source = { :git => 'https://github.com/520coding/FTfloatBall.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | 33 | s.source_files = 'FTfloatBall/Classes/**/*' 34 | 35 | # s.resource_bundles = { 36 | # 'FTfloatBall' => ['FTfloatBall/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | # s.frameworks = 'UIKit', 'MapKit' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /FTfloatBall/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/520coding/FTfloatBall/fb156f01f6f1ade6eac7fb9e3354249935933fb3/FTfloatBall/Assets/.gitkeep -------------------------------------------------------------------------------- /FTfloatBall/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/520coding/FTfloatBall/fb156f01f6f1ade6eac7fb9e3354249935933fb3/FTfloatBall/Classes/.gitkeep -------------------------------------------------------------------------------- /FTfloatBall/Classes/FTfloatBall.h: -------------------------------------------------------------------------------- 1 | // 2 | // FTfloatBall.h 3 | // FTfloatBall 4 | // 5 | // Created by ymac on 30/07/2020. 6 | // Copyright © 2020 xxx. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface FTfloatBall : UIView 14 | 15 | @property (nonatomic, copy) void (^ clickBolcks)(NSInteger i); 16 | 17 | + (instancetype)getFloatBall; 18 | 19 | //frame:长宽须相等 20 | - (void)initWithFrame:(CGRect)frame baseImage:(NSString *)imageName; 21 | 22 | - (void)setButtonArray:(NSMutableArray *)btnArray; 23 | 24 | // 显示 25 | - (void)show; 26 | 27 | // 隐藏 28 | - (void)hide; 29 | 30 | @end 31 | 32 | NS_ASSUME_NONNULL_END 33 | -------------------------------------------------------------------------------- /FTfloatBall/Classes/FTfloatBall.m: -------------------------------------------------------------------------------- 1 | // 2 | // FTfloatBall.m 3 | // FTfloatBall 4 | // 5 | // Created by ymac on 30/07/2020. 6 | // Copyright © 2020 xxx. All rights reserved. 7 | // 8 | 9 | #import "FTfloatBall.h" 10 | 11 | #define kScreenWidth [[UIScreen mainScreen] bounds].size.width 12 | #define kScreenHeight [[UIScreen mainScreen] bounds].size.height 13 | 14 | static FTfloatBall *_floatBall = nil; 15 | 16 | @interface FTfloatBall () 17 | 18 | @property (nonatomic, strong) UIButton *baseButton; 19 | @property (nonatomic, strong) UIView *contentView; 20 | @property (nonatomic, strong) NSMutableArray *buttonArray; 21 | @property (nonatomic, assign) float buttonWidth; 22 | @property (nonatomic, strong) UIPanGestureRecognizer *pan; 23 | 24 | @end 25 | 26 | @implementation FTfloatBall 27 | 28 | + (instancetype)getFloatBall 29 | { 30 | static dispatch_once_t onceToken; 31 | dispatch_once(&onceToken, ^{ 32 | _floatBall = [[FTfloatBall alloc] init]; 33 | }); 34 | return _floatBall; 35 | } 36 | 37 | - (void)setButtonArray:(NSMutableArray *)btnArray { 38 | _buttonArray = btnArray; 39 | _contentView.frame = (CGRect) { 0, 0, self.buttonWidth * (btnArray.count + 1), self.buttonWidth }; 40 | for (UIButton *btn in self.buttonArray) { 41 | btn.alpha = 0; 42 | [btn addTarget:self action:@selector(btnOnclick:) forControlEvents:UIControlEventTouchUpInside]; 43 | [_contentView addSubview:btn]; 44 | } 45 | } 46 | 47 | - (void)btnOnclick:(UIButton *)sender { 48 | [self ShowHiddenOnclick:_baseButton]; 49 | if (self.clickBolcks) { 50 | self.clickBolcks(sender.tag); 51 | } 52 | } 53 | 54 | - (void)initWithFrame:(CGRect)frame baseImage:(NSString *)imageName 55 | { 56 | [self setFrame:frame]; 57 | self.buttonWidth = frame.size.width; 58 | if (!_contentView) { 59 | _contentView = [[UIView alloc] initWithFrame:(CGRect) { 0, 0, self.buttonWidth, self.buttonWidth }]; 60 | _contentView.alpha = 0; 61 | _contentView.userInteractionEnabled = YES; 62 | [self addSubview:_contentView]; 63 | 64 | _baseButton = [UIButton buttonWithType:UIButtonTypeCustom]; 65 | [_baseButton setFrame:(CGRect) { 0, 0, self.buttonWidth, self.buttonWidth }]; 66 | [_baseButton setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal]; 67 | [_baseButton addTarget:self action:@selector(ShowHiddenOnclick:) forControlEvents:UIControlEventTouchUpInside]; 68 | 69 | [self addSubview:_baseButton]; 70 | 71 | _pan = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(changeLocation:)]; 72 | _pan.delaysTouchesBegan = YES; 73 | [self addGestureRecognizer:_pan]; 74 | } 75 | } 76 | 77 | #pragma mark - gestures response 78 | - (void)changeLocation:(UIPanGestureRecognizer *)p 79 | { 80 | UIWindow *appWindow = [[UIApplication sharedApplication] windows][0]; 81 | CGPoint panPoint = [p locationInView:appWindow]; 82 | //透明度 83 | if (p.state == UIGestureRecognizerStateBegan) { 84 | self.alpha = 1; 85 | } else if (p.state == UIGestureRecognizerStateEnded) { 86 | self.alpha = 0.5; 87 | } 88 | 89 | if (p.state == UIGestureRecognizerStateChanged) { 90 | self.center = CGPointMake(panPoint.x, panPoint.y); 91 | } else if (p.state == UIGestureRecognizerStateEnded) { 92 | CGFloat left = fabs(panPoint.x); 93 | CGFloat right = fabs(kScreenWidth - left); 94 | 95 | CGFloat minSpace = MIN(left, right); 96 | CGRect newFrame; 97 | 98 | if (minSpace == left) { 99 | newFrame = CGRectMake(-self.buttonWidth / 2, panPoint.y - self.frame.size.height / 2, self.frame.size.width, self.frame.size.height); 100 | } else { 101 | newFrame = CGRectMake(kScreenWidth - self.buttonWidth / 2, panPoint.y - self.frame.size.height / 2, self.frame.size.width, self.frame.size.height); 102 | } 103 | 104 | [UIView animateWithDuration:0.25 animations:^{ 105 | self.frame = newFrame; 106 | }]; 107 | } 108 | } 109 | 110 | #pragma mark ------- click baseButton -------------------- 111 | - (void)ShowHiddenOnclick:(UIButton *)btn { 112 | if (btn.selected == YES) { 113 | btn.selected = NO; 114 | [self btnHidden]; 115 | } else { 116 | btn.selected = YES; 117 | [self btnShow]; 118 | } 119 | } 120 | 121 | - (void)btnHidden { 122 | self.contentView.alpha = 0; 123 | int i = 1; 124 | for (UIButton *btn in self.buttonArray) { 125 | [btn setCenter:CGPointMake(btn.center.x - self.buttonWidth * i - 2, btn.center.y) ]; 126 | i++; 127 | } 128 | [UIView animateWithDuration:0.25 animations:^{ 129 | for (UIButton *btn in self.buttonArray) { 130 | btn.alpha = 0; 131 | } 132 | if (self.center.x <= kScreenWidth / 2) { 133 | [self setFrame:CGRectMake(self.frame.origin.x, self.frame.origin.y, self.buttonWidth, self.buttonWidth)]; 134 | } else { 135 | self.baseButton.frame = CGRectMake(0, 0, self.buttonWidth, self.buttonWidth); 136 | [self setFrame:CGRectMake(kScreenWidth - self.buttonWidth, self.frame.origin.y, self.buttonWidth, self.buttonWidth)]; 137 | } 138 | } completion:^(BOOL finished) { 139 | }]; 140 | 141 | if (_pan) { 142 | [self addGestureRecognizer:_pan]; 143 | } 144 | [self performSelector:@selector(autoMove) withObject:nil afterDelay:3]; 145 | } 146 | 147 | - (void)btnShow { 148 | self.alpha = 1; 149 | if (self.center.x <= kScreenWidth / 2) { 150 | [self resetContentview]; 151 | [self setFrame:CGRectMake(0, self.frame.origin.y, _baseButton.frame.size.width + self.buttonWidth * self.buttonArray.count, self.buttonWidth)]; 152 | } else { 153 | [self moveContentview]; 154 | self.baseButton.frame = CGRectMake(self.buttonArray.count * self.buttonWidth, 0, self.buttonWidth, self.buttonWidth); 155 | [self setFrame:CGRectMake(kScreenWidth - (_baseButton.frame.size.width + self.buttonWidth * self.buttonArray.count), self.frame.origin.y, _baseButton.frame.size.width + self.buttonWidth * self.buttonArray.count, self.buttonWidth)]; 156 | } 157 | int i = 1; 158 | for (UIButton *btn in self.buttonArray) { 159 | [btn setCenter:CGPointMake(self.buttonWidth * i + btn.center.x + 2, self.baseButton.center.y) ]; 160 | i++; 161 | } 162 | 163 | self.contentView.alpha = 1; 164 | [UIView animateWithDuration:0.25 animations:^{ 165 | for (UIButton *btn in self.buttonArray) { 166 | btn.alpha = 1; 167 | } 168 | }]; 169 | 170 | if (_pan) { 171 | [self removeGestureRecognizer:_pan]; 172 | } 173 | [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(autoMove) object:nil]; 174 | } 175 | 176 | - (void)autoMove 177 | { 178 | [UIView animateWithDuration:1.0 animations:^{ 179 | self.alpha = 0.5; 180 | }]; 181 | [UIView animateWithDuration:0.5 animations:^{ 182 | CGFloat x = self.center.x < kScreenWidth / 2 ? 0 : kScreenWidth; 183 | CGFloat y = self.center.y; 184 | 185 | self.center = CGPointMake(x, y); 186 | }]; 187 | } 188 | 189 | #pragma mark ------- contentview -------------------- 190 | //当按钮在屏幕右边时,将contentview移动到左边 191 | - (void)moveContentview { 192 | _contentView.frame = (CGRect) { -self.buttonWidth, 0, _contentView.frame.size.width, _contentView.frame.size.height }; 193 | } 194 | 195 | //恢复到默认位置 196 | - (void)resetContentview { 197 | _contentView.frame = (CGRect) { 0, 0, _contentView.frame.size.width, _contentView.frame.size.height }; 198 | } 199 | 200 | - (void)show 201 | { 202 | self.hidden = NO; 203 | } 204 | 205 | - (void)hide 206 | { 207 | self.hidden = YES; 208 | } 209 | 210 | @end 211 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 520coding <1085192695@qq.com,794751446@qq.com> 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FTfloatBall 2 | 3 | ## ![](https://img.shields.io/travis/1085192695@qq.com/FTfloatBall.svg?style=flat#align=left&display=inline&height=20&margin=%5Bobject%20Object%5D&originHeight=20&originWidth=98&status=done&style=none&width=98) ![](https://img.shields.io/cocoapods/v/FTfloatBall.svg?style=flat#align=left&display=inline&height=20&margin=%5Bobject%20Object%5D&originHeight=20&originWidth=76&status=done&style=none&width=76) ![](https://img.shields.io/cocoapods/l/FTfloatBall.svg?style=flat#align=left&display=inline&height=20&margin=%5Bobject%20Object%5D&originHeight=20&originWidth=78&status=done&style=none&width=78) [![](https://img.shields.io/cocoapods/p/FTfloatBall.svg?style=flat#align=left&display=inline&height=20&margin=%5Bobject%20Object%5D&originHeight=20&originWidth=82&status=done&style=none&width=82)](https://cocoapods.org/pods/FTfloatBall) 4 | ## Example 5 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 6 | ## Requirements 7 | ## Installation 8 | FTfloatBall is available through [CocoaPods](https://cocoapods.org/). To install it, simply add the following line to your Podfile: 9 | pod 'FTfloatBall' 10 | ## Demo 11 | 注意:如遇到图片加载缓慢或失败,请参照——[解决办法](https://blog.csdn.net/u011583927/article/details/104384169?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param)
12 | ![demo.gif](https://github.com/520coding/FTfloatBall/blob/master/ScreenShots/demo.gif) 13 | ## Author 14 | [794751446@qq.com](mailto:794751446@qq.com), [1085192695@qq.com](mailto:1085192695@qq.com) 15 | ## License 16 | FTfloatBall is available under the MIT license. See the LICENSE file for more info. 17 | -------------------------------------------------------------------------------- /ScreenShots/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/520coding/FTfloatBall/fb156f01f6f1ade6eac7fb9e3354249935933fb3/ScreenShots/demo.gif -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------