简体   繁体   English

如何为iOS Storyboard对象ID保持一致的值

[英]How to keep a consistent value for iOS Storyboard object id

I'm experiencing issue when merging branches in my iOS app. 在我的iOS应用程序中合并分支时遇到问题。 The storyboard object ID difference causes conflicts every single time. 故事板对象ID的差异每次都会引起冲突。 Is there anyway we can define constant values in the storyboard XML so that the object ID can be consistent ? 无论如何,我们可以在情节提要XML中定义常量值,以使对象ID保持一致吗?

I've been trying to find the XML tag reference for storyboard but cant find any. 我一直在尝试为情节提要找到XML标签参考,但找不到任何参考。

Any advice will be appreciated. 任何建议将被认真考虑。 Thanks guys! 多谢你们!

First of all, Not sure why thats happening. 首先,不确定为什么会这样。 I've never had an issue like that. 我从来没有像那样的问题。

But you can add tags when you click on an object in storyboard(for example a button) go to its attribute inspector and under the "View" category, you can add a tag. 但是,当您单击情节提要中的对象(例如按钮)进入其属性检查器时,可以添加标签,并且可以在“查看”类别下添加标签。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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