일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Animation
- javascript
- button
- html5
- SWIFT
- react
- MAC
- jQuery
- IOS
- 비전공 개발자
- php
- image
- 애니메이션
- 자바스크립트
- 비전공자
- hover
- front-end
- effect
- keyframes
- 프론트엔드
- css3
- iOS 개발자
- iPhone
- xcode
- 개발자
- CSS
- HTML
- ipad
- 백엔드
- 풀스택
- Today
- Total
목록webview (8)
비전공자 개발일기
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) ...
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/eauHYH/btr2PynDJ1d/4vlO5HKQRefzHj3sL24lLk/img.png)
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!..
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..
![](http://i1.daumcdn.net/thumb/C150x150/?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..
import UIKit import WebKit class ViewController: UIViewController, WKNavigationDelegate { override func viewDidLoad() { super.viewDidLoad() view.addSubview(webView) NSLayoutConstraint.activate([ webView.leadingAnchor.constraint(equalTo: view.leadingAnchor), webView.trailingAnchor.constraint(equalTo: view.trailingAnchor), webView.bottomAnchor.constraint(equalTo: view.layoutMarginsGuide.bottomAnch..
import React, { useEffect } from "react"; import { StatusBar } from "expo-status-bar"; import { Text, View, StyleSheet, BackHandler, Alert } from "react-native"; import { WebView } from "react-native-webview"; import Constants from "expo-constants"; const MYLINK = "https://relaxed-turing-e7ea57.netlify.app"; // android 뒤로가기 버튼 클릭 시, 종료 확인 안내 문구 표시 const App = () => { useEffect(() => { const back..
import React from "react"; import { StatusBar } from "expo-status-bar"; import { StyleSheet, Text, View } from "react-native"; import { WebView } from "react-native-webview"; const MYLINK = "https://relaxed-turing-e7ea57.netlify.app"; export default function App() { return ( WEBVIEW ); } const styles = StyleSheet.create({ container: { marginTop: 40, padding: 30, flex: 1, alignItems: "center", ju..