Rodrigo Chavarria Rodrigo Chavarria - 23 days ago 6
iOS Question

How to know the current storyboard name in xamarin iOS?

How can I put in a string variable the name of the current storyboard
Ive got this for objective-c

UIStoryboard * storyboard = self.storyboard;
NSString * storyboardName = [storyboard valueForKey:@"name"];


but I have to pass it to Xamarin iOS

Answer

Xamarin.iOS:

var storyBoard = this.Storyboard;
var storyBoardName = storyBoard.ValueForKey(new NSString ("name"));