Skip to content

Instantly share code, notes, and snippets.

let person: (Int, Bool, String) = (10, “Hello”, false)
let person = (10, “Hello”, false)
var TupleName = (Value1, value2,… any number of values)
func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
let loadingNotification = MBProgressHUD.showAdded(to: view, animated: true)
loadingNotification.mode = MBProgressHUDMode.indeterminate
loadingNotification.label.text = "Loading"
}
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!){
MBProgressHUD.hide(for: self.view, animated: true)
let str = wView
let url = URL(string: str)
webView.loadRequest(URLRequest(url: url!))
webView.navigationDelegate = self
@IBOutlet weak var webView: WKWebView!
import WebKit
func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return arrFinal.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
func parserDidStartDocument(_ parser: XMLParser) {
arrFinal.removeAll()
}
func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
if elementName == "item" {
arrDetail.removeAll()
}
}