Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人使用过 nib2objc 将 .storyboard 文件转换为目标 c .m 文件?我见过几个地方说可以使用与 .xib 相同的命令来转换情节提要,但是当我尝试时没有输出。
您应该将该输出通过管道传输到后缀为.m. 你应该像这样使用这个工具:
.m
./nib2objc TestViewController.xib 2 > TestViewController.m
输出文件是TestViewController.m
TestViewController.m