swift - iOS绘制界面都是图形操作的界面?
伊谢尔伦
伊谢尔伦 2017-04-17 17:39:13
0
3
495

我原来是做web前端的,最近公司有需求,在学iOS开发,看了些教程,都是用storyboard来画的,请问有用代码画的吗?

用图形画比用代码画要好吗?主要考虑到屏幕适配问题,用代码的话,可以写的适配规则总比用图形界面画的要多些吧?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
迷茫

iOS basically has two ways, one is the IB WYSIWYG form of Storyboard; the other is the pure code form.
Android is slightly better. In addition to WYSIWYG and pure code, it can also be achieved by editing XML.
The use of XML for configuration in Android is most similar to the Web front-end operation of layout, CSS, etc.
Don’t ask why iOS can’t be configured this way. I can only say that the XML source code of iOS IB is really impossible to read and operate.

阿神

Now Apple is increasingly advocating the use of storyboard development. Generally speaking, it is recommended to use storyboard for small projects developed by individuals
For large projects developed through teamwork, multiple storyboards/codes can be used for development

The autolayout adaptation in the storyboard personally feels more intuitive than the code

迷茫

It depends on the situation, storyboard is more suitable and does not require too much error information

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!