├── JXNoticeDemo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── jackxu.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── FDZ021.xcuserdatad │ └── xcschemes │ │ └── xcschememanagement.plist │ └── jackxu.xcuserdatad │ └── xcschemes │ ├── JXNoticeDemo.xcscheme │ └── xcschememanagement.plist ├── JXNoticeDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── chacha.imageset │ │ ├── Contents.json │ │ └── chacha.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── HYNoticeView.h ├── HYNoticeView.m ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m └── README.md /JXNoticeDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5DFB54A81D507AA900534F6E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DFB54A71D507AA900534F6E /* main.m */; }; 11 | 5DFB54AB1D507AA900534F6E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DFB54AA1D507AA900534F6E /* AppDelegate.m */; }; 12 | 5DFB54AE1D507AA900534F6E /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DFB54AD1D507AA900534F6E /* ViewController.m */; }; 13 | 5DFB54B11D507AA900534F6E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5DFB54AF1D507AA900534F6E /* Main.storyboard */; }; 14 | 5DFB54B31D507AA900534F6E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5DFB54B21D507AA900534F6E /* Assets.xcassets */; }; 15 | 5DFB54B61D507AA900534F6E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5DFB54B41D507AA900534F6E /* LaunchScreen.storyboard */; }; 16 | 5DFB54BF1D507B0600534F6E /* HYNoticeView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DFB54BD1D507B0600534F6E /* HYNoticeView.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 5DFB54A31D507AA900534F6E /* JXNoticeDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JXNoticeDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 5DFB54A71D507AA900534F6E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 22 | 5DFB54A91D507AA900534F6E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 23 | 5DFB54AA1D507AA900534F6E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 24 | 5DFB54AC1D507AA900534F6E /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 25 | 5DFB54AD1D507AA900534F6E /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 26 | 5DFB54B01D507AA900534F6E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | 5DFB54B21D507AA900534F6E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | 5DFB54B51D507AA900534F6E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | 5DFB54B71D507AA900534F6E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | 5DFB54BD1D507B0600534F6E /* HYNoticeView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HYNoticeView.m; sourceTree = ""; }; 31 | 5DFB54BE1D507B0600534F6E /* HYNoticeView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HYNoticeView.h; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 5DFB54A01D507AA900534F6E /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 5DFB549A1D507AA900534F6E = { 46 | isa = PBXGroup; 47 | children = ( 48 | 5DFB54A51D507AA900534F6E /* JXNoticeDemo */, 49 | 5DFB54A41D507AA900534F6E /* Products */, 50 | ); 51 | sourceTree = ""; 52 | }; 53 | 5DFB54A41D507AA900534F6E /* Products */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 5DFB54A31D507AA900534F6E /* JXNoticeDemo.app */, 57 | ); 58 | name = Products; 59 | sourceTree = ""; 60 | }; 61 | 5DFB54A51D507AA900534F6E /* JXNoticeDemo */ = { 62 | isa = PBXGroup; 63 | children = ( 64 | 5DFB54BD1D507B0600534F6E /* HYNoticeView.m */, 65 | 5DFB54BE1D507B0600534F6E /* HYNoticeView.h */, 66 | 5DFB54A91D507AA900534F6E /* AppDelegate.h */, 67 | 5DFB54AA1D507AA900534F6E /* AppDelegate.m */, 68 | 5DFB54AC1D507AA900534F6E /* ViewController.h */, 69 | 5DFB54AD1D507AA900534F6E /* ViewController.m */, 70 | 5DFB54AF1D507AA900534F6E /* Main.storyboard */, 71 | 5DFB54B21D507AA900534F6E /* Assets.xcassets */, 72 | 5DFB54B41D507AA900534F6E /* LaunchScreen.storyboard */, 73 | 5DFB54B71D507AA900534F6E /* Info.plist */, 74 | 5DFB54A61D507AA900534F6E /* Supporting Files */, 75 | ); 76 | path = JXNoticeDemo; 77 | sourceTree = ""; 78 | }; 79 | 5DFB54A61D507AA900534F6E /* Supporting Files */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 5DFB54A71D507AA900534F6E /* main.m */, 83 | ); 84 | name = "Supporting Files"; 85 | sourceTree = ""; 86 | }; 87 | /* End PBXGroup section */ 88 | 89 | /* Begin PBXNativeTarget section */ 90 | 5DFB54A21D507AA900534F6E /* JXNoticeDemo */ = { 91 | isa = PBXNativeTarget; 92 | buildConfigurationList = 5DFB54BA1D507AA900534F6E /* Build configuration list for PBXNativeTarget "JXNoticeDemo" */; 93 | buildPhases = ( 94 | 5DFB549F1D507AA900534F6E /* Sources */, 95 | 5DFB54A01D507AA900534F6E /* Frameworks */, 96 | 5DFB54A11D507AA900534F6E /* Resources */, 97 | ); 98 | buildRules = ( 99 | ); 100 | dependencies = ( 101 | ); 102 | name = JXNoticeDemo; 103 | productName = JXNoticeDemo; 104 | productReference = 5DFB54A31D507AA900534F6E /* JXNoticeDemo.app */; 105 | productType = "com.apple.product-type.application"; 106 | }; 107 | /* End PBXNativeTarget section */ 108 | 109 | /* Begin PBXProject section */ 110 | 5DFB549B1D507AA900534F6E /* Project object */ = { 111 | isa = PBXProject; 112 | attributes = { 113 | LastUpgradeCheck = 0730; 114 | ORGANIZATIONNAME = BFMobile; 115 | TargetAttributes = { 116 | 5DFB54A21D507AA900534F6E = { 117 | CreatedOnToolsVersion = 7.3; 118 | }; 119 | }; 120 | }; 121 | buildConfigurationList = 5DFB549E1D507AA900534F6E /* Build configuration list for PBXProject "JXNoticeDemo" */; 122 | compatibilityVersion = "Xcode 3.2"; 123 | developmentRegion = English; 124 | hasScannedForEncodings = 0; 125 | knownRegions = ( 126 | en, 127 | Base, 128 | ); 129 | mainGroup = 5DFB549A1D507AA900534F6E; 130 | productRefGroup = 5DFB54A41D507AA900534F6E /* Products */; 131 | projectDirPath = ""; 132 | projectRoot = ""; 133 | targets = ( 134 | 5DFB54A21D507AA900534F6E /* JXNoticeDemo */, 135 | ); 136 | }; 137 | /* End PBXProject section */ 138 | 139 | /* Begin PBXResourcesBuildPhase section */ 140 | 5DFB54A11D507AA900534F6E /* Resources */ = { 141 | isa = PBXResourcesBuildPhase; 142 | buildActionMask = 2147483647; 143 | files = ( 144 | 5DFB54B61D507AA900534F6E /* LaunchScreen.storyboard in Resources */, 145 | 5DFB54B31D507AA900534F6E /* Assets.xcassets in Resources */, 146 | 5DFB54B11D507AA900534F6E /* Main.storyboard in Resources */, 147 | ); 148 | runOnlyForDeploymentPostprocessing = 0; 149 | }; 150 | /* End PBXResourcesBuildPhase section */ 151 | 152 | /* Begin PBXSourcesBuildPhase section */ 153 | 5DFB549F1D507AA900534F6E /* Sources */ = { 154 | isa = PBXSourcesBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | 5DFB54AE1D507AA900534F6E /* ViewController.m in Sources */, 158 | 5DFB54AB1D507AA900534F6E /* AppDelegate.m in Sources */, 159 | 5DFB54A81D507AA900534F6E /* main.m in Sources */, 160 | 5DFB54BF1D507B0600534F6E /* HYNoticeView.m in Sources */, 161 | ); 162 | runOnlyForDeploymentPostprocessing = 0; 163 | }; 164 | /* End PBXSourcesBuildPhase section */ 165 | 166 | /* Begin PBXVariantGroup section */ 167 | 5DFB54AF1D507AA900534F6E /* Main.storyboard */ = { 168 | isa = PBXVariantGroup; 169 | children = ( 170 | 5DFB54B01D507AA900534F6E /* Base */, 171 | ); 172 | name = Main.storyboard; 173 | sourceTree = ""; 174 | }; 175 | 5DFB54B41D507AA900534F6E /* LaunchScreen.storyboard */ = { 176 | isa = PBXVariantGroup; 177 | children = ( 178 | 5DFB54B51D507AA900534F6E /* Base */, 179 | ); 180 | name = LaunchScreen.storyboard; 181 | sourceTree = ""; 182 | }; 183 | /* End PBXVariantGroup section */ 184 | 185 | /* Begin XCBuildConfiguration section */ 186 | 5DFB54B81D507AA900534F6E /* Debug */ = { 187 | isa = XCBuildConfiguration; 188 | buildSettings = { 189 | ALWAYS_SEARCH_USER_PATHS = NO; 190 | CLANG_ANALYZER_NONNULL = YES; 191 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 192 | CLANG_CXX_LIBRARY = "libc++"; 193 | CLANG_ENABLE_MODULES = YES; 194 | CLANG_ENABLE_OBJC_ARC = YES; 195 | CLANG_WARN_BOOL_CONVERSION = YES; 196 | CLANG_WARN_CONSTANT_CONVERSION = YES; 197 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 198 | CLANG_WARN_EMPTY_BODY = YES; 199 | CLANG_WARN_ENUM_CONVERSION = YES; 200 | CLANG_WARN_INT_CONVERSION = YES; 201 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 202 | CLANG_WARN_UNREACHABLE_CODE = YES; 203 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 204 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 205 | COPY_PHASE_STRIP = NO; 206 | DEBUG_INFORMATION_FORMAT = dwarf; 207 | ENABLE_STRICT_OBJC_MSGSEND = YES; 208 | ENABLE_TESTABILITY = YES; 209 | GCC_C_LANGUAGE_STANDARD = gnu99; 210 | GCC_DYNAMIC_NO_PIC = NO; 211 | GCC_NO_COMMON_BLOCKS = YES; 212 | GCC_OPTIMIZATION_LEVEL = 0; 213 | GCC_PREPROCESSOR_DEFINITIONS = ( 214 | "DEBUG=1", 215 | "$(inherited)", 216 | ); 217 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 218 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 219 | GCC_WARN_UNDECLARED_SELECTOR = YES; 220 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 221 | GCC_WARN_UNUSED_FUNCTION = YES; 222 | GCC_WARN_UNUSED_VARIABLE = YES; 223 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 224 | MTL_ENABLE_DEBUG_INFO = YES; 225 | ONLY_ACTIVE_ARCH = YES; 226 | SDKROOT = iphoneos; 227 | TARGETED_DEVICE_FAMILY = "1,2"; 228 | }; 229 | name = Debug; 230 | }; 231 | 5DFB54B91D507AA900534F6E /* Release */ = { 232 | isa = XCBuildConfiguration; 233 | buildSettings = { 234 | ALWAYS_SEARCH_USER_PATHS = NO; 235 | CLANG_ANALYZER_NONNULL = YES; 236 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 237 | CLANG_CXX_LIBRARY = "libc++"; 238 | CLANG_ENABLE_MODULES = YES; 239 | CLANG_ENABLE_OBJC_ARC = YES; 240 | CLANG_WARN_BOOL_CONVERSION = YES; 241 | CLANG_WARN_CONSTANT_CONVERSION = YES; 242 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 243 | CLANG_WARN_EMPTY_BODY = YES; 244 | CLANG_WARN_ENUM_CONVERSION = YES; 245 | CLANG_WARN_INT_CONVERSION = YES; 246 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 247 | CLANG_WARN_UNREACHABLE_CODE = YES; 248 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 249 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 250 | COPY_PHASE_STRIP = NO; 251 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 252 | ENABLE_NS_ASSERTIONS = NO; 253 | ENABLE_STRICT_OBJC_MSGSEND = YES; 254 | GCC_C_LANGUAGE_STANDARD = gnu99; 255 | GCC_NO_COMMON_BLOCKS = YES; 256 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 257 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 258 | GCC_WARN_UNDECLARED_SELECTOR = YES; 259 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 260 | GCC_WARN_UNUSED_FUNCTION = YES; 261 | GCC_WARN_UNUSED_VARIABLE = YES; 262 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 263 | MTL_ENABLE_DEBUG_INFO = NO; 264 | SDKROOT = iphoneos; 265 | TARGETED_DEVICE_FAMILY = "1,2"; 266 | VALIDATE_PRODUCT = YES; 267 | }; 268 | name = Release; 269 | }; 270 | 5DFB54BB1D507AA900534F6E /* Debug */ = { 271 | isa = XCBuildConfiguration; 272 | buildSettings = { 273 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 274 | INFOPLIST_FILE = JXNoticeDemo/Info.plist; 275 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 276 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 277 | PRODUCT_BUNDLE_IDENTIFIER = cn.edu.cqut.JXNoticeDemo; 278 | PRODUCT_NAME = "$(TARGET_NAME)"; 279 | }; 280 | name = Debug; 281 | }; 282 | 5DFB54BC1D507AA900534F6E /* Release */ = { 283 | isa = XCBuildConfiguration; 284 | buildSettings = { 285 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 286 | INFOPLIST_FILE = JXNoticeDemo/Info.plist; 287 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 288 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 289 | PRODUCT_BUNDLE_IDENTIFIER = cn.edu.cqut.JXNoticeDemo; 290 | PRODUCT_NAME = "$(TARGET_NAME)"; 291 | }; 292 | name = Release; 293 | }; 294 | /* End XCBuildConfiguration section */ 295 | 296 | /* Begin XCConfigurationList section */ 297 | 5DFB549E1D507AA900534F6E /* Build configuration list for PBXProject "JXNoticeDemo" */ = { 298 | isa = XCConfigurationList; 299 | buildConfigurations = ( 300 | 5DFB54B81D507AA900534F6E /* Debug */, 301 | 5DFB54B91D507AA900534F6E /* Release */, 302 | ); 303 | defaultConfigurationIsVisible = 0; 304 | defaultConfigurationName = Release; 305 | }; 306 | 5DFB54BA1D507AA900534F6E /* Build configuration list for PBXNativeTarget "JXNoticeDemo" */ = { 307 | isa = XCConfigurationList; 308 | buildConfigurations = ( 309 | 5DFB54BB1D507AA900534F6E /* Debug */, 310 | 5DFB54BC1D507AA900534F6E /* Release */, 311 | ); 312 | defaultConfigurationIsVisible = 0; 313 | defaultConfigurationName = Release; 314 | }; 315 | /* End XCConfigurationList section */ 316 | }; 317 | rootObject = 5DFB549B1D507AA900534F6E /* Project object */; 318 | } 319 | -------------------------------------------------------------------------------- /JXNoticeDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /JXNoticeDemo.xcodeproj/project.xcworkspace/xcuserdata/jackxu.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dolacmeng/JXNoticeView/a78cec7e9703481073dd5a5720bce883b8a812fe/JXNoticeDemo.xcodeproj/project.xcworkspace/xcuserdata/jackxu.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /JXNoticeDemo.xcodeproj/xcuserdata/FDZ021.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | JXNoticeDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 5DFB54A21D507AA900534F6E 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /JXNoticeDemo.xcodeproj/xcuserdata/jackxu.xcuserdatad/xcschemes/JXNoticeDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /JXNoticeDemo.xcodeproj/xcuserdata/jackxu.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | JXNoticeDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 5DFB54A21D507AA900534F6E 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /JXNoticeDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // JXNoticeDemo 4 | // 5 | // Created by JackXu on 16/8/2. 6 | // Copyright © 2016年 BFMobile. 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 | -------------------------------------------------------------------------------- /JXNoticeDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // JXNoticeDemo 4 | // 5 | // Created by JackXu on 16/8/2. 6 | // Copyright © 2016年 BFMobile. 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 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 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 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /JXNoticeDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /JXNoticeDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /JXNoticeDemo/Assets.xcassets/chacha.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "chacha.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /JXNoticeDemo/Assets.xcassets/chacha.imageset/chacha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dolacmeng/JXNoticeView/a78cec7e9703481073dd5a5720bce883b8a812fe/JXNoticeDemo/Assets.xcassets/chacha.imageset/chacha.png -------------------------------------------------------------------------------- /JXNoticeDemo/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 | -------------------------------------------------------------------------------- /JXNoticeDemo/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 | -------------------------------------------------------------------------------- /JXNoticeDemo/HYNoticeView.h: -------------------------------------------------------------------------------- 1 | // 2 | // HYNoticeView.h 3 | // HXSD 4 | // 5 | // Created by JackXu on 16/4/30. 6 | // Copyright © 2016年 BFMobile. All rights reserved. 7 | // 8 | 9 | #import 10 | #define SCREENW [UIScreen mainScreen].bounds.size.width 11 | #define SCREENH [UIScreen mainScreen].bounds.size.height 12 | 13 | typedef void(^closeClickBlock)(void); 14 | typedef void(^noticeClickBlock)(void); 15 | 16 | typedef NS_ENUM(NSInteger, HYNoticeViewPosition) { 17 | HYNoticeViewPositionTop, 18 | HYNoticeViewPositionLeft, 19 | HYNoticeViewPositionBottom, 20 | HYNoticeViewPositionRight, 21 | HYNoticeViewPositionTopLeft, 22 | HYNoticeViewPositionTopRight, 23 | HYNoticeViewPositionBottomRight 24 | }; 25 | 26 | typedef NS_ENUM(NSInteger, HYNoticeType) { 27 | HYNoticeTypeTestTop, 28 | HYNoticeTypeTestCall, 29 | HYNoticeTypeTestSearch, 30 | HYNoticeTypeTestHot 31 | }; 32 | 33 | @interface HYNoticeView : UIView 34 | 35 | @property (nonatomic,weak) UIButton *closeButton; 36 | @property (nonatomic,weak) UIButton *viewButton; 37 | @property (nonatomic,assign) HYNoticeViewPosition position; 38 | @property (nonatomic,assign) HYNoticeType type; 39 | @property (nonatomic,strong) NSString *text; 40 | @property (nonatomic,copy) closeClickBlock closeClick; 41 | @property (nonatomic,copy) noticeClickBlock noticeClick; 42 | 43 | /** 初始化 44 | @param frame 气泡的frame 45 | @param text 文字 46 | @param position 尖角位置 47 | 48 | @return An initialized view object. 49 | */ 50 | -(instancetype)initWithFrame:(CGRect)frame text:(NSString*)text position:(HYNoticeViewPosition)position; 51 | 52 | /** 初始化 53 | @param frame 气泡的frame 54 | @param text 文字 55 | @param position 尖角位置 56 | @param closeBlock 点击关闭按钮的block 57 | @param noticeBlock 点击整个气泡的block 58 | 59 | @return An initialized view object. 60 | */ 61 | -(instancetype)initWithFrame:(CGRect)frame text:(NSString*)text position:(HYNoticeViewPosition)position closeBlock:(void(^)())closeBlock noticeBlock:(void(^)())noticeBlock; 62 | 63 | 64 | /** 显示notiveView 65 | @param type 用于区分的别名 66 | @param view 父view 67 | */ 68 | -(void)showType:(HYNoticeType)type inView:(UIView*)view; 69 | 70 | /** 显示notiveView 71 | @param type 用于区分的别名 72 | @param view 父view 73 | @param after 延时执行 74 | @param duration 动画执行时长 75 | @param options 动画效果 76 | */ 77 | -(void)showType:(HYNoticeType)type inView:(UIView*)view after:(CGFloat)after duration:(CGFloat)duration options:(UIViewAnimationOptions)options; 78 | 79 | 80 | /** 隐藏notiveView 81 | @param type 需要隐藏的notice的别名 82 | */ 83 | +(void)hideNoticeWithType:(NSInteger)type; 84 | 85 | @end 86 | -------------------------------------------------------------------------------- /JXNoticeDemo/HYNoticeView.m: -------------------------------------------------------------------------------- 1 | // 2 | // HYNoticeView.m 3 | // HXSD 4 | // 5 | // Created by JackXu on 16/4/30. 6 | // Copyright © 2016年 BFMobile. All rights reserved. 7 | // 8 | 9 | #import "HYNoticeView.h" 10 | 11 | #define SIDELENGTH 10.0 12 | #define TRIANGLE 5.0 13 | #define NoticeColor [UIColor colorWithRed:248.0/255.0 green:77.0/255.0 blue:51.0/255.0 alpha:1] 14 | static NSMutableArray *noticeArray; 15 | 16 | @implementation HYNoticeView 17 | 18 | #pragma mark - private method 19 | - (void)drawRect:(CGRect)rect{ 20 | //1.获得处理的上下文 21 | CGContextRef ctx = UIGraphicsGetCurrentContext(); 22 | //画三角形 23 | [self drawTriangle:ctx andRect:rect]; 24 | //画矩形 25 | [self drawRectangle:ctx andRect:rect]; 26 | CGContextClosePath(ctx); 27 | } 28 | 29 | -(void)drawTriangle:(CGContextRef)ctx andRect:(CGRect)rect{ 30 | [NoticeColor set]; 31 | CGContextMoveToPoint(ctx, (rect.size.width-10.0)*0.5, 0.0); 32 | 33 | CGPoint sPoints[3];//坐标点 34 | 35 | switch (_position) { 36 | case HYNoticeViewPositionTop: 37 | sPoints[0] =CGPointMake(rect.size.width*0.5, 0);//坐标1 38 | sPoints[1] =CGPointMake((rect.size.width-SIDELENGTH)*0.5, TRIANGLE);//坐标2 39 | sPoints[2] =CGPointMake((rect.size.width+SIDELENGTH)*0.5, TRIANGLE);//坐标3 40 | break; 41 | case HYNoticeViewPositionBottom: 42 | sPoints[0] =CGPointMake(rect.size.width*0.5, rect.size.height);//坐标1 43 | sPoints[1] =CGPointMake((rect.size.width-SIDELENGTH)*0.5, rect.size.height-TRIANGLE);//坐标2 44 | sPoints[2] =CGPointMake((rect.size.width+SIDELENGTH)*0.5, rect.size.height-TRIANGLE);//坐标3 45 | break; 46 | case HYNoticeViewPositionLeft: 47 | sPoints[0] =CGPointMake(0, rect.size.height*0.5);//坐标1 48 | sPoints[1] =CGPointMake(SIDELENGTH, rect.size.height*0.5-TRIANGLE);//坐标2 49 | sPoints[2] =CGPointMake(SIDELENGTH, rect.size.height*0.5+TRIANGLE);//坐标3 50 | break; 51 | case HYNoticeViewPositionRight: 52 | sPoints[0] =CGPointMake(rect.size.width, rect.size.height*0.5);//坐标1 53 | sPoints[1] =CGPointMake((rect.size.width-TRIANGLE), (rect.size.height-TRIANGLE)*0.5);//坐标2 54 | sPoints[2] =CGPointMake((rect.size.width-TRIANGLE), (rect.size.height+TRIANGLE)*0.5);//坐标3 55 | break; 56 | case HYNoticeViewPositionTopLeft: 57 | sPoints[0] =CGPointMake(rect.size.width*0.25, 0);//坐标1 58 | sPoints[1] =CGPointMake((rect.size.width*0.25-SIDELENGTH*0.5), TRIANGLE);//坐标2 59 | sPoints[2] =CGPointMake((rect.size.width*0.25+SIDELENGTH*0.5), TRIANGLE);//坐标3 60 | break; 61 | case HYNoticeViewPositionTopRight: 62 | sPoints[0] =CGPointMake(rect.size.width - 30, 0);//坐标1 63 | sPoints[1] =CGPointMake((rect.size.width-30-SIDELENGTH*0.5), TRIANGLE);//坐标2 64 | sPoints[2] =CGPointMake((rect.size.width-30+SIDELENGTH*0.5), TRIANGLE);//坐标3 65 | break; 66 | case HYNoticeViewPositionBottomRight: 67 | sPoints[0] =CGPointMake(rect.size.width - 30, rect.size.height);//坐标1 68 | sPoints[1] =CGPointMake((rect.size.width-30-SIDELENGTH*0.5), rect.size.height-TRIANGLE);//坐标2 69 | sPoints[2] =CGPointMake((rect.size.width-30+SIDELENGTH*0.5), rect.size.height-TRIANGLE);//坐标3 70 | break; 71 | default: 72 | break; 73 | } 74 | 75 | CGContextAddLines(ctx, sPoints, 3);//添加线 76 | CGContextDrawPath(ctx, kCGPathFillStroke); //根据坐标绘制路径 77 | } 78 | 79 | -(void)drawRectangle:(CGContextRef)ctx andRect:(CGRect)rect{ 80 | CGRect rectangleRect; 81 | switch (_position) { 82 | case HYNoticeViewPositionTop: 83 | case HYNoticeViewPositionTopLeft: 84 | case HYNoticeViewPositionTopRight: 85 | rectangleRect = CGRectMake(0, TRIANGLE, rect.size.width, rect.size.height-TRIANGLE); 86 | break; 87 | case HYNoticeViewPositionBottom: 88 | case HYNoticeViewPositionBottomRight: 89 | rectangleRect = CGRectMake(0, 0, rect.size.width, rect.size.height-TRIANGLE); 90 | break; 91 | case HYNoticeViewPositionLeft: 92 | rectangleRect = CGRectMake(TRIANGLE, 0, rect.size.width-TRIANGLE, rect.size.height); 93 | break; 94 | case HYNoticeViewPositionRight: 95 | rectangleRect = CGRectMake(0, 0, rect.size.width-TRIANGLE, rect.size.height); 96 | break; 97 | default: 98 | break; 99 | } 100 | 101 | UIBezierPath *roundedRect = [UIBezierPath bezierPathWithRoundedRect:rectangleRect cornerRadius:2.0f]; 102 | [NoticeColor setFill]; 103 | [roundedRect fillWithBlendMode:kCGBlendModeNormal alpha:1]; 104 | } 105 | 106 | -(void)execute:(void(^)())method after:(double)seconds{ 107 | dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, seconds * NSEC_PER_SEC); 108 | dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ 109 | method(); 110 | }); 111 | } 112 | 113 | #pragma mark - public method 114 | -(instancetype)initWithFrame:(CGRect)frame text:(NSString*)text position:(HYNoticeViewPosition)position closeBlock:(void(^)())closeBlock noticeBlock:(void(^)())noticeBlock{ 115 | if (self = [super initWithFrame:frame]) { 116 | self.backgroundColor = [UIColor clearColor]; 117 | 118 | _position = position; 119 | _closeClick = closeBlock; 120 | _noticeClick = noticeBlock; 121 | 122 | //文字 123 | UILabel *label = [[UILabel alloc] init]; 124 | label.text = text; 125 | label.numberOfLines = 0; 126 | label.textColor = [UIColor whiteColor]; 127 | label.font = [UIFont systemFontOfSize:15]; 128 | label.textAlignment = NSTextAlignmentCenter; 129 | [self addSubview:label]; 130 | 131 | // 132 | UIButton *viewButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)]; 133 | [viewButton addTarget:self action:@selector(clickNotice:) forControlEvents:UIControlEventTouchUpInside]; 134 | [self addSubview:viewButton]; 135 | _viewButton = viewButton; 136 | 137 | //关闭按钮 138 | UIButton *closeButton = [[UIButton alloc] init]; 139 | [closeButton setImage:[UIImage imageNamed:@"chacha"] forState:UIControlStateNormal]; 140 | [closeButton addTarget:self action:@selector(clickClose:) forControlEvents:UIControlEventTouchUpInside]; 141 | [self addSubview:closeButton]; 142 | _closeButton = closeButton; 143 | 144 | switch (position) { 145 | case HYNoticeViewPositionTop: 146 | case HYNoticeViewPositionTopLeft: 147 | case HYNoticeViewPositionTopRight: 148 | label.frame = CGRectMake(0, 4, frame.size.width, frame.size.height); 149 | closeButton.frame = CGRectMake(frame.size.width-16, 5, 14, 14); 150 | break; 151 | case HYNoticeViewPositionLeft: 152 | label.frame = CGRectMake(2, 0, frame.size.width, frame.size.height); 153 | closeButton.frame = CGRectMake(frame.size.width-16, 3, 14, 14); 154 | break; 155 | case HYNoticeViewPositionBottom: 156 | case HYNoticeViewPositionBottomRight: 157 | label.frame = CGRectMake(0, -2, frame.size.width, frame.size.height); 158 | closeButton.frame = CGRectMake(frame.size.width-16, 3, 14, 14); 159 | break; 160 | case HYNoticeViewPositionRight: 161 | label.frame = CGRectMake(-2, 0, frame.size.width, frame.size.height); 162 | closeButton.frame = CGRectMake(frame.size.width-20, 3, 14, 14); 163 | break; 164 | 165 | default: 166 | break; 167 | } 168 | 169 | NSRange rang = [text rangeOfString:@"查看方法"]; 170 | if (rang.location!=NSNotFound) { 171 | closeButton.hidden = YES; 172 | NSMutableAttributedString *attString = [[NSMutableAttributedString alloc] initWithString:text]; 173 | [attString addAttribute:NSUnderlineStyleAttributeName 174 | value:[NSNumber numberWithInt:NSUnderlineStyleSingle] 175 | range:rang]; 176 | [attString addAttribute:NSFontAttributeName 177 | value:[UIFont fontWithName:@"Palatino-Roman" size:15.0] 178 | range:rang]; 179 | label.attributedText = attString; 180 | } 181 | 182 | } 183 | return self; 184 | } 185 | 186 | -(instancetype)initWithFrame:(CGRect)frame text:(NSString*)text position:(HYNoticeViewPosition)position{ 187 | return [self initWithFrame:frame text:text position:position closeBlock:nil noticeBlock:nil]; 188 | } 189 | 190 | -(void)showType:(HYNoticeType)type inView:(UIView*)view { 191 | [view addSubview:self]; 192 | } 193 | 194 | -(void)showType:(HYNoticeType)type inView:(UIView*)view closeBlock:(void(^)())closeBlock noticeBlock:(void(^)())noticeBlock{ 195 | _closeClick = closeBlock; 196 | _noticeClick = noticeBlock; 197 | } 198 | 199 | 200 | -(void)showType:(HYNoticeType)type inView:(UIView*)view after:(CGFloat)after duration:(CGFloat)duration options:(UIViewAnimationOptions)options{ 201 | _type = type; 202 | [view addSubview:self]; 203 | self.hidden = YES; 204 | [self execute:^{ 205 | [UIView transitionWithView:self duration:duration options:options animations:^{ 206 | self.hidden = NO; 207 | } completion:nil]; 208 | } after:after]; 209 | 210 | self.tag = type; 211 | if (noticeArray == nil) { 212 | noticeArray = [NSMutableArray array]; 213 | } 214 | 215 | for (int i = 0; i 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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /JXNoticeDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // JXNoticeDemo 4 | // 5 | // Created by JackXu on 16/8/2. 6 | // Copyright © 2016年 BFMobile. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /JXNoticeDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // JXNoticeDemo 4 | // 5 | // Created by JackXu on 16/8/2. 6 | // Copyright © 2016年 BFMobile. All rights reserved. 7 | // Blog:http://blog.csdn.net/dolacmeng/article/details/52094808 8 | // 9 | 10 | #import "ViewController.h" 11 | #import "HYNoticeView.h" 12 | 13 | @interface ViewController () 14 | 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad { 20 | [super viewDidLoad]; 21 | //顶部提示,带有弯曲掉下的动画 22 | HYNoticeView *noticeTop = [[HYNoticeView alloc] initWithFrame:CGRectMake(50, 66, 250, 40) text:@"这里可以查询全城婚礼人的档期哦!" position:HYNoticeViewPositionTop]; 23 | [noticeTop showType:HYNoticeTypeTestTop inView:self.view after:1.0 duration:0.6 options:UIViewAnimationOptionTransitionCurlDown]; 24 | noticeTop.closeClick = ^(){ 25 | NSLog(@"closeClick!!"); 26 | }; 27 | 28 | //电话提示,带有右边翻转动画,并且有加减速的效果 29 | HYNoticeView *noticeCall = [[HYNoticeView alloc] initWithFrame:CGRectMake(SCREENW-110, SCREENH-100, 100, 40) text:@"一键拨号" position:HYNoticeViewPositionBottomRight]; 30 | [noticeCall showType:HYNoticeTypeTestCall inView:self.view after:1.0 duration:1.0 options:UIViewAnimationOptionCurveEaseInOut|UIViewAnimationOptionTransitionFlipFromLeft]; 31 | 32 | //查找档期提示,从底部翻转的动画效果,自定义点击事件 33 | HYNoticeView *noticeSearch = [[HYNoticeView alloc] initWithFrame:CGRectMake(120, 200, 160, 40) text:@"快速查找团队档期" position:HYNoticeViewPositionRight closeBlock:^{ 34 | NSLog(@"点击了关闭按钮"); 35 | } noticeBlock:^{ 36 | NSLog(@"点击了Notice"); 37 | }]; 38 | [noticeSearch showType:HYNoticeTypeTestSearch inView:self.view after:1.0 duration:1.0 options:UIViewAnimationOptionTransitionFlipFromBottom]; 39 | 40 | //热门提示(不带动画) 41 | HYNoticeView *noticeHot = [[HYNoticeView alloc] initWithFrame:CGRectMake(112, 300, 190, 40) text:@"怎样进入热门? 查看方法" position:HYNoticeViewPositionLeft]; 42 | [noticeHot showType:HYNoticeTypeTestHot inView:self.view]; 43 | 44 | //隐藏指定别名的notice 45 | [self performSelector:@selector(hide) withObject:nil afterDelay:4.0]; 46 | } 47 | 48 | -(void)hide{ 49 | [HYNoticeView hideNoticeWithType:HYNoticeTypeTestTop]; 50 | } 51 | 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /JXNoticeDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // JXNoticeDemo 4 | // 5 | // Created by JackXu on 16/8/2. 6 | // Copyright © 2016年 BFMobile. 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JXNoticeView 2 | 3 | 效果和用法:http://blog.csdn.net/dolacmeng/article/details/52094808 4 | ![image](http://img.blog.csdn.net/20160802154833494?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast) 5 | --------------------------------------------------------------------------------