ios - UITableView setter method functions not being called -


इस तरह कार्य करता है:

  - (NSInteger) numberOfSectionsInTableView: (UITableView *) tableView {एनएसएलॉग (@ "बुलाया") रिटर्न 1; }  

कॉल नहीं किया जा रहा है, क्योंकि कंसोल में लॉग दिखाई नहीं देता है मैंने

  [table realoadData]  

का उपयोग करने की कोशिश की लेकिन यह अभी भी काम नहीं करता

सुनिश्चित करें कि आपके पास दोनों यूआईटीबल वीटाडेटास और UITableViewDelegate को वर्ग में सेट किया गया है जो इस विधि में स्थित है

  .h @interface class_name: UIViewController & lt; UITableViewDelegate, UITableViewDataSource & gt; {UITableView * tableView; } .डिमोड में (या कोई अन्य लोडिंग विधि) tableView.delegate = self; TableView.dataSource = self;  

यदि आप UITableViewController subclassing हैं, तो यह पहले से ही काम कर रहा होना चाहिए

आशा है कि मदद करता है!


Comments

Popular posts from this blog

javascript - How to use the code plugin with popcornjs -

Apache Redirect Performance - .htaccess vs Apache configuration file ? -