This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let str = "https://economictimes.indiatimes.com/rssfeedstopstories.cms" | |
let url = URL(string: str) | |
parser = XMLParser(contentsOf: url!) ?? XMLParser() | |
parser.delegate = self | |
parser.parse() | |
tblView.dataSource = self | |
tblView.delegate = self | |
tblView.register(UINib.init(nibName: "tblTitleCell", bundle: nil), forCellReuseIdentifier: "Cell") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://economictimes.indiatimes.com/rssfeedstopstories.cms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBOutlet weak var tblView: UITableView! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parser = XMLParser() | |
var arrDetail : [String] = [] | |
var arrFinal : [[String]] = [] | |
var content : String = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MARK:- Delegate Method | |
func passingData(_ text: String) { | |
lblName.text = text | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let storySecond = self.storyboard?.instantiateViewController(withIdentifier: "SecondVC") as! SecondVC | |
storySecond.delegate = self | |
self.navigationController?.pushViewController(storySecond, animated: true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func btnGetNameClicked(_ sender: UIButton) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBOutlet weak var lblName: UILabel! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func btnSendNameClicked(_ sender: UIButton) { | |
} |