swift hello, world
한 무더기쯤 만들었을 텐데..
ViewController.swift//
// ViewController.swift
// HelloWorldApp
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
var label = UILabel()
label.text = "hello, world"
label.sizeToFit()
label.center = self.view.center
view.addSubview(label)
}
}
실행 결과
다음과 같은 경고가 있지만 신경 쓸 필요는 없다.ld: warning: relocatable dylibs (e.g. embedded frameworks) are only supported on iOS 8.0 and later (@rpath/libswift_stdlib_core.dylib)
cf. http://stackoverflow.com/questions/24622495/relocatable-dylibs-e-g-embedded-frameworks-are-only-supported-on-ios-8-0-and
다음을 참조하였습니다.
http://www.atmarkit.co.jp/ait/articles/1211/07/news017.html
http://gupuru.hatenablog.jp/entry/2014/06/16/191358
Reference
이 문제에 관하여(swift hello, world), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/maangie/items/7221b038ad3e93301e95
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
//
// ViewController.swift
// HelloWorldApp
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
var label = UILabel()
label.text = "hello, world"
label.sizeToFit()
label.center = self.view.center
view.addSubview(label)
}
}
다음과 같은 경고가 있지만 신경 쓸 필요는 없다.
ld: warning: relocatable dylibs (e.g. embedded frameworks) are only supported on iOS 8.0 and later (@rpath/libswift_stdlib_core.dylib)
cf. http://stackoverflow.com/questions/24622495/relocatable-dylibs-e-g-embedded-frameworks-are-only-supported-on-ios-8-0-and 다음을 참조하였습니다.
http://www.atmarkit.co.jp/ait/articles/1211/07/news017.html
http://gupuru.hatenablog.jp/entry/2014/06/16/191358
Reference
이 문제에 관하여(swift hello, world), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/maangie/items/7221b038ad3e93301e95텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)