I click the button to go to another Webview. However, I removed the bounce from the moved Webview, but it does not work.First WKWebView var openSecondScreen : SecondWebViewController!
var preloadCheck = false ... func openSecondScreen(){
let storyboard = UIStoryboard(name: "Main", bundle: nil)
openSecondScreen = storyboard.instantiateViewController(withIdentifier: "SecondWebViewController") as! SecondWebViewController
openSecondScreen.delegate = self
openSecondScreen.loadViewIfNeeded()
openSecondScreen.secondWKWebView.navigationDelegate = self
preloadCheck = true
}.... func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
if preloadCheck {
self.navigationController?.pushViewController(openSecondScreen, animated: true)
preloadCheck = false
}
}Second WKWebView@IBOutlet var secondWKWebView: WKWebView!...override func loadView() {
super.loadView()
secondWKWebView.uiDelegate = self
secondWKWebView.navigationDelegate = self
secondWKWebView.scrollView.delegate = self
...
}extension SecondWebViewController: UIScrollViewDelegate{
func scrollViewDidScroll(_ scrollView: UIScrollView) {
print("scrollViewDidScroll")
scrollView.bounces = false
}
}Scroll does not display the log. Therefore, the function does not work either.I'm even setting it up in advance.But it didn't work override func viewDidLoad() {
super.viewDidLoad()
secondWKWebView.scrollView.bounces = false
}
Post
Replies
Boosts
Views
Activity
I am working on the ios project. I didn't have any problem at the moment. However, there is a problem with iOS 11.4 version of iPhone 6.I've already built my project with the iOS 12.4 iPhone 6 device, and there's nothing wrong with it.This is a problem when you connect a physical device. My error is as follows. Undefined symbols for architecture arm64: "_UTTypeConformsTo", referenced from: myapp.Document.uti(_: Swift.String, conformsTo: Swift.String) -> Swift.Bool in Document.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Undefined symbol : _UTTypeConformsToI have this function in the `Document.swift` file.**Document.swift**~~~swiftclass Document: UIDocument {
var fileData: Data?
var filesText: Data?
func uti(_ uti: String, conformsTo candidateParent: String) -> Bool {
return UTTypeConformsTo(uti as CFString, candidateParent as CFString)
}
...
override func load(fromContents contents: Any, ofType typeName: String?) throws {
if let fileType = typeName {
if fileType == "public.png" || fileType == "public.jpeg" { // .jpg not recognized
if let fileContents = contents as? Data {
fileData = fileContents
}
} else if !uti(typeName!, conformsTo: "public.data") {
throw IXError.fileAcessFailed
} else {
if let fileContents = contents as? Data {
filesText = fileContents
}
print("File type unsupported.")
}
} // end if let fileType = typeName
} // end func load~~~problematic environment:- Xcode: Version 11.0- Device : IPhone 6 and 11.4 ios version // get Error- Device : IPhone 6 and 12.4 ios version // This device operates normally.The two devices are different.There have been no problems so far, but problems occur when trying to build this device. What's the problem?##EDIT ###The error appears to occur when the developer info is set to 11.4. However, 11.4 devices must also be able to be built. What is the fundamental solution?