{"id":4817,"date":"2014-03-30T15:35:06","date_gmt":"2014-03-30T15:35:06","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/nsdictionary-of-nsdictionaries-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:35:06","modified_gmt":"2014-03-30T15:35:06","slug":"nsdictionary-of-nsdictionaries-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/nsdictionary-of-nsdictionaries-collection-of-common-programming-errors\/","title":{"rendered":"NSDictionary of NSDictionaries-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m having trouble with the following code to create an NSDictionary of NSDictionaries. There is no compile error, but during runtime, it fails on this code.<\/p>\n<pre><code>NSDictionary *section0 = [NSDictionary dictionaryWithObjectsAndKeys:\n                            [NSDictionary dictionaryWithObjectsAndKeys:\n                                @\"Caller ID\", @\"label\",\n                                @\"name\", @\"field\",\n                                @\"Call\", @\"fieldType\", nil\n                            ], 0,\n                            [NSDictionary dictionaryWithObjectsAndKeys:\n                                @\"Number\", @\"label\",\n                                @\"number\", @\"field\",\n                                @\"Call\", @\"fieldType\", nil\n                            ], 1,\n                            nil\n                         ];\n<\/code><\/pre>\n<p>This is my first app, so any help you can provide is greatly appreciated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m having trouble with the following code to create an NSDictionary of NSDictionaries. There is no compile error, but during runtime, it fails on this code. NSDictionary *section0 = [NSDictionary dictionaryWithObjectsAndKeys: [NSDictionary dictionaryWithObjectsAndKeys: @&#8221;Caller ID&#8221;, @&#8221;label&#8221;, @&#8221;name&#8221;, @&#8221;field&#8221;, @&#8221;Call&#8221;, @&#8221;fieldType&#8221;, nil ], 0, [NSDictionary dictionaryWithObjectsAndKeys: @&#8221;Number&#8221;, @&#8221;label&#8221;, @&#8221;number&#8221;, @&#8221;field&#8221;, @&#8221;Call&#8221;, @&#8221;fieldType&#8221;, nil ], 1, nil [&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-4817","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4817","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=4817"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4817\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}