문제

I have a common viewController.m file that is meant to be shared between my different targets in Xcode 5. The idea is to have a common codebase with different skinnable UI, which means each target will have its own storyboard that reuse viewController.m file.

However, I have some some IBOutlets and IBActions in this .m file, could it be possible to link them to each different storyboard? I feel that it's unnecessary having to have a copy of viewController.m for each target.

도움이 되었습니까?

해결책

If you create a universal app for iPhone and iPad, you will see, that the ViewControllers are shared in two different storyboards. So that shouldn't be a problem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top