IPhone User Interface Design

Hey guys, I recently had some stunning question regarding iPhone user interfaces. For example, consider the WeightBot User Interface. I am wondering how most of these user interfaces are created? In general, of course.

Is there a way to just create controls (i.e. images) in a program like Photoshop and then use this skin for controls in UIKit? I understand that there are some controls that are probably created by the programmer (custom controls), but I mean ready-made ones that come with UIKit.

In other words, is the concept similar to website splicing projects? Where does a designer draw a website design in something like Photoshop, and then it breaks into pieces that can be used to create the actual website? I know that this can be done for UIButton s, can it be done for other controls, and is this usually done?

Or maybe this is done using Core Animation? I have heard this from time to time, does this mean that the user interfaces are hardcoded? Or is Core Animation used only for β€œeffects”, for example, applying a glowing effect to numbers in WeightBot?

If there are any resources that you can point me to, I would really appreciate it.

Thanks!

+4
source share
2 answers

I cannot come up with any written resource about this practice. But you're on the right track about Photoshop. Designers create visual effects for various controls in some design applications, such as Photoshop. The developer then assigns these assets to the controls, for example, various button states are loaded as images and, possibly, the text is added to the code.

By looking at the WeightBot user interface and the large blue glowing numbers, I can think of two ways to accomplish them:

1) provide all the numbers 0-9 in Photoshop and put them together at runtime (just load UIImageViews into a UIView, calculating the sizes and positions at runtime)

2) create text with something like UILabel, and then apply effects to it programmatically at runtime.

Both methods are good, and both have different tradeoffs regarding application size, code maintenance, developer / designer required, performance, etc. It’s also customary to mix them everywhere, especially with something like a fancy background image + text created at runtime on top of it.

You are right that all this is very similar to cutting websites and requires you to think about what elementary elements use the interface and how to compose them.

+1
source

I asked myself the same question, and just like you, I could not find examples. After playing around, I managed to create a similar control. You can check it out on github http://github.com/kompozer/HorizontalSliderControl

This is very simplistic, but I hope you have an idea. Basically its UIScrollView, not much kernel animation.

+2
source

Source: https://habr.com/ru/post/1307205/


All Articles