├── .gitignore ├── JQStickersView.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── JQStickersView ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-40.png │ │ ├── Icon-40@2x.png │ │ ├── Icon-40@3x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-72.png │ │ ├── Icon-72@2x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-83.5@2x.png │ │ ├── Icon-Small-50.png │ │ ├── Icon-Small-50@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Icon.png │ │ ├── Icon@2x.png │ │ ├── NotificationIcon@2x.png │ │ ├── NotificationIcon@3x.png │ │ ├── NotificationIcon~ipad.png │ │ └── NotificationIcon~ipad@2x.png │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Images │ ├── testImage_1.png │ ├── testImage_2.png │ ├── testImage_3.png │ ├── testImage_4.png │ ├── testImage_5.png │ ├── testImage_6.png │ ├── testImage_7.png │ └── testImage_8.png ├── Info.plist ├── JQStickersView │ ├── JQStickersView.h │ └── JQStickersView.m ├── JQViewController.h ├── JQViewController.m ├── ViewController.h ├── ViewController.m └── main.m ├── JQStickersViewTests ├── Info.plist └── JQStickersViewTests.m ├── JQStickersViewUITests ├── Info.plist └── JQStickersViewUITests.m ├── LICENSE ├── README.md └── v1.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /JQStickersView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 471E0C251EF35F6300EB3AC7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C241EF35F6300EB3AC7 /* main.m */; }; 11 | 471E0C281EF35F6300EB3AC7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C271EF35F6300EB3AC7 /* AppDelegate.m */; }; 12 | 471E0C2B1EF35F6300EB3AC7 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C2A1EF35F6300EB3AC7 /* ViewController.m */; }; 13 | 471E0C2E1EF35F6300EB3AC7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C2C1EF35F6300EB3AC7 /* Main.storyboard */; }; 14 | 471E0C301EF35F6400EB3AC7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C2F1EF35F6400EB3AC7 /* Assets.xcassets */; }; 15 | 471E0C331EF35F6400EB3AC7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C311EF35F6400EB3AC7 /* LaunchScreen.storyboard */; }; 16 | 471E0C3E1EF35F6400EB3AC7 /* JQStickersViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C3D1EF35F6400EB3AC7 /* JQStickersViewTests.m */; }; 17 | 471E0C491EF35F6400EB3AC7 /* JQStickersViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C481EF35F6400EB3AC7 /* JQStickersViewUITests.m */; }; 18 | 471E0C591EF35FA500EB3AC7 /* JQStickersView.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C581EF35FA500EB3AC7 /* JQStickersView.m */; }; 19 | 471E0C621EF3674800EB3AC7 /* testImage_1.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C5B1EF3674800EB3AC7 /* testImage_1.png */; }; 20 | 471E0C631EF3674800EB3AC7 /* testImage_2.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C5C1EF3674800EB3AC7 /* testImage_2.png */; }; 21 | 471E0C641EF3674800EB3AC7 /* testImage_3.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C5D1EF3674800EB3AC7 /* testImage_3.png */; }; 22 | 471E0C651EF3674800EB3AC7 /* testImage_4.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C5E1EF3674800EB3AC7 /* testImage_4.png */; }; 23 | 471E0C661EF3674800EB3AC7 /* testImage_5.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C5F1EF3674800EB3AC7 /* testImage_5.png */; }; 24 | 471E0C671EF3674800EB3AC7 /* testImage_6.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C601EF3674800EB3AC7 /* testImage_6.png */; }; 25 | 471E0C681EF3674800EB3AC7 /* testImage_7.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C611EF3674800EB3AC7 /* testImage_7.png */; }; 26 | 471E0C6B1EF369B100EB3AC7 /* JQViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 471E0C6A1EF369B100EB3AC7 /* JQViewController.m */; }; 27 | 471E0C6D1EF36B9B00EB3AC7 /* testImage_8.png in Resources */ = {isa = PBXBuildFile; fileRef = 471E0C6C1EF36B9B00EB3AC7 /* testImage_8.png */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 471E0C3A1EF35F6400EB3AC7 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 471E0C181EF35F6300EB3AC7 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 471E0C1F1EF35F6300EB3AC7; 36 | remoteInfo = JQStickersView; 37 | }; 38 | 471E0C451EF35F6400EB3AC7 /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = 471E0C181EF35F6300EB3AC7 /* Project object */; 41 | proxyType = 1; 42 | remoteGlobalIDString = 471E0C1F1EF35F6300EB3AC7; 43 | remoteInfo = JQStickersView; 44 | }; 45 | /* End PBXContainerItemProxy section */ 46 | 47 | /* Begin PBXFileReference section */ 48 | 471E0C201EF35F6300EB3AC7 /* JQStickersView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JQStickersView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 471E0C241EF35F6300EB3AC7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 50 | 471E0C261EF35F6300EB3AC7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 51 | 471E0C271EF35F6300EB3AC7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 52 | 471E0C291EF35F6300EB3AC7 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 53 | 471E0C2A1EF35F6300EB3AC7 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 54 | 471E0C2D1EF35F6300EB3AC7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 471E0C2F1EF35F6400EB3AC7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 471E0C321EF35F6400EB3AC7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 471E0C341EF35F6400EB3AC7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 471E0C391EF35F6400EB3AC7 /* JQStickersViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JQStickersViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 471E0C3D1EF35F6400EB3AC7 /* JQStickersViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JQStickersViewTests.m; sourceTree = ""; }; 60 | 471E0C3F1EF35F6400EB3AC7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | 471E0C441EF35F6400EB3AC7 /* JQStickersViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JQStickersViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 471E0C481EF35F6400EB3AC7 /* JQStickersViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JQStickersViewUITests.m; sourceTree = ""; }; 63 | 471E0C4A1EF35F6400EB3AC7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 64 | 471E0C571EF35FA500EB3AC7 /* JQStickersView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JQStickersView.h; sourceTree = ""; }; 65 | 471E0C581EF35FA500EB3AC7 /* JQStickersView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JQStickersView.m; sourceTree = ""; }; 66 | 471E0C5B1EF3674800EB3AC7 /* testImage_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_1.png; sourceTree = ""; }; 67 | 471E0C5C1EF3674800EB3AC7 /* testImage_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_2.png; sourceTree = ""; }; 68 | 471E0C5D1EF3674800EB3AC7 /* testImage_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_3.png; sourceTree = ""; }; 69 | 471E0C5E1EF3674800EB3AC7 /* testImage_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_4.png; sourceTree = ""; }; 70 | 471E0C5F1EF3674800EB3AC7 /* testImage_5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_5.png; sourceTree = ""; }; 71 | 471E0C601EF3674800EB3AC7 /* testImage_6.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_6.png; sourceTree = ""; }; 72 | 471E0C611EF3674800EB3AC7 /* testImage_7.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_7.png; sourceTree = ""; }; 73 | 471E0C691EF369B100EB3AC7 /* JQViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JQViewController.h; sourceTree = ""; }; 74 | 471E0C6A1EF369B100EB3AC7 /* JQViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JQViewController.m; sourceTree = ""; }; 75 | 471E0C6C1EF36B9B00EB3AC7 /* testImage_8.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testImage_8.png; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | 471E0C1D1EF35F6300EB3AC7 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | 471E0C361EF35F6400EB3AC7 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | 471E0C411EF35F6400EB3AC7 /* Frameworks */ = { 94 | isa = PBXFrameworksBuildPhase; 95 | buildActionMask = 2147483647; 96 | files = ( 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | /* End PBXFrameworksBuildPhase section */ 101 | 102 | /* Begin PBXGroup section */ 103 | 471E0C171EF35F6300EB3AC7 = { 104 | isa = PBXGroup; 105 | children = ( 106 | 471E0C221EF35F6300EB3AC7 /* JQStickersView */, 107 | 471E0C3C1EF35F6400EB3AC7 /* JQStickersViewTests */, 108 | 471E0C471EF35F6400EB3AC7 /* JQStickersViewUITests */, 109 | 471E0C211EF35F6300EB3AC7 /* Products */, 110 | ); 111 | sourceTree = ""; 112 | }; 113 | 471E0C211EF35F6300EB3AC7 /* Products */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 471E0C201EF35F6300EB3AC7 /* JQStickersView.app */, 117 | 471E0C391EF35F6400EB3AC7 /* JQStickersViewTests.xctest */, 118 | 471E0C441EF35F6400EB3AC7 /* JQStickersViewUITests.xctest */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | 471E0C221EF35F6300EB3AC7 /* JQStickersView */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 471E0C5A1EF3674800EB3AC7 /* Images */, 127 | 471E0C561EF35F7D00EB3AC7 /* JQStickersView */, 128 | 471E0C261EF35F6300EB3AC7 /* AppDelegate.h */, 129 | 471E0C271EF35F6300EB3AC7 /* AppDelegate.m */, 130 | 471E0C291EF35F6300EB3AC7 /* ViewController.h */, 131 | 471E0C2A1EF35F6300EB3AC7 /* ViewController.m */, 132 | 471E0C691EF369B100EB3AC7 /* JQViewController.h */, 133 | 471E0C6A1EF369B100EB3AC7 /* JQViewController.m */, 134 | 471E0C2C1EF35F6300EB3AC7 /* Main.storyboard */, 135 | 471E0C2F1EF35F6400EB3AC7 /* Assets.xcassets */, 136 | 471E0C311EF35F6400EB3AC7 /* LaunchScreen.storyboard */, 137 | 471E0C341EF35F6400EB3AC7 /* Info.plist */, 138 | 471E0C231EF35F6300EB3AC7 /* Supporting Files */, 139 | ); 140 | path = JQStickersView; 141 | sourceTree = ""; 142 | }; 143 | 471E0C231EF35F6300EB3AC7 /* Supporting Files */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 471E0C241EF35F6300EB3AC7 /* main.m */, 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | 471E0C3C1EF35F6400EB3AC7 /* JQStickersViewTests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 471E0C3D1EF35F6400EB3AC7 /* JQStickersViewTests.m */, 155 | 471E0C3F1EF35F6400EB3AC7 /* Info.plist */, 156 | ); 157 | path = JQStickersViewTests; 158 | sourceTree = ""; 159 | }; 160 | 471E0C471EF35F6400EB3AC7 /* JQStickersViewUITests */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 471E0C481EF35F6400EB3AC7 /* JQStickersViewUITests.m */, 164 | 471E0C4A1EF35F6400EB3AC7 /* Info.plist */, 165 | ); 166 | path = JQStickersViewUITests; 167 | sourceTree = ""; 168 | }; 169 | 471E0C561EF35F7D00EB3AC7 /* JQStickersView */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 471E0C571EF35FA500EB3AC7 /* JQStickersView.h */, 173 | 471E0C581EF35FA500EB3AC7 /* JQStickersView.m */, 174 | ); 175 | path = JQStickersView; 176 | sourceTree = ""; 177 | }; 178 | 471E0C5A1EF3674800EB3AC7 /* Images */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 471E0C5B1EF3674800EB3AC7 /* testImage_1.png */, 182 | 471E0C5C1EF3674800EB3AC7 /* testImage_2.png */, 183 | 471E0C5D1EF3674800EB3AC7 /* testImage_3.png */, 184 | 471E0C5E1EF3674800EB3AC7 /* testImage_4.png */, 185 | 471E0C5F1EF3674800EB3AC7 /* testImage_5.png */, 186 | 471E0C601EF3674800EB3AC7 /* testImage_6.png */, 187 | 471E0C611EF3674800EB3AC7 /* testImage_7.png */, 188 | 471E0C6C1EF36B9B00EB3AC7 /* testImage_8.png */, 189 | ); 190 | path = Images; 191 | sourceTree = ""; 192 | }; 193 | /* End PBXGroup section */ 194 | 195 | /* Begin PBXNativeTarget section */ 196 | 471E0C1F1EF35F6300EB3AC7 /* JQStickersView */ = { 197 | isa = PBXNativeTarget; 198 | buildConfigurationList = 471E0C4D1EF35F6400EB3AC7 /* Build configuration list for PBXNativeTarget "JQStickersView" */; 199 | buildPhases = ( 200 | 471E0C1C1EF35F6300EB3AC7 /* Sources */, 201 | 471E0C1D1EF35F6300EB3AC7 /* Frameworks */, 202 | 471E0C1E1EF35F6300EB3AC7 /* Resources */, 203 | ); 204 | buildRules = ( 205 | ); 206 | dependencies = ( 207 | ); 208 | name = JQStickersView; 209 | productName = JQStickersView; 210 | productReference = 471E0C201EF35F6300EB3AC7 /* JQStickersView.app */; 211 | productType = "com.apple.product-type.application"; 212 | }; 213 | 471E0C381EF35F6400EB3AC7 /* JQStickersViewTests */ = { 214 | isa = PBXNativeTarget; 215 | buildConfigurationList = 471E0C501EF35F6400EB3AC7 /* Build configuration list for PBXNativeTarget "JQStickersViewTests" */; 216 | buildPhases = ( 217 | 471E0C351EF35F6400EB3AC7 /* Sources */, 218 | 471E0C361EF35F6400EB3AC7 /* Frameworks */, 219 | 471E0C371EF35F6400EB3AC7 /* Resources */, 220 | ); 221 | buildRules = ( 222 | ); 223 | dependencies = ( 224 | 471E0C3B1EF35F6400EB3AC7 /* PBXTargetDependency */, 225 | ); 226 | name = JQStickersViewTests; 227 | productName = JQStickersViewTests; 228 | productReference = 471E0C391EF35F6400EB3AC7 /* JQStickersViewTests.xctest */; 229 | productType = "com.apple.product-type.bundle.unit-test"; 230 | }; 231 | 471E0C431EF35F6400EB3AC7 /* JQStickersViewUITests */ = { 232 | isa = PBXNativeTarget; 233 | buildConfigurationList = 471E0C531EF35F6400EB3AC7 /* Build configuration list for PBXNativeTarget "JQStickersViewUITests" */; 234 | buildPhases = ( 235 | 471E0C401EF35F6400EB3AC7 /* Sources */, 236 | 471E0C411EF35F6400EB3AC7 /* Frameworks */, 237 | 471E0C421EF35F6400EB3AC7 /* Resources */, 238 | ); 239 | buildRules = ( 240 | ); 241 | dependencies = ( 242 | 471E0C461EF35F6400EB3AC7 /* PBXTargetDependency */, 243 | ); 244 | name = JQStickersViewUITests; 245 | productName = JQStickersViewUITests; 246 | productReference = 471E0C441EF35F6400EB3AC7 /* JQStickersViewUITests.xctest */; 247 | productType = "com.apple.product-type.bundle.ui-testing"; 248 | }; 249 | /* End PBXNativeTarget section */ 250 | 251 | /* Begin PBXProject section */ 252 | 471E0C181EF35F6300EB3AC7 /* Project object */ = { 253 | isa = PBXProject; 254 | attributes = { 255 | LastUpgradeCheck = 0830; 256 | ORGANIZATIONNAME = HaRi; 257 | TargetAttributes = { 258 | 471E0C1F1EF35F6300EB3AC7 = { 259 | CreatedOnToolsVersion = 8.3.3; 260 | DevelopmentTeam = K2K9REBKPR; 261 | ProvisioningStyle = Automatic; 262 | }; 263 | 471E0C381EF35F6400EB3AC7 = { 264 | CreatedOnToolsVersion = 8.3.3; 265 | DevelopmentTeam = WTB2BKP7UZ; 266 | ProvisioningStyle = Automatic; 267 | TestTargetID = 471E0C1F1EF35F6300EB3AC7; 268 | }; 269 | 471E0C431EF35F6400EB3AC7 = { 270 | CreatedOnToolsVersion = 8.3.3; 271 | DevelopmentTeam = WTB2BKP7UZ; 272 | ProvisioningStyle = Automatic; 273 | TestTargetID = 471E0C1F1EF35F6300EB3AC7; 274 | }; 275 | }; 276 | }; 277 | buildConfigurationList = 471E0C1B1EF35F6300EB3AC7 /* Build configuration list for PBXProject "JQStickersView" */; 278 | compatibilityVersion = "Xcode 3.2"; 279 | developmentRegion = English; 280 | hasScannedForEncodings = 0; 281 | knownRegions = ( 282 | en, 283 | Base, 284 | ); 285 | mainGroup = 471E0C171EF35F6300EB3AC7; 286 | productRefGroup = 471E0C211EF35F6300EB3AC7 /* Products */; 287 | projectDirPath = ""; 288 | projectRoot = ""; 289 | targets = ( 290 | 471E0C1F1EF35F6300EB3AC7 /* JQStickersView */, 291 | 471E0C381EF35F6400EB3AC7 /* JQStickersViewTests */, 292 | 471E0C431EF35F6400EB3AC7 /* JQStickersViewUITests */, 293 | ); 294 | }; 295 | /* End PBXProject section */ 296 | 297 | /* Begin PBXResourcesBuildPhase section */ 298 | 471E0C1E1EF35F6300EB3AC7 /* Resources */ = { 299 | isa = PBXResourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | 471E0C331EF35F6400EB3AC7 /* LaunchScreen.storyboard in Resources */, 303 | 471E0C671EF3674800EB3AC7 /* testImage_6.png in Resources */, 304 | 471E0C661EF3674800EB3AC7 /* testImage_5.png in Resources */, 305 | 471E0C651EF3674800EB3AC7 /* testImage_4.png in Resources */, 306 | 471E0C641EF3674800EB3AC7 /* testImage_3.png in Resources */, 307 | 471E0C621EF3674800EB3AC7 /* testImage_1.png in Resources */, 308 | 471E0C631EF3674800EB3AC7 /* testImage_2.png in Resources */, 309 | 471E0C6D1EF36B9B00EB3AC7 /* testImage_8.png in Resources */, 310 | 471E0C681EF3674800EB3AC7 /* testImage_7.png in Resources */, 311 | 471E0C301EF35F6400EB3AC7 /* Assets.xcassets in Resources */, 312 | 471E0C2E1EF35F6300EB3AC7 /* Main.storyboard in Resources */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 471E0C371EF35F6400EB3AC7 /* Resources */ = { 317 | isa = PBXResourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | 471E0C421EF35F6400EB3AC7 /* Resources */ = { 324 | isa = PBXResourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | }; 330 | /* End PBXResourcesBuildPhase section */ 331 | 332 | /* Begin PBXSourcesBuildPhase section */ 333 | 471E0C1C1EF35F6300EB3AC7 /* Sources */ = { 334 | isa = PBXSourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 471E0C2B1EF35F6300EB3AC7 /* ViewController.m in Sources */, 338 | 471E0C6B1EF369B100EB3AC7 /* JQViewController.m in Sources */, 339 | 471E0C591EF35FA500EB3AC7 /* JQStickersView.m in Sources */, 340 | 471E0C281EF35F6300EB3AC7 /* AppDelegate.m in Sources */, 341 | 471E0C251EF35F6300EB3AC7 /* main.m in Sources */, 342 | ); 343 | runOnlyForDeploymentPostprocessing = 0; 344 | }; 345 | 471E0C351EF35F6400EB3AC7 /* Sources */ = { 346 | isa = PBXSourcesBuildPhase; 347 | buildActionMask = 2147483647; 348 | files = ( 349 | 471E0C3E1EF35F6400EB3AC7 /* JQStickersViewTests.m in Sources */, 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | }; 353 | 471E0C401EF35F6400EB3AC7 /* Sources */ = { 354 | isa = PBXSourcesBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | 471E0C491EF35F6400EB3AC7 /* JQStickersViewUITests.m in Sources */, 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | }; 361 | /* End PBXSourcesBuildPhase section */ 362 | 363 | /* Begin PBXTargetDependency section */ 364 | 471E0C3B1EF35F6400EB3AC7 /* PBXTargetDependency */ = { 365 | isa = PBXTargetDependency; 366 | target = 471E0C1F1EF35F6300EB3AC7 /* JQStickersView */; 367 | targetProxy = 471E0C3A1EF35F6400EB3AC7 /* PBXContainerItemProxy */; 368 | }; 369 | 471E0C461EF35F6400EB3AC7 /* PBXTargetDependency */ = { 370 | isa = PBXTargetDependency; 371 | target = 471E0C1F1EF35F6300EB3AC7 /* JQStickersView */; 372 | targetProxy = 471E0C451EF35F6400EB3AC7 /* PBXContainerItemProxy */; 373 | }; 374 | /* End PBXTargetDependency section */ 375 | 376 | /* Begin PBXVariantGroup section */ 377 | 471E0C2C1EF35F6300EB3AC7 /* Main.storyboard */ = { 378 | isa = PBXVariantGroup; 379 | children = ( 380 | 471E0C2D1EF35F6300EB3AC7 /* Base */, 381 | ); 382 | name = Main.storyboard; 383 | sourceTree = ""; 384 | }; 385 | 471E0C311EF35F6400EB3AC7 /* LaunchScreen.storyboard */ = { 386 | isa = PBXVariantGroup; 387 | children = ( 388 | 471E0C321EF35F6400EB3AC7 /* Base */, 389 | ); 390 | name = LaunchScreen.storyboard; 391 | sourceTree = ""; 392 | }; 393 | /* End PBXVariantGroup section */ 394 | 395 | /* Begin XCBuildConfiguration section */ 396 | 471E0C4B1EF35F6400EB3AC7 /* Debug */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | ALWAYS_SEARCH_USER_PATHS = NO; 400 | CLANG_ANALYZER_NONNULL = YES; 401 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 402 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 403 | CLANG_CXX_LIBRARY = "libc++"; 404 | CLANG_ENABLE_MODULES = YES; 405 | CLANG_ENABLE_OBJC_ARC = YES; 406 | CLANG_WARN_BOOL_CONVERSION = YES; 407 | CLANG_WARN_CONSTANT_CONVERSION = YES; 408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 409 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 410 | CLANG_WARN_EMPTY_BODY = YES; 411 | CLANG_WARN_ENUM_CONVERSION = YES; 412 | CLANG_WARN_INFINITE_RECURSION = YES; 413 | CLANG_WARN_INT_CONVERSION = YES; 414 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 415 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 416 | CLANG_WARN_UNREACHABLE_CODE = YES; 417 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 419 | COPY_PHASE_STRIP = NO; 420 | DEBUG_INFORMATION_FORMAT = dwarf; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | ENABLE_TESTABILITY = YES; 423 | GCC_C_LANGUAGE_STANDARD = gnu99; 424 | GCC_DYNAMIC_NO_PIC = NO; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_OPTIMIZATION_LEVEL = 0; 427 | GCC_PREPROCESSOR_DEFINITIONS = ( 428 | "DEBUG=1", 429 | "$(inherited)", 430 | ); 431 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 432 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 433 | GCC_WARN_UNDECLARED_SELECTOR = YES; 434 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 435 | GCC_WARN_UNUSED_FUNCTION = YES; 436 | GCC_WARN_UNUSED_VARIABLE = YES; 437 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 438 | MTL_ENABLE_DEBUG_INFO = YES; 439 | ONLY_ACTIVE_ARCH = YES; 440 | SDKROOT = iphoneos; 441 | TARGETED_DEVICE_FAMILY = "1,2"; 442 | }; 443 | name = Debug; 444 | }; 445 | 471E0C4C1EF35F6400EB3AC7 /* Release */ = { 446 | isa = XCBuildConfiguration; 447 | buildSettings = { 448 | ALWAYS_SEARCH_USER_PATHS = NO; 449 | CLANG_ANALYZER_NONNULL = YES; 450 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 451 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 452 | CLANG_CXX_LIBRARY = "libc++"; 453 | CLANG_ENABLE_MODULES = YES; 454 | CLANG_ENABLE_OBJC_ARC = YES; 455 | CLANG_WARN_BOOL_CONVERSION = YES; 456 | CLANG_WARN_CONSTANT_CONVERSION = YES; 457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 458 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INFINITE_RECURSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 464 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 468 | COPY_PHASE_STRIP = NO; 469 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 470 | ENABLE_NS_ASSERTIONS = NO; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | GCC_C_LANGUAGE_STANDARD = gnu99; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 475 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 476 | GCC_WARN_UNDECLARED_SELECTOR = YES; 477 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 478 | GCC_WARN_UNUSED_FUNCTION = YES; 479 | GCC_WARN_UNUSED_VARIABLE = YES; 480 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 481 | MTL_ENABLE_DEBUG_INFO = NO; 482 | SDKROOT = iphoneos; 483 | TARGETED_DEVICE_FAMILY = "1,2"; 484 | VALIDATE_PRODUCT = YES; 485 | }; 486 | name = Release; 487 | }; 488 | 471E0C4E1EF35F6400EB3AC7 /* Debug */ = { 489 | isa = XCBuildConfiguration; 490 | buildSettings = { 491 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 492 | DEVELOPMENT_TEAM = K2K9REBKPR; 493 | INFOPLIST_FILE = JQStickersView/Info.plist; 494 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 495 | PRODUCT_BUNDLE_IDENTIFIER = HanJunqiang.JQStickersView; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | }; 498 | name = Debug; 499 | }; 500 | 471E0C4F1EF35F6400EB3AC7 /* Release */ = { 501 | isa = XCBuildConfiguration; 502 | buildSettings = { 503 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 504 | DEVELOPMENT_TEAM = K2K9REBKPR; 505 | INFOPLIST_FILE = JQStickersView/Info.plist; 506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 507 | PRODUCT_BUNDLE_IDENTIFIER = HanJunqiang.JQStickersView; 508 | PRODUCT_NAME = "$(TARGET_NAME)"; 509 | }; 510 | name = Release; 511 | }; 512 | 471E0C511EF35F6400EB3AC7 /* Debug */ = { 513 | isa = XCBuildConfiguration; 514 | buildSettings = { 515 | BUNDLE_LOADER = "$(TEST_HOST)"; 516 | DEVELOPMENT_TEAM = WTB2BKP7UZ; 517 | INFOPLIST_FILE = JQStickersViewTests/Info.plist; 518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 519 | PRODUCT_BUNDLE_IDENTIFIER = HanJunqiang.JQStickersViewTests; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JQStickersView.app/JQStickersView"; 522 | }; 523 | name = Debug; 524 | }; 525 | 471E0C521EF35F6400EB3AC7 /* Release */ = { 526 | isa = XCBuildConfiguration; 527 | buildSettings = { 528 | BUNDLE_LOADER = "$(TEST_HOST)"; 529 | DEVELOPMENT_TEAM = WTB2BKP7UZ; 530 | INFOPLIST_FILE = JQStickersViewTests/Info.plist; 531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 532 | PRODUCT_BUNDLE_IDENTIFIER = HanJunqiang.JQStickersViewTests; 533 | PRODUCT_NAME = "$(TARGET_NAME)"; 534 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JQStickersView.app/JQStickersView"; 535 | }; 536 | name = Release; 537 | }; 538 | 471E0C541EF35F6400EB3AC7 /* Debug */ = { 539 | isa = XCBuildConfiguration; 540 | buildSettings = { 541 | DEVELOPMENT_TEAM = WTB2BKP7UZ; 542 | INFOPLIST_FILE = JQStickersViewUITests/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 544 | PRODUCT_BUNDLE_IDENTIFIER = HanJunqiang.JQStickersViewUITests; 545 | PRODUCT_NAME = "$(TARGET_NAME)"; 546 | TEST_TARGET_NAME = JQStickersView; 547 | }; 548 | name = Debug; 549 | }; 550 | 471E0C551EF35F6400EB3AC7 /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | buildSettings = { 553 | DEVELOPMENT_TEAM = WTB2BKP7UZ; 554 | INFOPLIST_FILE = JQStickersViewUITests/Info.plist; 555 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 556 | PRODUCT_BUNDLE_IDENTIFIER = HanJunqiang.JQStickersViewUITests; 557 | PRODUCT_NAME = "$(TARGET_NAME)"; 558 | TEST_TARGET_NAME = JQStickersView; 559 | }; 560 | name = Release; 561 | }; 562 | /* End XCBuildConfiguration section */ 563 | 564 | /* Begin XCConfigurationList section */ 565 | 471E0C1B1EF35F6300EB3AC7 /* Build configuration list for PBXProject "JQStickersView" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 471E0C4B1EF35F6400EB3AC7 /* Debug */, 569 | 471E0C4C1EF35F6400EB3AC7 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 471E0C4D1EF35F6400EB3AC7 /* Build configuration list for PBXNativeTarget "JQStickersView" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 471E0C4E1EF35F6400EB3AC7 /* Debug */, 578 | 471E0C4F1EF35F6400EB3AC7 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 471E0C501EF35F6400EB3AC7 /* Build configuration list for PBXNativeTarget "JQStickersViewTests" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 471E0C511EF35F6400EB3AC7 /* Debug */, 587 | 471E0C521EF35F6400EB3AC7 /* Release */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | 471E0C531EF35F6400EB3AC7 /* Build configuration list for PBXNativeTarget "JQStickersViewUITests" */ = { 593 | isa = XCConfigurationList; 594 | buildConfigurations = ( 595 | 471E0C541EF35F6400EB3AC7 /* Debug */, 596 | 471E0C551EF35F6400EB3AC7 /* Release */, 597 | ); 598 | defaultConfigurationIsVisible = 0; 599 | defaultConfigurationName = Release; 600 | }; 601 | /* End XCConfigurationList section */ 602 | }; 603 | rootObject = 471E0C181EF35F6300EB3AC7 /* Project object */; 604 | } 605 | -------------------------------------------------------------------------------- /JQStickersView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /JQStickersView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /JQStickersView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | }, 6 | "images" : [ 7 | { 8 | "filename" : "Icon-40.png", 9 | "size" : "40x40", 10 | "idiom" : "ipad", 11 | "scale" : "1x" 12 | }, 13 | { 14 | "filename" : "Icon-40@2x.png", 15 | "size" : "40x40", 16 | "idiom" : "ipad", 17 | "scale" : "2x" 18 | }, 19 | { 20 | "filename" : "Icon-60@2x.png", 21 | "size" : "60x60", 22 | "idiom" : "iphone", 23 | "scale" : "2x" 24 | }, 25 | { 26 | "filename" : "Icon-72.png", 27 | "size" : "72x72", 28 | "idiom" : "ipad", 29 | "scale" : "1x" 30 | }, 31 | { 32 | "filename" : "Icon-72@2x.png", 33 | "size" : "72x72", 34 | "idiom" : "ipad", 35 | "scale" : "2x" 36 | }, 37 | { 38 | "filename" : "Icon-76.png", 39 | "size" : "76x76", 40 | "idiom" : "ipad", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "filename" : "Icon-76@2x.png", 45 | "size" : "76x76", 46 | "idiom" : "ipad", 47 | "scale" : "2x" 48 | }, 49 | { 50 | "filename" : "Icon-Small-50.png", 51 | "size" : "50x50", 52 | "idiom" : "ipad", 53 | "scale" : "1x" 54 | }, 55 | { 56 | "filename" : "Icon-Small-50@2x.png", 57 | "size" : "50x50", 58 | "idiom" : "ipad", 59 | "scale" : "2x" 60 | }, 61 | { 62 | "filename" : "Icon-Small.png", 63 | "size" : "29x29", 64 | "idiom" : "iphone", 65 | "scale" : "1x" 66 | }, 67 | { 68 | "filename" : "Icon-Small@2x.png", 69 | "size" : "29x29", 70 | "idiom" : "iphone", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "filename" : "Icon.png", 75 | "size" : "57x57", 76 | "idiom" : "iphone", 77 | "scale" : "1x" 78 | }, 79 | { 80 | "filename" : "Icon@2x.png", 81 | "size" : "57x57", 82 | "idiom" : "iphone", 83 | "scale" : "2x" 84 | }, 85 | { 86 | "filename" : "Icon-Small@3x.png", 87 | "size" : "29x29", 88 | "idiom" : "iphone", 89 | "scale" : "3x" 90 | }, 91 | { 92 | "filename" : "Icon-40@3x.png", 93 | "size" : "40x40", 94 | "idiom" : "iphone", 95 | "scale" : "3x" 96 | }, 97 | { 98 | "filename" : "Icon-60@3x.png", 99 | "size" : "60x60", 100 | "idiom" : "iphone", 101 | "scale" : "3x" 102 | }, 103 | { 104 | "filename" : "Icon-40@2x.png", 105 | "size" : "40x40", 106 | "idiom" : "iphone", 107 | "scale" : "2x" 108 | }, 109 | { 110 | "filename" : "Icon-Small.png", 111 | "size" : "29x29", 112 | "idiom" : "ipad", 113 | "scale" : "1x" 114 | }, 115 | { 116 | "filename" : "Icon-Small@2x.png", 117 | "size" : "29x29", 118 | "idiom" : "ipad", 119 | "scale" : "2x" 120 | }, 121 | { 122 | "filename" : "Icon-83.5@2x.png", 123 | "size" : "83.5x83.5", 124 | "idiom" : "ipad", 125 | "scale" : "2x" 126 | }, 127 | { 128 | "filename" : "NotificationIcon@2x.png", 129 | "size" : "20x20", 130 | "idiom" : "iphone", 131 | "scale" : "2x" 132 | }, 133 | { 134 | "filename" : "NotificationIcon@3x.png", 135 | "size" : "20x20", 136 | "idiom" : "iphone", 137 | "scale" : "3x" 138 | }, 139 | { 140 | "filename" : "NotificationIcon~ipad.png", 141 | "size" : "20x20", 142 | "idiom" : "ipad", 143 | "scale" : "1x" 144 | }, 145 | { 146 | "filename" : "NotificationIcon~ipad@2x.png", 147 | "size" : "20x20", 148 | "idiom" : "ipad", 149 | "scale" : "2x" 150 | } 151 | ] 152 | } -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-72.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/Icon@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon@3x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon~ipad.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon~ipad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Assets.xcassets/AppIcon.appiconset/NotificationIcon~ipad@2x.png -------------------------------------------------------------------------------- /JQStickersView/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } -------------------------------------------------------------------------------- /JQStickersView/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 | -------------------------------------------------------------------------------- /JQStickersView/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 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_1.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_2.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_3.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_4.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_5.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_6.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_7.png -------------------------------------------------------------------------------- /JQStickersView/Images/testImage_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/JQStickersView/Images/testImage_8.png -------------------------------------------------------------------------------- /JQStickersView/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /JQStickersView/JQStickersView/JQStickersView.h: -------------------------------------------------------------------------------- 1 | // 2 | // JQStickersView.h 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface JQStickersView : UIView 12 | 13 | /** 14 | Initialization JQStickersView 15 | 16 | @param frame frame description 17 | @param ballDiameter ballDiameter description 18 | @param imgArray imgArray description 19 | @return return value description 20 | */ 21 | - (instancetype)initWithFrame:(CGRect)frame andBallDiameter:(CGFloat)ballDiameter andImgArray:(NSMutableArray *)imgArray; 22 | 23 | 24 | // Stop DeviceMotionUpdate 25 | - (void)stopDeviceMotionUpdate; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /JQStickersView/JQStickersView/JQStickersView.m: -------------------------------------------------------------------------------- 1 | // 2 | // JQStickersView.m 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import "JQStickersView.h" 10 | #import 11 | 12 | @interface JQStickersView() 13 | 14 | @property (nonatomic, strong) NSMutableArray *ballsArray; 15 | @property (nonatomic, strong) UIGravityBehavior *gravityBeahvior; 16 | @property (nonatomic, strong) UIGravityBehavior *gravity; 17 | @property (nonatomic, strong) UICollisionBehavior *collision; 18 | @property (nonatomic, strong) UIDynamicAnimator *animator; 19 | @property (nonatomic, strong) UIDynamicItemBehavior *dynamicItemBehavior; 20 | @property (nonatomic) CMMotionManager *motionManager; 21 | 22 | @end 23 | @implementation JQStickersView 24 | 25 | - (instancetype)initWithFrame:(CGRect)frame andBallDiameter:(CGFloat)ballDiameter andImgArray:(NSMutableArray *)imgArray 26 | { 27 | if (self == [super initWithFrame:frame]) { 28 | if (!ballDiameter) { 29 | ballDiameter = 40; 30 | } 31 | [self initBallsViewAndImgArray:imgArray andBallDiameter:ballDiameter]; 32 | [self initGyroManager]; 33 | } 34 | return self; 35 | } 36 | 37 | - (void)initBallsViewAndImgArray:(NSMutableArray *)imgArr andBallDiameter:(CGFloat)ballDiameter 38 | { 39 | self.ballsArray = [NSMutableArray array]; 40 | 41 | //Add two balls, use the gravity characteristics and collision characteristics 42 | 43 | for (int i = 0; i 10 | 11 | @interface JQViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /JQStickersView/JQViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // JQViewController.m 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import "JQViewController.h" 10 | #import "JQStickersView.h" 11 | 12 | @interface JQViewController () 13 | 14 | @property (nonatomic, strong) UITableView *myTableView; 15 | 16 | @end 17 | 18 | @implementation JQViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | self.title = @"我的贴纸"; 24 | 25 | NSMutableArray *imgArray = [NSMutableArray arrayWithArray:@[@"testImage_1",@"testImage_2",@"testImage_3",@"testImage_4",@"testImage_5",@"testImage_6",@"testImage_7",@"testImage_8",]]; 26 | 27 | JQStickersView *jqStickersView = [[JQStickersView alloc]initWithFrame:CGRectMake(0, 20, [UIScreen mainScreen].bounds.size.width, 200) andBallDiameter:0 andImgArray:imgArray]; 28 | jqStickersView.backgroundColor = [UIColor cyanColor]; 29 | 30 | 31 | _myTableView = [[UITableView alloc]initWithFrame:self.view.frame style:UITableViewStylePlain]; 32 | _myTableView.delegate = self; 33 | _myTableView.dataSource = self; 34 | _myTableView.tableHeaderView = jqStickersView; 35 | [self.view addSubview:_myTableView]; 36 | } 37 | 38 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 39 | { 40 | return 1; 41 | } 42 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 43 | { 44 | return 15; 45 | } 46 | 47 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 48 | { 49 | static NSString *identify = @"myCell"; 50 | 51 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identify]; 52 | if (!cell) { 53 | cell = [[UITableViewCell alloc]initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:identify]; 54 | } 55 | cell.textLabel.text = @"这是一个贴纸用在tableView头部的测试"; 56 | return cell; 57 | } 58 | 59 | 60 | 61 | - (void)didReceiveMemoryWarning { 62 | [super didReceiveMemoryWarning]; 63 | // Dispose of any resources that can be recreated. 64 | } 65 | 66 | /* 67 | #pragma mark - Navigation 68 | 69 | // In a storyboard-based application, you will often want to do a little preparation before navigation 70 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 71 | // Get the new view controller using [segue destinationViewController]. 72 | // Pass the selected object to the new view controller. 73 | } 74 | */ 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /JQStickersView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /JQStickersView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "JQStickersView.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | // Do any additional setup after loading the view, typically from a nib. 21 | 22 | 23 | } 24 | 25 | - (void)viewWillAppear:(BOOL)animated 26 | { 27 | [super viewWillAppear:animated]; 28 | 29 | NSMutableArray *imgArray = [NSMutableArray arrayWithArray:@[@"testImage_1",@"testImage_2",@"testImage_3",@"testImage_4",@"testImage_5",@"testImage_6",@"testImage_7",@"testImage_8",@"testImage_1",@"testImage_2",@"testImage_3",@"testImage_4"]]; 30 | 31 | JQStickersView *jqStickersView = [[JQStickersView alloc]initWithFrame:CGRectMake(0, 80, [UIScreen mainScreen].bounds.size.width, 200) andBallDiameter:40 andImgArray:imgArray]; 32 | jqStickersView.backgroundColor = [UIColor cyanColor]; 33 | [self.view addSubview:jqStickersView]; 34 | 35 | // [jqStickersView stopDeviceMotionUpdate]; 36 | } 37 | 38 | - (void)didReceiveMemoryWarning { 39 | [super didReceiveMemoryWarning]; 40 | // Dispose of any resources that can be recreated. 41 | } 42 | 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /JQStickersView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // JQStickersView 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /JQStickersViewTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /JQStickersViewTests/JQStickersViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // JQStickersViewTests.m 3 | // JQStickersViewTests 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface JQStickersViewTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation JQStickersViewTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /JQStickersViewUITests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /JQStickersViewUITests/JQStickersViewUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // JQStickersViewUITests.m 3 | // JQStickersViewUITests 4 | // 5 | // Created by 韩俊强 on 2017/6/16. 6 | // Copyright © 2017年 HaRi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface JQStickersViewUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation JQStickersViewUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 HanJunqiang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JQStickersView 2 | 前言 3 | === 4 | JQStickersView: 仿摩拜单车我的贴纸,摩拜单车贴纸弹跳效果, 自定义摩拜单车贴纸效果, iOS开发者交流群: 446310206 5 | 6 | ![](https://github.com/xiaohange/JQStickersView/blob/master/v1.gif?raw=true) 7 | 8 | ## Installation 9 | 10 | Drag all source files under floder `JQStickersView` to your project. 11 | 12 | ## Usage 13 | 14 | ``` 15 | /** 16 | Initialization JQStickersView 17 | 18 | @param frame frame description 19 | @param ballDiameter ballDiameter description 20 | @param imgArray imgArray description 21 | @return return value description 22 | */ 23 | - (instancetype)initWithFrame:(CGRect)frame andBallDiameter:(CGFloat)ballDiameter andImgArray:(NSMutableArray *)imgArray; 24 | 25 | 26 | // Stop DeviceMotionUpdate 27 | - (void)stopDeviceMotionUpdate; 28 | ``` 29 | 30 | ``` 31 | #import "JQStickersView.h" 32 | // imageArray 33 | NSMutableArray *imgArray = [NSMutableArray arrayWithArray:@[@"testImage_1",@"testImage_2",@"testImage_3",@"testImage_4",@"testImage_5",@"testImage_6",@"testImage_7",@"testImage_8",@"testImage_1",@"testImage_2",@"testImage_3",@"testImage_4"]]; 34 | 35 | JQStickersView *jqStickersView = [[JQStickersView alloc]initWithFrame:CGRectMake(0, 80, [UIScreen mainScreen].bounds.size.width, 200) andBallDiameter:40 andImgArray:imgArray]; 36 | jqStickersView.backgroundColor = [UIColor cyanColor]; 37 | [self.view addSubview:jqStickersView]; 38 | 39 | // [jqStickersView stopDeviceMotionUpdate]; 40 | ``` 41 | 42 | ## Star 43 | 44 | [CSDN博客](http://blog.csdn.net/qq_31810357) iOS开发者交流群: 446310206 45 | 46 | Love is every every every star! Your support is my renewed motivation! 47 | 48 | 49 | ## License 50 | 51 | This code is distributed under the terms and conditions of the [MIT license](LICENSE). -------------------------------------------------------------------------------- /v1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohange/JQStickersView/111c64841ce4a2d333b80c65312a41b07a10ed4d/v1.gif --------------------------------------------------------------------------------