{"id":4654,"date":"2014-03-30T14:19:18","date_gmt":"2014-03-30T14:19:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-there-a-global-way-to-merge-an-iphone-and-an-ipad-app-into-a-universal-app-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:19:18","modified_gmt":"2014-03-30T14:19:18","slug":"is-there-a-global-way-to-merge-an-iphone-and-an-ipad-app-into-a-universal-app-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-there-a-global-way-to-merge-an-iphone-and-an-ipad-app-into-a-universal-app-collection-of-common-programming-errors\/","title":{"rendered":"Is there a global way to merge an iPhone and an iPad app into a universal app?-Collection of common programming errors"},"content":{"rendered":"<p>I wrote an iPhone app. Then, I changed the interface a fair bit, added higher res images, and made an iPad version of it. In a perfect world, I would like for anyone who buys the iPad version to get the iPhone version for free (though not conversely). Since Apple doesn&#8217;t seem to have a way to do that (right??), my next favorite solution is to make the iPad version include the iPhone version somehow.<\/p>\n<p>I know that I could just convert the iPad version to &#8220;universal&#8221;, but since the face of the app is so different, that seems like a real pain. I have many view controllers and they are almost completely different between the two versions. Some of the methods are the same, but only about 30%. Is there an easy solution along the lines of this:<\/p>\n<ul>\n<li>\n<p>Check if device is iPhone or iPad<\/p>\n<ul>\n<li>\n<p>If iPhone, then use one group of files<\/p>\n<\/li>\n<li>\n<p>If iPad, then use a different group of files<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Thanks in advance!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote an iPhone app. Then, I changed the interface a fair bit, added higher res images, and made an iPad version of it. In a perfect world, I would like for anyone who buys the iPad version to get the iPhone version for free (though not conversely). Since Apple doesn&#8217;t seem to have a [&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-4654","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4654","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=4654"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4654\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}