我们计划在我们的应用程序中加入智能横幅。
有没有可能定制智能横幅。例如,隐藏close按钮,这样用户就永远不能关闭它。
我尝试了jquery插件(https://github.com/jasny/jquery.smartbanner) .But,它显示了实际的苹果渲染的横幅和一个空格(在自定义横幅的长度中)。(注意:我调整了运行iOS: 6+的代码)
我现在正在努力解决这个空白问题,并使用js隐藏默认的横幅。
任何关于实现定制的帮助都将不胜感激!
详细信息:
iOS版本: iOS 7.1.2
测试设备: iPhone 5s
如果需要任何其他细节,请让我知道。
提前感谢!
发布于 2014-07-29 16:00:28
jQuery智能横幅插件有以下默认选项,我建议您使用这些参数:
$.smartbanner({
...
daysHidden: 0, // Duration to hide the banner after being closed (0 = always show banner)
//you may use this one as well
daysReminder: 0, // Duration to hide the banner after "VIEW" is clicked *separate from when the close button is clicked* (0 = always show banner)
...
})这将使您的横幅始终显示。Source on GitHub
https://stackoverflow.com/questions/25010444
复制相似问题