FMMoveTableView 项目教程

FMMoveTableView 项目教程

FMMoveTableViewDiscontinued: Please use iOS 11's Drag & Drop capability instead.项目地址:https://gitcode.com/gh_mirrors/fm/FMMoveTableView

1、项目的目录结构及介绍

FMMoveTableView 项目的目录结构如下:

FMMoveTableView/
├── FMFramework/
│   ├── FMMoveTable.xcodeproj
│   ├── FMMoveTable
│   ├── .gitignore
│   ├── FMMoveTableView.podspec
│   ├── LICENSE
│   ├── README.md
│   ├── Sample.gif
│   └── ...
├── .gitignore
├── LICENSE
├── README.md
└── ...

目录介绍

  • FMFramework: 包含项目的主要代码和配置文件。

    • FMMoveTable.xcodeproj: Xcode 项目文件。
    • FMMoveTable: 项目的主要代码文件夹。
    • .gitignore: Git 忽略文件。
    • FMMoveTableView.podspec: CocoaPods 配置文件。
    • LICENSE: 项目许可证文件。
    • README.md: 项目说明文档。
    • Sample.gif: 示例动画文件。
  • .gitignore: 根目录下的 Git 忽略文件。

  • LICENSE: 根目录下的项目许可证文件。

  • README.md: 根目录下的项目说明文档。

2、项目的启动文件介绍

项目的启动文件是 FMMoveTable.xcodeproj,这是一个 Xcode 项目文件,用于启动和配置整个项目。通过打开这个文件,开发者可以在 Xcode 中查看和编辑项目的所有代码和资源。

3、项目的配置文件介绍

FMMoveTableView.podspec

FMMoveTableView.podspec 是 CocoaPods 的配置文件,用于定义项目的依赖关系和版本信息。以下是一个示例配置文件的内容:

Pod::Spec.new do |spec|
  spec.name         = "FMMoveTableView"
  spec.version      = "1.0.0"
  spec.summary      = "A UITableView subclass that allows moving rows without switching to edit mode."
  spec.description  = <<-DESC
                       FMMoveTableView is an UITableView subclass that provides moving rows by simply tapping and holding an appropriate row without switching the table to its edit mode.
                       DESC
  spec.homepage     = "https://github.com/FlorianMielke/FMMoveTableView"
  spec.license      = { :type => "MIT", :file => "LICENSE" }
  spec.author       = { "Florian Mielke" => "florian.mielke@gmail.com" }
  spec.platform     = :ios, "11.0"
  spec.source       = { :git => "https://github.com/FlorianMielke/FMMoveTableView.git", :tag => "#{spec.version}" }
  spec.source_files = "FMFramework/**/*.{h,m}"
  spec.framework    = "QuartzCore"
end

.gitignore

.gitignore 文件用于指定 Git 版本控制系统中需要忽略的文件和目录,以避免将不必要的文件提交到版本库中。以下是一个示例 .gitignore 文件的内容:

# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
Pods/

LICENSE

LICENSE 文件包含了项目的许可证信息,通常是 MIT 许可证。以下是一个示例 MIT 许可证的内容:

MIT License

Copyright (c) 2023 Florian Mielke

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

FMMoveTableViewDiscontinued: Please use iOS 11's Drag & Drop capability instead.项目地址:https://gitcode.com/gh_mirrors/fm/FMMoveTableView

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

龙琴允

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值