我试图Title
在 a 中显示一个大的Navigation bar
,但背景清晰。向上滚动时,它将Navigation bar
具有模糊效果。
这看起来是正确的,但是,在滚动时,动画似乎被破坏了。此外,过渡有时会卡住:
我的代码如下:
UINavigationController
:
override func viewDidLoad() {
super.viewDidLoad()
if #available(iOS 13.0, *) {
self.navigationBar.prefersLargeTitles = true
let style = UINavigationBarAppearance()
style.configureWithDefaultBackground()
style.titleTextAttributes = [.font: UIFont.systemFont(ofSize: 18)]
self.navigationBar.standardAppearance = style
self.navigationBar.compactAppearance = style
//Configure Large Style
let largeStyle = UINavigationBarAppearance()
largeStyle.configureWithTransparentBackground()
largeStyle.largeTitleTextAttributes = [.font: UIFont.systemFont(ofSize: 28)]
self.navigationBar.scrollEdgeAppearance = largeStyle
}
}
Run Code Online (Sandbox Code Playgroud)
该UITableView
是内部的UINavigationController
。两者都是通过 segue 方式从故事板中提取的。
我在我的项目中使用JSF 2.2(Tomcat 7.42,Mojarra 2.2.1),我想使用p:calendar
Primefaces库.我已将primefaces-4.0.jar包含到我的项目库中,并添加 xmlns:p="http://primefaces.org/ui"
命名空间,一切看起来都不错.这是我的代码:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:body>
<p:calendar value="#{calendarBean.date2}" id="popupCal" />
</h:body>
</html>
Run Code Online (Sandbox Code Playgroud)
但是,在浏览器中,日历不会出现.标准h:
组件运行良好,但从primefaces
- 没有任何作用.
我知道PF 4.0应该支持JSF 2.2,但我有一些问题.我感谢任何帮助吗?