Precautions for use of the Rbstoryboardlink library
Demo Download: Https://github.com/MartinLi841538513/RBStoryboardLinkDemo
Operation Steps:
1, introduced Rbstoryboardlink library, I am here to use Pod Management library.
Added in the Podfile file: pod ' rbstoryboardlink ', ' ~> 0.1 ', then pod install or pod update
Note: If you do not know the use of Pod Management library, please refer to my previous article: http://www.cnblogs.com/MartinLi841538513/articles/3923145.html
There is also a way to directly download the Rbstoryboardlink library, manually add is also possible.
2, new Second.storyboard, put any viewcontroller inside.
I put a view1 as the logo. There is no practical use.
Note: The Second.storyboard and Third.storyboard here must have a viewcontroller is to set the is initial view Controller
3, in the Main.storyboard of a Viewcontroller do the following treatment
Analysis function:
1,class: Viewcontroller inherited Rbstoryboardlink So now this viewcontroller is equivalent to Uistoryboardsegue
2,storyboadname, not much to say, see the name of the idea
3,needstoplayoutguide is set to Yes. Otherwise there will be a repeat layout of the head.
4, if you want to jump to the specified VC, first find the Linke view controller, and then enter the identity of the view controller in the storyboard ID, as entered here: Navcontroller.
Next, add the Sceneidentifier field as in 3, and join the Sceneidentifier:navcontroller where link is needed, see arrows.
Rbstoryboardlink Library Usage Precautions-reproduced to---kun Martinli Blog