xlpagertabstrip

XLPagerTabStrip ButtonBar sticks behind Navigation Bar

ⅰ亾dé卋堺 提交于 2020-01-07 07:24:22
问题 I'm using XLPagerTabStrip in a swift 3 application, I use the default ButtonBar and everything works fine but the bar is hidden when I have a navigation bar enabled like this: If I hide the navigation bar, it shows like this: How do I get it below the navigation bar not behind it, because I need the navigation bar right there? import UIKit import XLPagerTabStrip class DesignersController: ButtonBarPagerTabStripViewController { override func viewDidLoad() { buttonBarView.backgroundColor =

How to refresh parentViewContoller from childViewContoller in swift?

坚强是说给别人听的谎言 提交于 2020-01-06 04:40:27
问题 I used XLPagerTabStrip for TabBar Refer. Now I am doing some functionality in childViewController based upon that I need to update that value to UILabel in parent ViewController . For Example: I am getting the values in childviewcontroller now I want to update that value in parentviewcontroller as mention in the below screenshot. 回答1: If you don't want to use delegate then here is other solution CallBack In child view controller create callback function like below var callback: ((_ count: Int

Prefer swipe to delete over a competing swipe gesture

天大地大妈咪最大 提交于 2019-12-12 03:23:20
问题 So I have a tableViewController inside a XLPagerTabStrip view controller, basically a pod which allows me to swipe between child view controllers left and right. The problem is that I want to disable the view controller scroll when the user swipes on a cell on my tableView. In this case I want him to be able to see the delete option, instead of changing the viewController itself. Is this possible? Currently, I see the delete button only if I swipe really, really fast and in all other

Swift Swipe Navigation Table Views

独自空忆成欢 提交于 2019-12-02 05:08:34
问题 I'm trying to do a swipe navigation between different tableViewControllers in swift. I managed to do it with viewControllers with the following code : import UIKit class ViewController: UIViewController { @IBOutlet weak var scrollView: UIScrollView! override func viewDidLoad() { super.viewDidLoad() } var scrollViewAdded = false override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() if !scrollViewAdded { self.loadSrollView() self.scrollViewAdded = true } } func loadSrollView() {

Swift Swipe Navigation Table Views

徘徊边缘 提交于 2019-12-02 01:25:47
I'm trying to do a swipe navigation between different tableViewControllers in swift. I managed to do it with viewControllers with the following code : import UIKit class ViewController: UIViewController { @IBOutlet weak var scrollView: UIScrollView! override func viewDidLoad() { super.viewDidLoad() } var scrollViewAdded = false override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() if !scrollViewAdded { self.loadSrollView() self.scrollViewAdded = true } } func loadSrollView() { self.scrollView.pagingEnabled = true let vc0 = self.storyboard?

smooth transition between 2 scrollviews

*爱你&永不变心* 提交于 2019-12-01 10:39:45
As you can see below I have a ViewController(lets call it viewController A) that contains a container view with a ViewController inside(lets call that ViewController B). So whats happening below is when you scroll up ViewController A's scrollview is being used until the tabview hits the top. Once the tabview hits the top the scrollview for ViewController B takes over and starts scrolling through the container View. And when you scroll back down viewController B's scrollview goes until the top is visible and then viewController A's scrollview takes over to pull the header view back down. The