Xcode 8에는 자동 설명이 포함되어 있습니다. 자체 문서를 만들었으므로 설명/데이터/응답/오류 섹션을 작성하고 싶습니다. 여기 스크린 샷이 있는데 내 질문은 애플이 어떻게 정보를 상자에 넣을 것인가? 나는 이것에 대한 문서를 전혀 찾을 수 없다. 발췌 여기Xcode Swift 빠른 도움말 닫기
http://nshipster.com/swift-documentation/
됩니다 :
/// The total distance travelled by the bicycle, in meters.
private(set) var distanceTravelled: Double
/**
Initializes a new bicycle with the provided parts and specifications.
- Parameters:
- style: The style of the bicycle
- gearing: The gearing of the bicycle
- handlebar: The handlebar of the bicycle
- frameSize: The frame size of the bicycle, in centimeters
- Returns: A beautiful, brand-new bicycle, custom built
just for you.
*/
init(style: Style, gearing: Gearing, handlebar: Handlebar, frameSize centimeters: Int) {
self.style = style
self.gearing = gearing
self.handlebar = handlebar
self.frameSize = centimeters
self.numberOfTrips = 0
self.distanceTravelled = 0
}
무슨 "상자"에 대해 이야기하고 있습니까? – matt
나는 그가 스크린 샷 하단의 테이블을 의미한다고 생각한다 – Feldur
가능한 복제본은 http://stackoverflow.com/q/38669725/1271826이다. (물론, 그 대답은 완전히 만족스럽지 않다). – Rob