我有下一个问题:
在我的项目中,我有下一个:
UItabbarController
....Some UINAvigationControllers。
*(1) UINavigationController
UIViewController (UItableView) - When select one row it goes to...(by push) to:
UIViewController (UItableView) - And here the same than before, for each row i open a new tableview
我的tabbar控制器里有两个标签栏。我现在在第二个标签栏中,点击“完成”按钮后,标签栏控制器需要切换到第一个标签,并自动刷新其中的表格视图。
我能够执行第一部分。
//Switch to the first tab's view
self.tabBarController.selectedViewController
= [self.tabBarController.viewControllers objectAtIndex:0];
然而,我需要一些关于如何在切换后立即刷新第一个视图的表视图的建议。任何建议都是非常感谢的。
编辑:更新的要求
注意:我不希
我有一页上面有粘稠的菜单栏。这个页面上有一些内部链接。当我单击内部链接时,页面滚动和具有hashcode id的元素移动到顶部。但标题隐藏在粘性菜单中。因此,在加载窗口时,我编写了js代码,如下所示:
if(window.location.hash) {
var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
console.log (hash);
if(hash && $("#