iOS iPad 开发设计决策
进行 Photoshop 设计并将其集成到 xCode 界面生成器中的最佳方法是什么?我是否需要对其进行切片并将组件导入到 xCode 中,或者我是否必须尝试在界面生成器中从头开始重新创建设计?
What is the best method to take a photoshop design and integrate it in xCode interface builder? Would i need to slice it and import the components into xCode or would I have to try and recreate the design from scratch in interface builder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的意思是有人在 Photoshop 中模拟了 iPad 应用程序的 UI,您将需要使用真实的组件重新创建该界面。您可以使用 .xib 文件、故事板或代码来完成此操作。 Photoshop 文档中的按钮只是图像的一部分;在真实的 UI 中,它不仅如此——它是一个具有状态、可以响应消息等的独立视图。
图像,无论是使用 Photoshop 还是其他编辑器创建的,当然都可以合并到您的应用程序中并用于各种用途东西:背景、按钮图像、精灵等等。
If you mean that someone has mocked up a UI for an iPad app in Photoshop, you'll want to recreate that interface with real components. You can do that with .xib files, storyboards, or in code. A button in a Photoshop document is just part of the image; in a real UI it's more than that -- it's a separate view that has state, can respond to messages, etc.
Images, whether created with Photoshop or some other editor, can of course be incorporated into your app and used for all sorts of things: backgrounds, button images, sprites, and so on.
这要看情况。如果您根本不使用系统 UI 元素(例如游戏),则类似于 Web 编程(切片等)的方法可能会很好。
但是,如果您确实依赖系统 UI 元素,我建议在设计时使用适当的模板。有许多 PSD 文档以这些元素为特色,使 iPad(和 iPhone)设计变得更加容易,这里只是一个这样的网站。
That depends. If you don't use the system UI Elements at all, for example for a game, an approach similar to web programming (slicing etc.) might be fine.
If you do rely on system UI Elements however, I'd recommend using proper templates while doing design. There's a number of psd documents featuring those Elements out there which make iPad (and iPhone) design much more easy, here's just one such site.