gpt4 book ai didi

ios - 如何在 iOS 中查看已声明变量的描述

转载 作者:行者123 更新时间:2023-11-29 02:35:54 25 4
gpt4 key购买 nike

我有一个关于 iOS 编码风格的简单问题。假设有人正在实现代码,但他/她没有为变量提供任何正确的命名约定。

我想看看,他/她使用这个变量的主要目的是什么,同时在该变量名称上按下 Alt + 鼠标指针。但它没有正确显示。

我的输出是:

enter image description here

我需要的输出是:

enter image description here

我的问题是如何获得如上图所示的声明描述

谢谢 :)

最佳答案

记下在 .h 文件中声明此变量的位置

CLLocationManager *locationManager;

这样写:

/**
For getting Current location
*/
CLLocationManager *locationManager;

然后你就可以看到你的要求了。

关于ios - 如何在 iOS 中查看已声明变量的描述,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26374566/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com