UIWebView UI Frame Interrupt

We have mp3 files stored on the Internet, and our iOS application uploads them to the web view. This worked fine in the past, but lately (8.4?) It seems that it no longer works and instead fails.

Downloading these URLs works in Mobile Safari, but not in UIWebView. If anyone could shed light on this, that would be very helpful!

Thanks!

+7
ios uiwebview mp3
source share
2 answers

I have a similar problem and I think I'm on something, so can you check the Content-Type Header?

func HeaderFromNSURL(url: NSURL) { println("TEST HEADER") for header in NSURLRequest(URL:url).allHTTPHeaderFields! as! [String : String] { println("key: " + header.0 + " content" + header.1) 

}

Println ("/////////////////////////////////////")

}

Mine does not contain a good Content-type header I think this is a redirect problem

+1
source share

It turns out that this happens only on the simulator. It works great on the device :)

+1
source share

All Articles