개발/아이오에스
2020.12.26
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { guard let nextViewController: WeatherViewController = segue.destination as? WeatherViewController else { return } guard let cell: UITableViewCell = sender as? UITableViewCell else { return } nextViewController.country = cell.textLabel?.text } developer.apple.com/documentation/uikit/uiviewcontroller/1621490-prepare Apple Develope..
개발/아이오에스
2020.12.26
self.navigationController?.navigationBar.barTintColor = .systemBlue // 배경색상 self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white] // 타이틀 색상 테이블 뷰 셀 엑세서리 추가하기 let cell: UITableViewCell = tableView.dequeueReusableCell(withIdentifier: self.cellIdentifier, for: indexPath) cell.accessoryType = .disclosureIndicator // ">"
개발/아이오에스
2020.12.23
stackoverflow.com/questions/24171857/implementing-uitextfielddelegate-with-swift Implementing UITextFieldDelegate with Swift I have my ViewController class which implements UITextFieldDelegate. I have no auto complete for the funcs such as textFieldShouldBeginEditing. Is this a bug in XCode 6? Here's my class implemen... stackoverflow.com UITextFieldDelegate .. func textFieldDidBeginEditing(_tex..
개발/아이오에스
2020.12.23
import Foundation class UserInformation { static let sharedData: UserInformation = UserInformation() var phoneNumber: String? //전화번호 var dateValue: String? //달력 값 var userId: String? // ID 값 } UserInformation.swift - > 싱글톤 @IBAction func touchBeforeButton(_ sender: Any) { UserInformation.sharedData.dateValue = self.dateLabel.text UserInformation.sharedData.phoneNumber = self.phoneNumber.text } U..
개발/아이오에스
2020.12.23
@IBOutlet var nextButton: UIButton! nextButton.isEnabled = false //비활성화 nextButton.isEnabled = true // 활성화
개발/아이오에스
2020.12.23
if contentTextFiield.text?.isEmpty ?? true || idTextField.text?.isEmpty ?? true || passWord.text?.isEmpty ?? true || checkPassWord.text?.isEmpty ?? true || self.imageView.image == nil || passWord.text! != checkPassWord.text! { nextButton.isEnabled = false } else{ nextButton.isEnabled = true } UILabel - > dateLabel.text! == "" UITextField -> if phoneNumber.text?.isEmpty ?? true ||.... UIImageView..