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

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

javascript - Enable/Disable form elements and changing the values of button at a time? -