{"id":4797,"date":"2014-03-30T15:30:45","date_gmt":"2014-03-30T15:30:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-with-navigation-based-template-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:30:45","modified_gmt":"2014-03-30T15:30:45","slug":"problem-with-navigation-based-template-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-with-navigation-based-template-collection-of-common-programming-errors\/","title":{"rendered":"problem with navigation based template-Collection of common programming errors"},"content":{"rendered":"<p>hii every one<\/p>\n<p>i am creating a navigation based application &amp; i am designing screens programatically , i need to have 2 bar buttons ie left barbutton item &amp; right bar button item so i have used following code in &#8211; (void)loadView method but its crashing when controller enters loadview method,,can any one tell me whats wrong in this code, thanx in advance<\/p>\n<pre><code>  self.title = @\"Add Item\";\n self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] \n initWithBarButtonSystemItem:UIBarButtonSystemItemCancel \n target:self action:@selector(cancel_Clicked:)] autorelease];\n\n self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] \n initWithBarButtonSystemItem:UIBarButtonSystemItemSave \n target:self action:@selector(save_Clicked:)] autorelease];\n self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>hii every one i am creating a navigation based application &amp; i am designing screens programatically , i need to have 2 bar buttons ie left barbutton item &amp; right bar button item so i have used following code in &#8211; (void)loadView method but its crashing when controller enters loadview method,,can any one tell me [&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-4797","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4797","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=4797"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4797\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}