ios - Xcode 6 is telling me that UIViewController doesn't have a member named reloadData() -


मेरे पास एक दृश्य नियंत्रक है जो कि UICollectionViewController , UICollectionViewDataSource है, और UICollectionViewDelegate

हाल ही में Xcode को अपडेट करने के बाद, मुझे अब निम्न त्रुटि मिल रही है:

'(UICollectionView, numberOfItemsInSection: Int) - & gt; निम्नलिखित कोड ( -didCompleteForecast: एक कॉलबैक विधि है) पर 'पुनः लोड' नाम वाले सदस्य का पुनः लोड किया गया नाम 'पुनः लोडडेटा' नहीं है:

  func didCompleteForecast () {// सामान println ("डेटा वापस मिला") dispatch_async (dispatch_get_main_queue ()) {self.collectionView.reloadData ()}   

एप्पल के स्वयं के अनुसार

धन्यवाद

ऐसा इसलिए है क्योंकि self.colectionView वैकल्पिक प्रकार है (UICollectionView?) ताकि आपको इसे खोलना होगा:

  self.collectionView! .reloadData ()    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -