ios - How do I get the string name of a storyboard? -
i've looked @ following guidance no avail:
how know current storyboard name?
i trying open specific view controller using storyboard remote notification based off of following answer:
present specific view controller in didreceiveremotenotification swift
let mvc = mainviewcontroller() let storyboardnamestring = mvc.storyboard. //<-proposed solution? nothing auto complete shows let storyboard = uistoryboard(name: storyboardnamestring , bundle: nil) storyboard.instantiateviewcontrollerwithidentifier("some-view-controller")
i've checked "file inspector", "quick inspector", "identity inspector", "attributes inspector", "size inspector", , "connections inspector" no luck there either.
when selected view controller on storyboard , tried find name of current storyboard able find view's storyboard id, not name of storyboard however.
any solution appreciated, otherwise try find way accomplish task.
my colleague informed me it's name of file without ".storyboard" extension. regards.
Comments
Post a Comment