Categories
Mastering Development

Function from another class ios swift not executed

Please tell me, I have 2 classes. There is a load_shop() function that enables the display of the webView. If I call a function from the first class ViewController then the function is executed and the webView is displayed, and if from another class CheckUpdate the function is executed (print is output) but the webView […]

Categories
Mastering Development

How to add close or back button in Xcode using swift language when a file such as pdf, ppt .. etc. is opened?

First of all I’m new in swift and objective c languages. My problem is that I have a WebView app for iOS device using swift language , the app when opens a document file such as pdf, ppt,…etc. there is no option to close the file or back to previous. Just googled the problem and […]

Categories
Development

Dynamically changing NSWindow title while the app is running

I want to create an app where the NSWindow’s title reflects the WKWebView’s page title value. However, I’ve been having trouble with setting the window’s title outside of initializer methods such as viewDidLoad, viewWillAppear, etc. Here’s what I have thus far: ViewController.swift import Cocoa import WebKit class ViewController: NSViewController, WKUIDelegate, WKNavigationDelegate, NSWindowDelegate { @IBOutlet var […]

Categories
Development

How to use WKWebView display highlighted text from MS Word?

I am diligently trying to use WKWebView to display MS Word documents from Azure Blob URL, the highlighted text is not showing yellow/green color after showing the doc using WKWebView on the iOS Swift mobile end. Not sure if it’s the WKWebView issue but when i use PDFKit framework to display the highlight text is […]

Categories
Development

ITMS-90809: Deprecated API Usage — Apple will stop accepting submissions of apps that use UIWebView APIs When upload myApp

I tried to upload the app to the App Store, but there was a problem. I received an email telling me not to use UIWebView and was rejected. App Store Connect Dear Developer, We identified one or more issues with a recent delivery for your app, “gamemain” 1.0.0 (1). Your delivery was successful, but you […]