Xcode 开发人员文档链接悬停跳转到顶部开发人员、跳转到、文档、链接

2023-09-07 22:19:42 作者:強勢硬漢,!

I don't know how I got into this state, but the Xcode documentation window has been exhibiting this strange behavior of "jumping to top" whenever I hover over a link in one of the doc files.

For example, I'll be scrolling down to, say, the methods of a Class Reference, and as soon as I hover over one of them, the doc window jumps right back to the top.

如何使用Xcode的Targets来管理开发和生产版本的构建

Has anyone else encountered this? If so, is there a fix for within Xcode?

Meanwhile, opening up the doc in a browser works around the problem.

解决方案

Thanks for the replies everyone!

Meanwhile, I have just stumbled upon a workaround.

To preface, I have to clarify/correct two things for my particular case:

The problem only occurs when hovering over the links in the Tasks section. The jump doesn't necessarily go to the top-of-page. Rather, it goes to wherever the original landing spot was when you opened the doc. (In URL parlance this is the fragment, e.g. #//apple_ref...).

On to the workaround:

In the Xcode doc viewer (and even in Safari), there should be a "Jump To..." drop-down in the "developer-documentation" window located to the right (and as a peer) of the "table of contents" expander when this problem occurs. You only need click on it once, dismiss it, and then the jumping problem goes away!