无需重新启动 Xcode 即可更改代码

发布于 2024-11-12 05:50:29 字数 394 浏览 1 评论 0原文

我听说 Xcode 有一个选项可以更改代码并将其直接附加到现有版本(例如在模拟器中运行)。 如果您必须在 iOS 应用程序中移动多个屏幕才能到达与以前相同的位置(菜单 1 -> 菜单 2 -> 菜单 3 -> 内容),那么

  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)

  1. Could you please give me some info - what is the name of that process?
  2. How can I do it?
  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百思不得你姐 2024-11-19 05:50:29

该功能被称为“修复并继续”,但由于年久失修,已从 Xcode 4 中删除。

That feature was called "fix and continue", but it fell into disrepair and was removed from Xcode 4.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文