일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- jQuery
- 비전공 개발자
- keyframes
- php
- 백엔드
- IOS
- SWIFT
- effect
- front-end
- 프론트엔드
- Animation
- html5
- CSS
- css3
- 비전공자
- react
- javascript
- image
- button
- iPhone
- 애니메이션
- ipad
- HTML
- 개발자
- 자바스크립트
- MAC
- 풀스택
- xcode
- hover
- iOS 개발자
- Today
- Total
목록IOS (61)
비전공자 개발일기
let url = "your URL" var components = URLComponents(string: url)! components.queryItems = URLQueryItem(name: "name", value: value.trimmingCharacters(in: .whitespaces)) components.queryItems = [URLQueryItem(name: "name1", value: value.trimmingCharacters(in: .whitespaces)), URLQueryItem(name: "name2", value: value.trimmingCharacters(in: .whitespaces))] var request = URLRequest(url: components.url!..

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

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

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

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

백그라운드(Background) 상태 앱의 UI가 사용자 눈에는 보이지 않지만 특정 기능을 수행하는 앱의 경우에는 계속 실행되는 상태( ex) 음악, 지도 등) 포그라운드(Foreground) 상태 앱의 사용자가 보고 있는 화면 Background Mode Setting 예시 코드 import UIKit import CoreLocation class ViewController: UIViewController { var locationManager: CLLocationManager! override func viewDidLoad() { super.viewDidLoad() locationManager = CLLocationManager() locationManager.delegate = self locati..