初衷

作者: 水之飞亦 | 来源:发表于2019-10-23 22:08 被阅读0次
  • 为什么要单独写这个东西呢,其实本人是比较懒的一个人,不太喜欢写一些总结类的东西,而且自己的性格又是哪种,要写就要写的完整,写得满意的那种,所以一些学习过程中的碎片化的东西,就很难提起兴趣去记录。
  • 但是还是开了这个头,也是源于之前一直未完成的一个事情吧。最开始学习OC时,就想着要把所以UIKit,UIFoundation类都做个总结,那时用纸质笔记本做的,大概写了二分之一吧,很多不常用,用不到的类就没有写,而且写了的也不是很全,主要是技术有限啊。
  • 现在学习和总结SwiftUI,再提这个,也没有抱着全部保质保量完成的希望,毕竟这个SwiftUI,还不是很成熟,现在也不能完全普及,慢慢完善吧!
  • 计划呢是,实践代码加上属性和方法的说明和介绍,对比UIKit,也作为以后自己查阅和复习的一个记录!

主要介绍下面几个方面的东西

View 协议

protocol View
A type that represents a SwiftUI view.
Creating and Combining Views
This tutorial guides you through building Landmarks — an iOS app for discovering and sharing the places you love. You’ll start by building the view that shows a landmark’s details.
Working with UI Controls
In the Landmarks app, users can create a profile to express their personality. To give users the ability to change their profile, you’ll add an edit mode and design the preferences screen.

Text 内容视图

struct Text
A view that displays one or more lines of read-only text.
struct TextField
A control that displays an editable text interface.
struct SecureField
A control into which the user securely enters private text.
struct Font
An environment-dependent font.

Images 图片视图

struct Image
A view that displays an environment-dependent image.

Buttons 按钮

struct Button
A control that performs an action when triggered.
struct NavigationLink
A button that triggers a navigation presentation when pressed.
struct MenuButton
A button that displays a menu containing a list of choices when pressed.
struct EditButton
A button that toggles the edit mode for the current edit scope.
struct PasteButton
A system button that triggers reading data from the pasteboard.

Value Selectors 选择器

struct Toggle
A control that toggles between on and off states.
struct Picker
A control for selecting from a set of mutually exclusive values.
struct DatePicker
A control for selecting an absolute date.
struct Slider
A control for selecting a value from a bounded linear range of values.
struct Stepper
A control used to perform semantic increment and decrement actions.

相关文章

  • 初衷

    春节后的这几天,小面的生意逐渐好起来。每天1000+的营收额。另一方面呢,合伙人增多,所以还是要不断的思考挣钱的突...

  • 初衷

    初衷 问自己一个问题:每天写丰盛日记的初衷是什么?头脑中出现两个词语:复盘和链接。对一天的工作,生活做一个复...

  • 初衷

    四投三被拒一审核超过24h,文章不够字数? 郁闷。 写点创作初衷添补下吧。 首先问自己,参加这样一场比赛,你能否胜出?

  • 初衷

    注册简书是18年3月18日夜里于北京 当时也只是简单编辑了一下 并没有留下什么文字痕迹 其实用简书的目的很简单 就...

  • 初衷

    最近比较忙没有太关注班级的事情,翻开记录发现关于交作业有过很激烈的碰撞,事情说大不大说小也小,但最后的结果是令人失...

  • 初衷

    若回忆成河,淙淙流逝,我是不甘心的,我希望它能细腻,像只跳脱的小猫,每根毛都纤毫必现,时不时的出现,有时抬起柔软小...

  • 初衷

    我当时选择贺州电视台的初衷是我并不是特别喜欢写稿子,虽然在小学初中高中曾经有一度很喜欢看作文书、比较喜欢写一些文字...

  • 初衷

    人情冷暖久而知, 全心付出冷回报。 一时相对久绕心, 是心是肺谓自省。 2016,国庆节前一个星期四,体育课和语文...

  • 初衷

    一个人的初衷,往往在失去一切后才会被我们想起。毕竟,它一直被我们遗忘,我们只是将它看成是年少时的冲动罢了。

  • 初衷

    记得乌云密布的上层, 还有如棉絮般的云朵; 记得饱经风霜的老树, 还有新生初长的嫩芽。 处暑是绿萝延生的梦: 有清...

网友评论

      本文标题:初衷

      本文链接:https://www.haomeiwen.com/subject/lbjlvctx.html