How do you call to a segue, only if a if statement is true ?
When you call PerformSegue, will it then automatically call PrepareForSegue, just as if the segue was from the button?
I'm assuming you're talking about a button here, but it can easily be applied to anything. Connect the segue from your ViewController, NOT from your button. Name the segue, e.g. ItemDetailsSegue and connect an action outlet from OnTouchUpInside of your button. Then in the implementation of action, you can do something like:
i got it to work
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies