ios - How can I segue between two xib files in xamarin? -
i'm new xamarin , i'm working way through app. i'm using mvvmcross. how can segue between 2 views on button click? use storyboard that's simple control+click , drag hook up. second thought like:
performsegue(identifier, sender);
however, there's no way me set identifier when open xib edit interface.
so have 2 xib files, homeview.xib , secondview.xib. 2 c sharp files homeview.cs , secondview.cs. homeview has button , have control+dragged ibaction c sharp , have method buttonpressed() wish segue secondview.
partial void buttonpressed (foundation.nsobject sender){ //insert code segue secondview. }
thanks :)
edit: found piece of code:
nsbundle.mainbundle.loadnib("secondview", this, null);
which works, segue still preferable looks nicer
create 2 segues in storyboard , set different identifier each segue.
then use
this.performsegue("targetsegueidentifier", this);
Comments
Post a Comment