• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

appbrewery/AutoLayout-iOS13: Learn to Code While Building Apps - The Complete iO ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

appbrewery/AutoLayout-iOS13

开源软件地址:

https://github.com/appbrewery/AutoLayout-iOS13

开源编程语言:

Swift 100.0%

开源软件介绍:

App Brewery Banner

Auto Layout

Our Goal

At the moment, our app only looks good on the canvas dimension that we’ve selected. If you run the app on screens with different aspect ratios or try to turn it to landscape, the designs will look broken.

Auto Layout allows us to set rules as to how we want our views to be displayed. Because mobile screens have different resolutions and sizes, we need these rules to tell the iPhone/iPad how it should layout all the elements in the storyboard onto the display. These rules allow our UI elements to be resized and positioned so that no matter which screen they are displayed on, they always look as the designer intended.

What you will create

Although Dicee is already pretty dicey, we get into problems when we try to rotate the screen to landscape or if we have a screen size that is not the same as the canvas. In this module, we’ll learn how to fix this and make our apps look exactly the way we want.

What you will learn

  • How to add constraints and understanding how Auto Layout works.
  • How to Pin and Align elements.
  • How to create containers to configure advanced layouts.
  • How to debug auto layout errors.
  • Understanding what Xcode needs in order to correctly layout a design.
  • How to use Stack Views to create complex interfaces.

This is a companion project to The App Brewery's Complete App Development Bootcamp, check out the full course at www.appbrewery.co

End Banner




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap