Notice
Recent Posts
Recent Comments
Link
목록OOP (1)
NewGen
Create Custom UIView and Use in ViewController / 사용자 커스텀 뷰 (닙생성) 만들고 뷰컨트롤러에서 불러쓰기
1. 아무거나 사용자 닙 하나 만듬. / Create custom uiview.xib 2. MyView.swift 를 아래와 같이 만들어줌. / Create MyView.swift and Type code below.....and focus on nib file name. I had a wrong xib name... I wanted "MyView.xib", but wrote "MtView.xib".. So, I faced crash app..... import UIKit class MyView: UIView { @IBOutlet var main_view: UIView! @IBOutlet weak var text_label: UILabel! override init(frame: CGRect) { supe..
IOS
2020. 11. 24. 00:48