首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Appledoc和自定义链接描述

Appledoc和自定义链接描述
EN

Stack Overflow用户
提问于 2012-12-14 22:38:04
回答 2查看 994关注 0票数 0

如果我做了什么蠢事,我会提前道歉。但我无法确定我的错误。

下面是代码(头文件):

代码语言:javascript
复制
#import <Foundation/Foundation.h>

/**
 Represents a cover image. It can be a game cover, a trophy image or even a player avatar.

 It has three properties:

 - **NSMutableString uri**: the link that points to the image.
  - E.g.: [A Skyrim trophy image URI] (http://bit.ly/skyrimTrophyImageUri ).

 - **UIImage img**: the actual image. That is, the bitmap.
  - E.g.: 1A9A3826FB6B42C1B08824655A740620BC8E75F9.PNG

 - **ResolutionType resolution**: the image resolution, which comes from an enumeration of this class called __"ResolutionType"__.
  - E.g: SEN_75x41

*/

@interface NHOCCover : NSObject

结果:

我遵循这些说明(在“自定义链接描述”部分)。

我也试过:

  • 天边奖杯图片URI (无空格)
  • 天边奖杯图片URI (有空格)

也许Xcode把文件搞砸了?关于第二个相关问题,您知道是否有一种方法可以阻止Xcode在编辑器中自动创建链接?(我的意思是将字体颜色更改为蓝色并在其下划线)。

提前谢谢。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-12-15 06:58:56

已经在github上回答了您,并在这里添加了这个答案,供来到这个页面的人使用:这是v2的已知问题,将在3.0中修复。请参阅https://github.com/tomaz/appledoc/issues/180

票数 4
EN

Stack Overflow用户

发布于 2013-08-29 10:11:37

代码语言:javascript
复制
/**
 Represents a cover image. It can be a game cover, a trophy image or even a player avatar.

 It has three properties:

 - **NSMutableString uri**: the link that points to the image.
  - E.g.: [A Skyrim trophy image URI] (http://bit.ly/skyrimTrophyImageUri ).

 - **UIImage img**: the actual image. That is, the bitmap.
  - E.g.: 1A9A3826FB6B42C1B08824655A740620BC8E75F9.PNG

 - **ResolutionType resolution**: the image resolution, which comes from an enumeration of this class called __"ResolutionType"__.
  - E.g: SEN_75x41

*/

在您的代码中,在Skyrim标志图像URI和(http://bit.ly/skyrimTrophyImageUri )之间有一个空格,我猜是空间导致了问题。

正确的格式是

代码语言:javascript
复制
[A Skyrim trophy image URI](http://bit.ly/skyrimTrophyImageUri )

我希望这能解决你的问题。我知道9个月后,你问了这个问题,但这可能会对其他有类似问题的人有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13887240

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档