목록IOS (34)
NewGen
extension MyWebViewController : WKScriptMessageHandler { func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { if message.name == bridgeNameStr { } } } 에서 처리하고나서.. 웹뷰나갈때는, self.myWebView.configuration.userContentController.removeScriptMessageHandler(forName: bridgeNameStr) 를 호출해서 브리지가 페이지 메모리상에 남아있지 않도록 해주어야 함 저거 안해주면 페이지가 점점 느려짐.
1. 아무거나 사용자 닙 하나 만듬. / Create custom uiview.xib 2. MyView.swift 를 아래와 같이 만들어줌. / Create MyView.swift and Type code below.....and focus on nib file name. I had a wrong xib name... I wanted "MyView.xib", but wrote "MtView.xib".. So, I faced crash app..... import UIKit class MyView: UIView { @IBOutlet var main_view: UIView! @IBOutlet weak var text_label: UILabel! override init(frame: CGRect) { supe..
중단에서 응용 프로그램을 방지 할 수 있습니다. 관련된 API는 매우 작지만 여전히주의해야 할 사항이 많이 있습니다. 이름 백그라운드 작업 은 다소 부적절합니다. 특히, beginBackgroundTask(expirationHandler:)실제로 백그라운드 작업의 모든 종류의를 시작하지 않고, 그 시스템 알려주 는 앱이 백그라운드에있는 경우에도 계속하려면 몇 가지 진행중인 작업을 시작합니다. 해당 작업을 만들고 관리하려면 코드를 작성해야합니다. 따라서 백그라운드 작업 API를 "Do n't suspend me"주장을 제기하는 것으로 생각하는 것이 가장 좋습니다. 시작하는 모든 백그라운드 작업을 종료해야합니다. 그렇게하지 않으면 워치 독에 의해 앱이 종료됩니다. 이러한 이유로 시작하는 각 백그라운드 작업에..
앱 이 동작을 하면서 데이터 송수신, 트랜잭션 등의 작업이 이루어지는 중에 전화오거나, 그냥 사용자가 슬립버튼 눌러버린경우 데이터 깨지거나 앱 죽는 경우 방지를 위해서.... 고려해봄 기본적 처리방법. 1. capabilities 설정에 백그라운드모드 넣고 저래 두개 켜줌. 2.info.plist에 이런거 추가 해주고.... 3. 처리를 원하는 곳에 func beginBackgroundUpdateTask() -> UIBackgroundTaskIdentifier { return UIApplication.shared.beginBackgroundTask(expirationHandler: ({})) } func endBackgroundUpdateTask(taskID: UIBackgroundTaskIdentifi..
푸시 노티용 인증서는 이미 만들었다는 가정하에... 1. pod 설치 프로젝트의 podfile에 아래 추가. pod 'AzureNotificationHubs-iOS' pod install 하면 pod 설치됨. 2. capabilities 추가 3. appdelegate.swift 에 MSNotificationHubDelegate 추가 @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MSNotificationHubDelegate { import WindowsAzureMessaging import UserNotifications //Hyunny_noti privat..
Download mp3 from youtube on your MAC. 1. Down youtube-dl and install. - If you use brew, it will down and install automatically. 2. Down ffmpeg and install. - If you use brew, it will down and install automatically. 3. Download youtube url. youtube-dl --extract-audio --audio-format mp3 --prefer-ffmpeg URL Thanks!!
Privacy Policy GomDigital Lab built the BackTube app as a Free app. This SERVICE is provided by GomDigital Lab at no cost and is intended for use as is. This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service. If you choose to use our Service, then you agree to the collection and use of info..
Play Video of UIWebView in LockScreen. 1. Set Capabilities. 2. Set Sharing Audoi Session on ViewDidLoad() in ViewControll.swift * It need import these. 3. UIWebView Config on ViewDidLoad() in ViewControll.swift 4. Register Noti for Entering Background and call on set_noti() ViewDidLoad() 5. make playBackground() 6. make pause function to pause current play video and this will be called by playBa..