SplashScreen
您的新特性被深深埋藏在新 AppStore 中。SplashScreen 让这些特性对客户可见。
特性
SplashScreen 支持 1 个标题,最多 4 个 特色亮点(图标 + 文本)和 1 个 页脚(图标 + 文本,开发中)。您可以将其配置为多语言(本地化键)、多应用(应用键)、多版本(版本键)和多启动画面(键键 :-))。图标在本地设备上缓存以提高性能。
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
LaunchSplash.showSplashScreen(caller: self,
app: "marcelmendes.splashscreen",
version: "1.0",
key: "splash",
localization: "EN",
hostName: "www.shopcolecao.com/",
splashEndpoint: "retrieveSplash.php",
httpHeader: "https://",
imageHostName: "www.shopcolecao.com/",
imagePath: "Images/")
解释一些参数:hostName:您 retrieveSplash.php 部署的主机 URL。splashEndpoint:如果将 retrieveSplash.php 名称更改为其他名称,也请在此处更新。httpHeader:无需解释。imageHostName:图标可供检索的主机 URL。imagePath:图标可供检索的主机路径。
屏幕快照
服务器端要求
PHP 6 或更高版本和 MySQL。
安装
服务器端
- 在您的 MySQL 安装上运行 MySQL_Table 脚本
- 在 retrieveSplash.php 中编辑 MySQL 用户账户信息
- 将 retrieveSplash.php 放在您的 web 服务器目录中
建议:在将启动画面集成到您的应用之前,用 Postman 测试服务器端安装
PHP 和数据库文件位于 SplashScreen/Example/Server side 文件夹内。
iOS 端:SplashScreen 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod 'SplashScreen'
作者
Marcel Mendes Filho, [email protected]
许可
SplashScreen 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。