使用JTSplashView创建美丽的启动画面。
有两种方法可以将JTSplashView库添加到您的项目中。将其作为普通库添加或通过CocoaPods安装。
pod 'JTSplashView'
您也可以用以下方式快速尝试示例项目:
pod try JTSplashView
库需要目标iOS 7.0及以上版。
仅设计用于纵向模式。
它被设计为单例,因此您不必关心实例。只需调用 splashViewWithBackgroundColor(, circleColor:, circleSize:)
并在适当的时间使用 finish()
关闭它。
JTSplashView.splashViewWithBackgroundColor(nil, circleColor: nil, circleSize: nil)
后使用以下方式关闭:
JTSplashView.finishWithCompletion { () -> Void in
UIApplication.sharedApplication().statusBarHidden = false
}
此库由 Jakub Truhlar 开源。
MIT许可证 (MIT) 版权 © 2015 Jakub Truhlar