Basically, in a web view, my page loads fine, but the iframes in it never load, they just stay white or don't appear at all, this happens in both htmlstrings and NSURL sessions please help. code
import Darwin
import UIKit
class ViewController: UIViewController {
@IBOutlet var InterfaceX: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
sleep(1)
let url=NSBundle.mainBundle().URLForResource("hi", withExtension: "html")
//let url = NSURL(string: "http://creepertech.net/xe/interface")
let request = NSURLRequest(URL: url!)
InterfaceX.loadRequest(request)
InterfaceX.allowsInlineMediaPlayback = true;
//let htm:String! = "<head><header></header></head><body><iframe src=\"http://xegaming.com\"></iframe></body>"
//InterfaceX.loadHTMLString(htm, baseURL: nil)
// Do any additional setup after loading the view, typically from a nib.
}
override func prefersStatusBarHidden() -> Bool {
return true
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
NOTE :- Replace URL HERE with your actual URL