无需重新启动 Xcode 即可更改代码
我听说 Xcode 有一个选项可以更改代码并将其直接附加到现有版本(例如在模拟器中运行)。 如果您必须在 iOS 应用程序中移动多个屏幕才能到达与以前相同的位置(菜单 1 -> 菜单 2 -> 菜单 3 -> 内容),那么
- 您能给我一些信息吗?该进程的名称?
- 我该怎么做呢?
- 它到底如何运作? - 假设我有两个 UIViewController - 一个是表格(我们称之为 MenuVC) - 对象列表,一旦选择了单元格,第二个 UIV.C。 (我们称之为 DetailVC)显示该对象的详细信息。我是否必须返回到 MenuVC,使用 Xcode 执行一些魔术并通过按单元格再次显示 DetailVC?或者 DetailVC 会自行更改但记住我使用 MenuVC 传递的属性吗?
I've heard that the Xcode has an option to change the code and attach it directly to the existing build (run in the simulator for example).
It would be great if you have to move through many screens in the iOS application to get to the same location as before (menu1 -> menu2 -> menu3 -> content)
- Could you please give me some info - what is the name of that process?
- How can I do it?
- How does it really work? - Let's say I've two UIViewControllers - one is with the table (let's call it MenuVC) - list of objects and once the cell was selected the second UIV.C. (let's call it DetailVC) is displayed showing details of that object. Will I've to go back to the MenuVC, do some magic tricks with Xcode and display the DetailVC again by pressing the cell? Or will the DetailVC be changed by itself but remembering the properties I've passed using MenuVC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该功能被称为“修复并继续”,但由于年久失修,已从 Xcode 4 中删除。
That feature was called "fix and continue", but it fell into disrepair and was removed from Xcode 4.