Open alexeyRuin opened 7 years ago
Hi @alexeyRuin , Try adding the init() method in the other ViewController.
Hello, first of all sorry for long delay. init() didn't work for me.
I'm still having 'Missing argument' error.
@alexeyRuin,
I had the same issue when creating my instance of my SJSegmentedViewController. Initially, I instantiated it with: var leftVC = SWPProfileViewController() . What helped me was to instead create the instance as an optional: var leftVC: SWPProfileViewController?
I hope this helps!
Any Help for this Error ? , its still ask for coder
Hello,
I have a menu item that should do select second segment in another ViewController where ProfileGlobalVC is. I tried to do it like:
ProfileGlobalVC().setSelectedSegmentAt(2, animated: true)
Xcode gives an error:Then I tried to do it that way: in my ProfileGlobalVC I've created a simple func:
func listen() { self.setSelectedSegmentAt(2, animated: true) }
And then triedProfileGlobalVC().listen()
Still getting the same error:My SJSegmentedViewController code is: