简体   繁体   English

使iPhone应用程序与iPad兼容

[英]Make iphone app ipad compatible

I have an iPhone/iPod app that I hired a contractor to make. 我有聘请承包商制作的iPhone / iPod应用程序。 Now I am asking same contractor to support iPad, and the contractor is quoting a ridiculously high price (the BD guy is). 现在,我要同一承包商支持iPad,而该承包商的报价却高得离谱(BD家伙就是这样)。 I think they know that since they have developed the app, they have some leverage and want to maximize their profit. 我认为他们知道,因为他们已经开发了该应用程序,所以他们具有一定的杠杆作用,并希望最大程度地提高利润。

Some questions: 一些问题:

  1. Is adding support for iPad mostly a UI job? 增加对iPad的支持主要是UI工作吗?
  2. Is any coding needed except detecting device type? 除检测设备类型外,是否需要编码?
  3. Looking at their images/ folder, I can see that for every graphic, they have already made a "2x" version which is double in size. 查看他们的图像/文件夹,我可以看到对于每个图形,他们已经制作了一个“ 2x”版本,其尺寸是原来的两倍。 Could it be that they have already created the necessary artwork, as I have told them from the start that iPad support will likely follow the iPhone version? 是否像我从一开始就告诉他们的那样,他们已经创造了必要的艺术品,iPad支持可能会跟随iPhone版本?
  4. If I were to use a different contractor now, as it is likely we will not come to a middle ground since we are so far apart in price, what are the things a different contractor would need to do the port? 如果我现在使用另一个承包商,因为我们之间的价格相差太远,很可能我们不会走到中间地带,那么另一个承包商在港口上需要做什么?
  5. In particular, I'm wondering if I need to fight to get the raw Photoshop files which contain the graphics, so they can be recreated for iPad, or will going by the eye be good enough? 特别是,我想知道是否需要争取获取包含图形的Photoshop原始文件,以便可以为iPad重新创建它们,还是会令人满意? I personally don't mind if the artwork is slightly different. 我个人不介意艺术品是否略有不同。

This certainly makes me think twice about using contractors in the future. 这无疑使我以后考虑使用承包商。

This really depends on the app but there are some differences for iphone and ipad. 这确实取决于应用程序,但是iphone和ipad有所不同。

Yes, it is mostly an UI job, and depending on screen content, porting one screen can be trivial (just checking if the autoresize functions do their job right), or though - making one from scratch. 是的,这主要是一项UI工作,根据屏幕内容的不同,移植一个屏幕可能是微不足道的(只需检查自动调整大小功能是否能正确完成其工作即可),或者从头开始制作一个。 If your application has lots of complicated screens, I get why the price may be high. 如果您的应用程序有很多复杂的屏幕,我就会明白为什么价格会很高。

Also - there are some differences in what controllers are available on each device, mostly the popovers or action sheets - that may require different code for each device. 此外-每个设备上可用的控制器(主要是弹出窗口或操作表)上也存在一些差异-可能需要为每个设备使用不同的代码。

As for the graphics - the 2x resources are actually for the retina capable devices (4th and 5th gen) - most people use them for the iPad too, but as the screen dimensions are not exactly the same, they get warped slightly. 至于图形-2x资源实际上是用于具有视网膜功能的设备(第4代和第5代)-大多数人也将它们用于iPad,但由于屏幕尺寸并不完全相同,因此会略微变形。 In most cases thats ok, but for really high quality, a separate set of graphics may be required. 在大多数情况下都可以,但要获得真正的高质量,可能需要单独的一组图形。

Take these as generic answers, the complexity of the actual app may affect these answers quite a bit; 将这些作为通用答案,实际应用的复杂性可能会相当大地影响这些答案。

1) If the app isn't using any specific functionality on the iPhone that isn't always available on the iPad (GPS for example, or specific camera resolutions for image processing), then yes, it's mostly a UI job. 1)如果应用程序未使用iPad上并不总是可用的iPhone上的任何特定功能(例如GPS,或用于图像处理的特定相机分辨率),那么是的,这主要是UI工作。 That doesn't mean it's necessarily quick and easy, you may want to change the layout radically for the iPad (that, of course, is up to you though) 这并不意味着它一定是快速简便的,您可能想要从根本上改变iPad的布局(当然,这取决于您)

2) Most code except UI possibly related code mentioned above should not need much change. 2) 除上面提到的UI可能相关的代码外,大多数代码都不需要太多更改。 Exceptions if any are mostly related to different hardware on different models and depends on the complexity of the application. 异常(如果有的话)主要与不同型号的不同硬件有关,并取决于应用程序的复杂性。

3) 2x images are not for iPad, they're for the retina display on iPhone4 and later. 3)2x图像不适用于iPad,而是用于iPhone4及更高版本的视网膜显示屏。

4) Almost impossible to answer without seeing the code or even the app, sorry. 4)对不起,如果没有看到代码甚至是应用程序,几乎不可能回答。 If it's a fairly simple application, everything needed should be contained in the XCode project. 如果它是一个非常简单的应用程序,则所需的所有内容都应包含在XCode项目中。

5) Up to you, if you want a quick "fix" you may want to resize the 2x images from retina resolution to iPad resolution in Photoshop and use anti aliasing to make them look ok. 5)由您决定,如果需要快速的“修复”,则可能需要在Photoshop中将2x图像从视网膜分辨率调整为iPad分辨率,并使用抗锯齿功能使它们看起来不错。 Your judgement call though. 不过您的判断力很高。 Just check that your deal with the contractor does not give him all the rights to the artwork or you may get into trouble changing/reusing it. 只需检查您与承包商的交易未授予他对艺术品的所有权利,否则您可能会难以更改/重复使用艺术品。

Well here are some answer from my experience: 好吧,这是根据我的经验得出的一些答案:

  1. Yes mostly it just about changing the look of your app. 是的,主要是改变应用程序的外观。 But people are expecting a different user experience on the iPad, so not all view should be full screen for instance. 但是人们期望在iPad上获得不同的用户体验,因此,例如,并非所有视图都应全屏显示。
  2. No most iPhone code will run fine on the iPad, if you are using stuff like UIImagePickerViewController then you need to change the way it is displayed. 如果使用的是UIImagePickerViewController东西,那么大多数iPhone代码都无法在iPad上正常运行,那么您需要更改其显示方式。
  3. NO the @x2 are for retina device NOT for iPad. 没有@ x2适用于视网膜设备,不适用于iPad。
  4. Source code and design would do I for me. 源代码和设计将为我做我。
  5. Having the original PSD would be nice, but you can do with out. 拥有原始的PSD会很好,但是您可以做到。

Just keep in mind that you just can scale up most applications and expect them to become fully excepted by users. 请记住,您可以扩展大多数应用程序,并期望它们被用户完全排除。

  1. It is. 它是。 You'll require separate nibs for iPad UI, if you don't want different UI logic, so it's possible to use same view controllers. 如果您不想使用不同的UI逻辑,则iPad UI需要单独的笔尖,因此可以使用相同的视图控制器。
  2. View controllers will require logic branches if UI is different. 如果UI不同,则视图控制器将需要逻辑分支。 It's mostly checks for user interface idiom though. 虽然它主要是检查用户界面的习惯用法。
  3. @2x versions are for retina display. @ 2x版本用于视网膜显示。 They will be useful when iPad 3 with retina hits the shelves. 当配备视网膜的iPad 3上架时,它们将非常有用。 Right now, low-res images will be enough for iPad UI. 目前,低分辨率图像足以满足iPad UI的需求。
  4. Different contractor will require the complete code of your project along with all resources... 不同的承包商将需要您项目完整代码以及所有资源。
  5. ...so yes, get all the PSDs as well. ...所以是的,也要获取所有PSD。

First off, I have well over a decade as a professional software engineer working for many clients both small and blue-chip, with broad experience of a variety languages/devices. 首先,我作为专业软件工程师已有十多年的经验,为许多小型和蓝筹客户服务,并具有多种语言/设备的丰富经验。 With that said: 照这样说:

Please remember that the ipad version will need testing on ipad 1, ipad 2 and in a couple of weeks time on an ipad3. 请记住,ipad版本需要在ipad 1,ipad 2和ipad3上进行测试,并且需要几周的时间。 Testing takes time. 测试需要时间。 The new version will also need to be tested again on all iphones too. 新版本也将需要在所有iphone上再次进行测试。

Also, you mention that this app is a game. 另外,您提到此应用是游戏。 The original code might have been coded in such a way as assuming certain screen resolution, and maybe even have hard-coded values throughout the code relating to screen positions etc. Particularly if the coder was not aware of a future ipad requirement. 原始代码可能已经以假定某种屏幕分辨率的方式进行了编码,甚至可能在整个代码中都具有与屏幕位置等有关的硬编码值。特别是如果编码器不知道将来的ipad要求。 Also supporting ipad 3 might not be an insignificant task if it has x2 graphics depending upon original code and the game engine used (if there is one). 如果支持ipad 3具有x2图形(取决于原始代码和所使用的游戏引擎)(如果有的话),那么支持ipad 3可能也不是一件微不足道的任务。

Some apps will cost the same to create an ipad version as the original iphone app. 某些应用程序的创建ipad版本所需的成本与原始iphone应用程序相同。

If your original agreement didn't include IPR over the source you might have difficulty getting it. 如果您的原始协议未在源头上包含IPR,您可能会很难获得它。 Some agencies and contractors default to providing source to clients, others charge extra for provision of the source. 一些代理商和承包商默认不向客户提供货源,另一些机构和承包商则收取额外的货源费用。

Lastly, the contractor might have originally coded the iphone app at a loss, ie they might have quoted you and been paid for 3 days work when they actually spent 10 days on it. 最后,承包商最初可能会无所适从地为iphone应用编写代码,即他们可能已经报价给您,并在实际花费10天的时间里得到3天的工作报酬。 In which case they might be assuming the worst for the ipad version too. 在这种情况下,他们可能也会为ipad版本承担最差的责任。

There are a lot of questions to ask and be answered before you can say they are "trying to rob". 在您可以说他们“试图抢劫”之前,有很多问题要问和回答。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM