For preconceived reasons, Android developers can easily confuse certain IOS terms, leading to deviations in understanding. For a chestnut, there is a key word in objective-c, interface although there are in Java interface , but the meaning of the two is completely different, in addition, there are many concepts of the same, but different terminology, such as Closure (closures) in the objective-c called Block. If you can notice these differences during the learning process, it will not only help to understand the semantics of the terminology, but also to make it possible to re-comb the Android knowledge points already mastered, which is double benefit. This also reminds me of the time when I recite Japanese words, I often look up and English Word to see the corresponding English interpretation, it seems to be able to understand a bit more thoroughly.
So today's whim, try to summarize IOS development from the perspective of Android development. These two days are learning Storyboard, just write a blog post summary, about Storyboard notes are recorded on my GitHub.
What is storyboard?
When you create a new Project with XCode, a file is automatically added Main.storyboard , and most of the UI, including page jumps, can be built in this Storyboard. is a typical engineering directory structure.
?
Storyboard's Chinese meaning is the storyboard, as the name implies, Storyboard will put some columns of Scene (plot) in series, constitute a story.
?
This concept is also relatively easy to understand when applied to app development:
Each page is equivalent to a Scene, and Storyboard these pages together, it forms a story, our APP.
The strict definition can be referred to the official explanation:
A storyboard is a visual representation of the app ' s user interface, showing screens of content and the transitions Betwee n them. The flow-or Story-that drives your app is storyboards to lay out.
Some of the more important keywords are visual representation,screens of content,transitions,flow/story, can be well understood.
The concept is simple, the use of course is very simple, because Storyboard is a visual representation , so open can be a Main.storyboard WYSIWYG editor, if an APP contains more than one screens of content , then its Storyboard may be as follows:
As can be seen in the figure, each screen of content control that can render a visualization, the connection means transition that they form one as a whole flow / story .
A Storyboard can completely show an APP, including its page jumps and most of the UI elements.
Although the function of Storyboard is already very powerful, but also has an unavoidable problem, if the APP's page is more, will inevitably lead to the data visualization becomes more complex, of course if you have a big monitor, can be another matter. Believe Apple will gradually solve this interaction problem.
How Android Builds Story
From the Android point of view, one activity is a screen of content, intent which represents transition, but Android cannot use a visual method to represent this Tran Sition, therefore, the lack of visual representationwill not constitute a flow/story.
Reference
- Storyboards Tutorial in IOS 7:part 1
- Storyboards Tutorial in IOS 7:part 2
- Tutorial:storyboards
Look at storyboard from an Android perspective