전체 글 (160) 썸네일형 리스트형 swift ] SwiftSocket에러해결 - The target “SwiftSocket” contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets. Use Xcode 10.1 to migrate the code to Swift 4. swift Language version을 swift3에서 5로 변경하면 해결! swift ] 웹뷰 안에 링크연결 안될 때 self.webView.uiDelegate = self uiDelegate 선언 func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { if navigationAction.targetFrame == nil { webView.load(navigationAction.request) } return nil } [pod error]-Could not find 'CFPropertyList' (>= 2.3.3, < 4.0) among 83 total gem(s) (Gem::MissingSpecError)Checked in 'GEM_PATH=/Users/dev.geeyong/.rvm/gems/ruby-3.0.0:/Users/dev.geeyong/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0:/usr/local/Cellar/cocoa.. Could not find 'CFPropertyList' (>= 2.3.3, Could not find 'cocoapods' (>= 0) among N total gem(s) (Gem::LoadError) When I am trying to pod install, getting following issue: Faizs-MBP:newj faizfareed$ pod install /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'cocoapods' (>... stackoverflow.com sudo gem uninstall --all sudo gem install -n /usr/local/bin cocoapod.. git 오류 ] fatal: unable to access 'https://github.com....': SSL certificate problem: unable to get local issuer certificate ssl 검증 끔 git config --global http.sslVerify false swift - 중복되는 뷰 생성해서 사용하기 위 사진처럼 이미지, 텍스트, 뷰로 이루어진 내용이 있다. 서로 정보는 다르지만 레이아웃이 같기 때문에 하나의 뷰를 만들어 재사용이 가능하다. class ContentsView: UIView { init(title: String, subTitle: String, img: String) { super.init(frame: CGRect.zero) self.titleLabel.text = title self.subTitleLabel.text = subTitle self.iconImageView.image = UIImage(named: img) setupViews() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } } 위 처럼 .. swift ] UIButton 타이틀 텍스트 크기 / 이미지 크기 변경하기 lazy var stocksCategoryFilterBtn: UIButton = { let bt = UIButton(type: .system) bt.setTitle("전일 기준 ", for: .normal) let config = UIImage.SymbolConfiguration( pointSize: 11, weight: .regular, scale: .default) let image = UIImage(systemName: "chevron.down", withConfiguration: config) bt.setImage(image, for: .normal) bt.tintColor = .systemGray bt.translatesAutoresizingMaskIntoConstraints = false bt.. swift-xcode ] 커스텀 폰트 적용하기 - 코드(no StoryBoard) // // Extensions.swift // LL // // Created by devgeeyong on 2021/12/03. // import UIKit extension UIFont { class func PoorStory(type: PoorStoryType, size: CGFloat) -> UIFont!{ guard let font = UIFont(name: type.name, size: size) else{ return nil } return font } public enum PoorStoryType{ case Bold var name: String{ switch self{ case .Bold: return "PoorStory-Regular" } } } } //적용하기 label.font = U.. swift] tableview를 그룹으로 만들었을때 테이블뷰 위에 영역이 잡히는 문제 tableView.tableHeaderView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 0.1)) https://stackoverflow.com/questions/44174655/how-to-remove-top-space-from-top-of-tableview 이전 1 ··· 7 8 9 10 11 12 13 ··· 20 다음