2012-12-14 86 views
0

如果我正在做一些愚蠢的事情,我提前抱歉。但我無法識別我的錯誤。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在其編輯器中自動創建鏈接? (我的意思是將字體顏色更改爲藍色並加下劃線)。

在此先感謝。

回答

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 

*/ 

在你的代碼中有[A天際獎盃圖像URI]和(http://bit.ly/skyrimTrophyImageUri)之間的空間,我想這空間導致的問題。

的正確格式爲

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

我希望這可以解決您的問題。我知道自從9個月以來,你問了這個問題,但這可能會幫助其他有類似問題的人。