{"id":4854,"date":"2014-03-30T16:07:51","date_gmt":"2014-03-30T16:07:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/uitableview-sections-xcode-4-5-and-ios6-collection-of-common-programming-errors\/"},"modified":"2014-03-30T16:07:51","modified_gmt":"2014-03-30T16:07:51","slug":"uitableview-sections-xcode-4-5-and-ios6-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/uitableview-sections-xcode-4-5-and-ios6-collection-of-common-programming-errors\/","title":{"rendered":"UITableview sections (Xcode 4.5 and iOS6)-Collection of common programming errors"},"content":{"rendered":"<p>You supply all of that information at runtime, generally from the view controller. You need to set your view controller as the table view&#8217;s &#8216;data source&#8217;, then implement the UITableViewDataSource protocol which is documented here:<\/p>\n<p>http:\/\/developer.apple.com\/library\/ios\/#documentation\/uikit\/reference\/UITableViewDataSource_Protocol\/Reference\/Reference.html<\/p>\n<p>The specific method that will determine how many sections are presented is this one:<\/p>\n<pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView\n{\n    return 2;\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You supply all of that information at runtime, generally from the view controller. You need to set your view controller as the table view&#8217;s &#8216;data source&#8217;, then implement the UITableViewDataSource protocol which is documented here: http:\/\/developer.apple.com\/library\/ios\/#documentation\/uikit\/reference\/UITableViewDataSource_Protocol\/Reference\/Reference.html The specific method that will determine how many sections are presented is this one: &#8211; (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4854","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4854"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4854\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}