简体   繁体   中英

Cocoapods with Storyboard Scene

I am working in two apps, in which one of the ViewController does the same purpose in two apps(Like Help/about page). These two projects uses storyboard and uses two view controllers. Now, I am planning to integrate Cocoapods for my projects, so that I can reuse the same class/ViewController. My question is "Is there a way to reuse this ViewController in two or more different projects using Cocoapods without breaking/modifying a storyboard ?" If yes, how to do that? If not possible, how can I reuse the same view with two different apps?

If I understood your question correctly, I had the same issue a few weeks ago.

RBStoryboardLink was the solution: https://github.com/rob-brown/RBStoryboardLink

This library lets you connect Storyboards and works fine with projects from cocoapod.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM