Appledoc和自定义链接描述

时间:2012-12-14 22:38:04

标签: ios xcode markdown appledoc

如果我做了些蠢事,我很抱歉。但我无法确定我的错误。

这是代码(头文件):

#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

结果:

enter image description here

I'm following these instructions (at "Custom link descriptions" section).

我也尝试过:

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

提前致谢。

2 个答案:

答案 0 :(得分:4)

已经在github上回答了你,在这里添加了答案,对于来到这个页面的人来说:这是已知的v2问题,将在3.0中修复。见https://github.com/tomaz/appledoc/issues/180

答案 1 :(得分:0)

/**
 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

*/

在你的代码中,[天际战利品图片URI]和(http://bit.ly/skyrimTrophyImageUri)之间有一个空格,我想这个空间导致了这个问题。

格式正确

[A Skyrim trophy image URI](http://bit.ly/skyrimTrophyImageUri )

我希望这可以解决你的问题。我知道它已经过了9个月,你问过这个问题,但这可能有助于其他有类似问题的人。