मैं अधिक डेटा लोड करना चाहता हूं और जब उपयोगकर्ता तालिका के नीचे स्क्रॉल करता है तो अतिरिक्त कक्ष बनाना चाहता हूं। मैं JSON डेटा और MySQL का उपयोग कर रहा हूँ।UITableView नीचे स्क्रॉल करते समय अधिक लोड करें
func dataJsonFromURL(url:String)->NSArray
{
if let data = NSData(contentsOfURL: NSURL(string: url)!) {
return ((try! NSJSONSerialization.JSONObjectWithData(data, options: [])) as! NSArray)
}
else{
return data
}
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
let cell = tableView.dequeueReusableCellWithIdentifier("NCell", forIndexPath: indexPath) as! TableViewCell22
cell.backgroundColor = UIColor .clearColor()
let mindata = (data[indexPath.row] as! NSDictionary)
}
मैं तेजी के लिए चाहते हैं –
आप मिक्स और मैच का उपयोग कर सकते हैं, इस आलेख का पालन करें https://developer.apple.com/librar वाई/आईओएस/दस्तावेज़ीकरण/स्विफ्ट/अवधारणात्मक/बिल्डिंगकोकाएप/मिक्सैंडमैच.html –
या यदि आप कोकोपोड्स का उपयोग कर रहे हैं, तो आप सीधे अपने व्यू कंट्रोलर.swift फ़ाइल के शीर्ष पर आयात कथन द्वारा मिश्रण और मिलान के बिना उपयोग कर सकते हैं। –