Ios 启用UINavigationBar.PrefersTargetItles时UIRefreshControl行为错误

Ios 启用UINavigationBar.PrefersTargetItles时UIRefreshControl行为错误,ios,uinavigationcontroller,uikit,uirefreshcontrol,Ios,Uinavigationcontroller,Uikit,Uirefreshcontrol,[iOS 12]当我在导航栏中使用大标题“拉入刷新”时,UIRefreshControl的指示灯无法按预期工作 如何获得正确的UIRefreshControl指示器行为和使用大标题?我错过什么了吗 (相关) 使用self.navigationController.navigationBar.prefersLargeTitles=true: 使用self.navigationController.navigationBar.prefersLargeTitles=false: 而不是table

[iOS 12]当我在导航栏中使用大标题“拉入刷新”时,
UIRefreshControl
的指示灯无法按预期工作

如何获得正确的
UIRefreshControl
指示器行为和使用大标题?我错过什么了吗

(相关)


使用self.navigationController.navigationBar.prefersLargeTitles=true:


使用self.navigationController.navigationBar.prefersLargeTitles=false:
而不是
tableView.tableHeaderView=refreshControl
tableView.addSubView(refreshControl)
你应该使用
tableView.refreshControl=refreshControl

没错。我正在做
tableView.addSubView(刷新控件)