일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- javascript
- 백엔드
- HTML
- html5
- CSS
- css3
- 프론트엔드
- button
- 비전공자
- front-end
- ipad
- php
- Animation
- 비전공 개발자
- 풀스택
- MAC
- image
- iOS 개발자
- 애니메이션
- SWIFT
- 자바스크립트
- IOS
- hover
- jQuery
- keyframes
- react
- effect
- 개발자
- xcode
- iPhone
- Today
- Total
목록iPhone (67)
비전공자 개발일기
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/MUsZC/btr2uZLapAI/RtJ9Da1SvpjqgOsxDmAdL0/img.png)
https://github.com/WallabyStuff/SafeAreaBrush GitHub - WallabyStuff/SafeAreaBrush Contribute to WallabyStuff/SafeAreaBrush development by creating an account on GitHub. github.com 1. pod init -> podFile -> pod 'SafeAreaBrush' 입력 후 저장 -> pod install import UIKit import SafeAreaBrush class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() fillSafeArea(position: ...
webView.scrollView.refreshControl = UIRefreshControl() webView.scrollView.refreshControl?.addTarget(self, action: #selector(handleRefreshControl), for: .valueChanged) webView.scrollView.refreshControl?.tintColor = UIColor(red: 187 / 255, green: 38 / 255, blue: 73 / 255, alpha: 1.0) webView.scrollView.refreshControl?.attributedTitle = NSAttributedString(string: "당겨서 새로고침", attributes: [.foregroun..
func uploadImage(image: UIImage) { let url = URL(string: "URL/imgUpload.php")! // 이미지를 JPEG 데이터로 변환 guard let imageData = image.jpegData(compressionQuality: 0.8) else { print("Failed to convert image to JPEG data") return } // URLRequest 생성 var request = URLRequest(url: url) request.httpMethod = "POST" // HTTP Body에 이미지 데이터 추가 let boundary = "Boundary-\(UUID().uuidString)" request.setValue("mult..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/eqruXK/btr1lwZxrUk/C3t2j7yZiA8N3G9J7uFEsK/img.gif)
import UIKit class ViewController: UIViewController { @IBOutlet weak var imageView: UIImageView! let imagePicker = UIImagePickerController() var selectedImage = UIImage() override func viewDidLoad() { super.viewDidLoad() imagePicker.delegate = self imageView.backgroundColor = .brown } @IBAction func cameraBTN(_ sender: UIButton) { imagePicker.sourceType = .camera present(imagePicker, animated: t..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/5MjeY/btr1f1YyYf2/TWascFS1RSjmtp7H5UwFr0/img.jpg)
... // HTML 전화 ... ... // Swift extension ViewController: WKNavigationDelegate { func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) { if let url = navigationAction.request.url { if url.scheme == "tel" { if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url, options: [:], complet..
과정 WKWebView를 이용하여 어플을 제작하는 과정에서 기기의 이미지를 웹에 미리보기 같은 곳에서 보여주고 그 정보를 기기로 가져오는 단계에서 data가 출력이 안되는 문제 발생 분석 ... ... 웹에서 하나 하나 출력을 해본 결과 정상적으로 잘 나오는 것을 확인 func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { ... if message.name == "imageSelected", let messageBody = message.body as? [String: Any], let dataString = messageBody["data"] as? ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/yflL6/btr1bfPmna9/WzawJAg2Y5xW67kt3Ydwn1/img.png)
목적 웹 페이지 내 Javascript의 alert event를 iOS 기기에서도 동일하게 나타내기 위함 import UIKit import WebKit class ViewController: UIViewController, WKNavigationDelegate { var webView: WKWebView! override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.navigationDelegate = self webView.uiDelegate = self webView.allowsBackForwa..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/VqYzT/btr0JN7oS3B/NoC00kwN6lyf9mBarZiTv0/img.png)
1. pod init 2. PodFile pod 'TAKUUID' 추가 후, pod install 3. import TAKUUID 추가 import UIKit import TAKUUID // iOS 디바이스의 고유 아이디(UUID - KeyChain) -> 공장초기화를 하지않는 이상 앱을 삭제했다가 재설치를 하더라도 이 값은 그대로 유지 및 저장됨 class ViewController: UIViewController { @IBOutlet weak var uuidInTheKeyChain: UILabel! override func viewDidLoad() { super.viewDidLoad() initUUID() } private func initUUID() { TAKUUIDStorage.sharedInst..