public void OnStatusBarTouchesBegan(NSSet touches, UIEvent evt) { CoreUtility.ExecuteMethod("OnStatusBarTouchesBegan", delegate() { UIViewController topController = UIApplication.SharedApplication.GetRootVisibleController(); BaseUIViewController baseController = topController as BaseUIViewController; if (baseController != null) { baseController.ScrollToTop(); } }); }
public CoreCollectionSource HideTabsWhenScrollingDown(BaseUIViewController host, UITabBarController controller, CGRect?originalTabBarFrame = null) { if (controller == null) { return(this); } this.AutoHideControllerInstance = host; this.AutoHideTabBarController = controller; CGRect frame = this.AutoHideTabBarController.TabBar.Frame; this.AutoHideTabBarController.TabBar.Layer.AnchorPoint = new CGPoint(0, 0); this.AutoHideTabBarController.TabBar.Frame = frame; if (originalTabBarFrame.HasValue) { this.OriginalTabBarFrame = originalTabBarFrame; } else { this.OriginalTabBarFrame = this.AutoHideTabBarController.TabBar.Frame; } return(this); }