강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

Matthew So님의 프로필 이미지
Matthew So

작성한 질문수

왕초보를 위한 스위프트 프로그래밍 강좌 (iOS app with xcode&swift)

6강 - 아웃렛 & if~else

code실행이 안됩니다

작성

·

209

0

안녕하세요! 강의 감사히 잘 듣고 있습니다. 아마도 버젼이 업데이트 되어서 선생님 코드대로 하면 안될 때가 있는 것 같은데요, 아래 코드대로 했는데 빌드는 succeed되지만 정작 시뮬레이터로는 뜨지가 않습니다. 아래 코드에서 무엇을 고쳐야 할 지 알려주시면 감사 드리겠습니다! import UIKit class ViewController: UIViewController { let numberOfPlanets = 8 let diameterOfEarth = 24859.92 // in miles, where pole to pol override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. print("Welcome to solar system!") print("There are \(numberOfPlanets) to explore") print("You are currenly on the Earth, which has a circumstance of \(diameterOfEarth) miles") firstTextView.text = "Welcome to solar system!" } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBOutlet weak var firstTextView: UITextView! }

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
Matthew So님의 프로필 이미지
Matthew So

작성한 질문수

질문하기