전체 글

개발/아이오에스

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..

개발/아이오에스

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..

dev.jake
484jake