Si Jong Tech Blog
close
프로필 배경
프로필 로고

Si Jong Tech Blog

  • 분류 전체보기 (236)
    • ◽️ Programming (236)
      • T I L (89)
      • Swift 문법 (22)
      • UIKit (18)
      • SwiftUI (11)
      • TCA (6)
      • RxSwift (7)
      • iOS (34)
      • 회고 (5)
      • ◽️ Algorithm (32)
      • ◽️ Computer Science (12)
  • 홈
  • 태그
  • 방명록

코드로 오토레이아웃 함수 모아 놓기

오토레이아웃 잡을때 class ViewController: UIViewController { let emailTextFieldView = UIView() override func viewDidLoad() { super.viewDidLoad() makeUI } func makeUI() { emailTextFieldView.backgroundColor = .darkGray view.addSubview(emailTextFieldView) emailTextFieldView.translatesAutoresizingMaskIntoConstraints = false emailTextFieldView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 30..

  • format_list_bulleted ◽️ Programming/UIKit
  • · 2024. 3. 9.
  • textsms

UIKit 사용법

버튼의 타이틀 변경 button.setTitle("my text here", forSate: .normal) 레이블 텍스트 변경 label.text = "안녕하세요" 버튼의 테두리 둥글게 하는법 @IBOutlet weak var calculateButton: UIButton! // 버튼 변수 설정 후 calculateButton.clipsToBounds = true calculateButton.layer.cornerRadius = 5 버튼 누르면 이전 내용으로 돌아가는 메서드 @IBAction func backButtonTapped(_ sender: UIButton) { dismiss(animated: true, completion: nil) }

  • format_list_bulleted ◽️ Programming/UIKit
  • · 2024. 3. 9.
  • textsms

텍스트 필드 ( Text Field )

텍스트 필드 사용법 textField.keyboardType = UIKeyboardType.emailAddress // 텍스트필드의 키보드 스타일 textField.placeholder = "이메일 입력" textField.borderStyle = .roundedRect // 텍스트필드의 선 스타일 textField.clearButtonMode = .always // 텍스트삭제 버튼 textField.returnKeyType = .go // 엔터의 형태 설정 텍스트 필드 선택 함수 정리 // 텍스트필드의 입력을 시작할때 호출 되는 메서드 ( 시작할지 말지 여부 허락 하는 것 ) func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { re..

  • format_list_bulleted ◽️ Programming/UIKit
  • · 2024. 3. 9.
  • textsms
  • navigate_before
  • 1
  • 2
  • navigate_next
프로필 로고

Si Jong Tech Blog

전체 카테고리
  • 분류 전체보기 (236)
    • ◽️ Programming (236)
      • T I L (89)
      • Swift 문법 (22)
      • UIKit (18)
      • SwiftUI (11)
      • TCA (6)
      • RxSwift (7)
      • iOS (34)
      • 회고 (5)
      • ◽️ Algorithm (32)
      • ◽️ Computer Science (12)
최근 글
인기 글
최근 댓글
태그
  • #tableView
  • #알고리즘
  • #MVC
  • #티스토리챌린지
  • #오블완
  • #project
  • #TIL
  • #uikit
  • #swift
  • #IOS
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바