2016-03-22 40 views

cevap

1

kullanımı bu kitaplık: "URLEmbeddedView"

kodu buraya bulabilirsiniz: hızlı yazılmış https://github.com/szk-atmosphere/URLEmbeddedView

bu kütüphaneyi ancak amaç-c kullanabilirsiniz.

amaç-c basit kod, Bu son Swift sürümüyle çalışan ve hataların çok almıyor url

- (IBAction)didTapFetchButton:(id)sender { 
    [self.embeddedView loadURL:self.textView.text completion:nil]; 
} 
+0

değil getirmesi sınıfın "OGObjcSampleViewController"

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. self.textView.text = @"https://github.com/"; [OGDataProvider sharedInstance].updateInterval = [NSNumber days:10]; self.embeddedView = [[URLEmbeddedView alloc] initWithUrl:@""]; [self.containerView addLayoutSubview:self.embeddedView andConstraints:@[ self.embeddedView.Top, self.embeddedView.Right, self.embeddedView.Left, self.embeddedView.Bottom ]]; } 

düğme bulunmaktadır uygulamayı da çalıştırabilir. –