XLPagerTabStrip
XLPagerTabStrip copied to clipboard
How do i send data from parentview to childviewcontroller again and again after pagerstripviewcontroller and childviewcontroller are loaded .
Before submitting issues ...
- Make sure you are using XLPagerTabStrip latest release or master branch version.
- Make sure your Xcode version is the latest stable one.
- Check if the issue was already reported or fixed. We add labels to each issue in order to easily find related issues. If you found a match add a brief comment "I have the same problem" or "+1".
- Please do not use the issue tracker for personal support requests. Stack Overflow is a better place for that where a wider community can help you!
When submitting issues, please provide the following information to help maintainers to fix the problem faster:
- Environment: XLPagerTabStrip, Xcode and iOS version you are using.
- In case of reporting errors, provide Xcode console output of stack trace or code compilation error.
- Any other additional detail such as example code that you think it would be useful to understand, reproduce and solve the problem.
How do I communicate from parent to child view controller once a view is loaded? I want to communicate from parent to child without notification any idea?. from child to parent I can use protocol and delegates
@ShoaibPathan did you get any solution for this? I tried assigning delegate but it is not working.
override func updateIndicator(for viewController: PagerTabStripViewController, fromIndex: Int, toIndex: Int) {
print(viewController)
print("fromIndex: \(fromIndex), toIndex: \(toIndex)")
}
Well, My bad. I was using progressive style so I have to use PagerTabStripIsProgressiveDelegate
For progressive, PagerTabStripIsProgressiveDelegate
func updateIndicator(for viewController: PagerTabStripViewController, fromIndex: Int, toIndex: Int, withProgressPercentage progressPercentage: CGFloat, indexWasChanged: Bool)
+++++++
For normal, PagerTabStripDelegate:
func updateIndicator(for viewController: PagerTabStripViewController, fromIndex: Int, toIndex: Int)
Well, these methods are called multiple times, so you have to be careful if you're making a network request.