일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 프론트엔드
- react
- image
- front-end
- Animation
- jQuery
- keyframes
- HTML
- javascript
- SWIFT
- 비전공자
- 애니메이션
- ipad
- iPhone
- 풀스택
- php
- css3
- IOS
- 비전공 개발자
- button
- CSS
- html5
- hover
- 개발자
- 백엔드
- iOS 개발자
- xcode
- effect
- MAC
- 자바스크립트
- Today
- Total
목록전체 글 (564)
비전공자 개발일기
var isScrolling = false ... let preferences = WKPreferences() preferences.javaScriptCanOpenWindowsAutomatically = true ... let contentController = WKUserContentController() ... let configuration = WKWebViewConfiguration() configuration.preferences = preferences configuration.userContentController = contentController ... webView = WKWebView(frame: self.view.bounds, configuration: configuration) ...
1. Xcode에서 Simulator 또는 USB로 연결한 실제기기를 Cmd + R(빌드) 2. Safari Open 후 개발자용 메뉴 선택 개발자용 메뉴가 없을 경우 1. Mac Safari Setting 2. iPhone Safari Setting 3. 해당 웹페에지 클릭 4. 웹 속성 확인
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: ...
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..
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..