Masonry 快速修炼手册,带你打怪升级 🤖

简介: OC 版 Masonry 技能塔,带你用 Masonry 打怪升级 🤖由浅入深的教你使用 Masonry 进行相对布局。

🤖 要求


  • iOS 8.0+
  • Xcode 7.0+
  • Objective-C


🎨 测试 UI 什么样子?


image.png


🎯 安装方法


安装


1.手动安装:


下载Demo后,将功能文件夹拖入到项目中, 导入头文件后开始使用。


2.CocoaPods安装:


修改“Podfile”文件

pod 'Masonry', '~> 1.0.2'

控制台执行 Pods 安装命令 ( 简化安装:pod install --no-repo-update )


pod install

如果 pod search 发现不是最新版本,在终端执行pod setup命令更新本地spec镜像缓存,重新搜索就OK了


🛠 配置


开始学习

去打怪升级吧~

注:做的比较早,所以只提供初级入门示例,没有注意 Masonry 更新时机等问题,懒得优化了..

如果觉得力有不逮,就充一毛,又不是真找你要钱,给个 Stat 就好了✨


image.png


📝 深入学习


这里只是基础教学,使用并不规范,如果想要深入学习,可以前往GitHub-SnapKit主页!(https://github.com/SnapKit

OC Masonry:https://github.com/SnapKit/Masonry

Swift SnapKit:https://github.com/SnapKit/SnapKit


⚖ 协议


MIT License
Copyright (c) 2017 ReverseScale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


😬 联系



EN


OC Masonry skill tower, take you to upgrade with Masonry Daguai 🤖

Shallow teach you to use Masonry relative layout.


image.png


🤖 Requirements


  • iOS 8.0+
  • Xcode 7.0+
  • Objective-C


🎨 Why test the UI?


image.png


🎯 Installation


Install


1. Manual installation:


After downloading the Demo, drag the function folder into the project and start using the header file.


2.CocoaPods installation:


Modify "Podfile" file

pod 'Masonry', '~> 1.0.2'

Console Execute Pods Installation Command (Simplified Installation: pod install --no-repo-update)

pod install

If the pod search found is not the latest version, the terminal pod setup command to update the local spec image cache, search again OK


🛠 Configuration


Start learning

Go to Daguai to upgrade it ~

If you feel that you have enough power, you will find it hard to find a Stat


image.png


📝 Submission


Here is just basic teaching, not standardized, if you want further study, you can go to GitHub-SnapKit home page!(https://github.com/SnapKit

OC Masonry:https://github.com/SnapKit/Masonry

Swift SnapKit:https://github.com/SnapKit/SnapKit


⚖ License


MIT License
Copyright (c) 2017 ReverseScale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


😬 Contributions




目录
相关文章
|
3月前
|
缓存 前端开发 Linux
哇塞!NPM 缓存竟成开发拦路虎?快来掌握清空秘籍,开启前端开发逆袭之旅!
【8月更文挑战第20天】NPM是前端开发中管理依赖的关键工具。有时需清空其缓存以解决版本不一致或包损坏等问题,确保使用最新依赖。可通过命令`npm cache clean --force`强制清空全部缓存,或手动删除各系统下的缓存文件夹。注意清空缓存可能延长后续安装时间,建议事先备份依赖或确保可重新安装。正确管理缓存有助于提升开发效率。
89 1
|
5月前
|
测试技术 虚拟化 云计算
GitHub高赞!速通Python编程基础手册,被玩出花了!
随着云时代的来临,Python 语言越来越被程序开发人员喜欢和使用,因为其不仅简单易学,而且还有丰富的第三方程序库和相应完善的管理工具。 从命令行脚本程序到 GUI程序,从图形技术到科学计算,从软件开发到自动化测试,从云计算到虚拟化,所有这些领域都有 Python 的身影。 今天给小伙伴们分享的这份手册采用以任务为导向的编写模式,全面地介绍了 Python 编程基础及其相关知识的应用,讲解了如何利用 Python 的知识解决部分实际问题。
GitHub高赞!速通Python编程基础手册,被玩出花了!
|
6月前
|
XML 前端开发 数据可视化
《CSS 简易速速上手小册》第4章:视觉美学(2024 最新版)
《CSS 简易速速上手小册》第4章:视觉美学(2024 最新版)
54 1
|
移动开发 小程序 安全
【 uniapp - 黑马优购 | 开篇】uniapp简介与生产工具的安装使用
【 uniapp - 黑马优购 | 开篇】uniapp简介与生产工具的安装使用
128 0
|
6月前
|
前端开发 JavaScript 搜索推荐
《VitePress 简易速速上手小册》第4章 博客功能增强(2024 最新版)
《VitePress 简易速速上手小册》第4章 博客功能增强(2024 最新版)
148 0
|
6月前
|
缓存 数据安全/隐私保护
Autojs4.1.0实战教程---快逗短视频功能合集
Autojs4.1.0实战教程---快逗短视频功能合集
42 0
CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解(2)
CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解
CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解(3)
CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解
249 0
CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解(1)
CocosCreator3.8研究笔记(二十一)CocosCreator Tween系统理解
850 0
|
Kubernetes Perl 容器
【k8s 系列】k8s 学习二十五,如何升级应用 ?
在之前的分享中,我们知道一个程序如何放到容器中,一个镜像如何生成 pod, pod 的创建,运行,管理,删除过程,挂载等等
109 0