**LearniOSByProject**本来是自己学习iOS时的一些非常简单小例子,小项目,或者我个人博客AndyRon's Blog文章的代码集合。没有按照什么路线学习,就是学到什么就是什么了,看上去特别乱,我自己有时候也非常懵逼,然后看到道长前辈的项目Swift-30-Projects,就整理、筛选一下,这样看着清晰一点,找起来也方便。
- 语言方面大部分是Swift,个别项目是OC。
- 以数字为目录只是为了记录项目数和排序,没有特殊意义。
- 下载单个项目可以参考 DownGit:怎么下载github中某个文件夹?
- http://www.appcoda.com/
- https://www.ioscreator.com/
- https://www.raywenderlich.com/
- 30DaysofSwift
- Swift-30-Projects
??
表示有疑问的还没完成的项目。题目后面的如UIKit&Foundation,AVFoundation是分类名。
StopWatch是对Timer
简单使用。
加载字体文件修改字体
用AVFoundation
来识别二维码or条形码
用CoreImage进行面部识别
语音转换为文字
用户当前位置
本地通知
颜色渐变
http://www.appcoda.com/healthkit-introduction/
分享到推特
定制导航栏
button的阴影
音乐的声音的渐变
日期选择器使用
UIStepper
的使用
SpriteKit
背景设置
定制TabBar
改变app在Home screen时的显示名。修改info.plist中Bundle display name。
通过UIWebView
打开PDF文件
检查英语单词拼写是否正确(UITextChecker)
视图拖动
震动
XML文件解析。知识点:XMLParser
在地图上划线。知识点参考
UIView
的tag
使用和事件添加
音频的播放、暂停和停止。知识点:AVFoundation
应用内搜索框架Core Spotlight
简单使用
try? ?
CoreImage
的图片滤镜功能
table的cut/copy/paste操作
UIAlertController的简单使用
拍摄视频和查看图库
搜索地图。知识点:MapKit
MKLocalSearchRequest
MKCoordinateSpan
MKLocalSearch
分享功能。 知识点:UIActivityViewController
,UIActivityType
UICollectionViewController
的基本使用
UIPinchGestureRecognizer
的使用。知识点UIPinchGestureRecognizer
, CGAffineTransform
。
UserDefaults的基本使用。程序被杀掉后数据还能保存。
屏幕边缘手势UIScreenEdgePanGestureRecognizer
的使用
向日历中添加提醒。知识点:EventKit
, EKEventStore
。
- 知识点
ProcessInfo().operatingSystemVersion
- Application Extension
为TableView添加搜索栏。知识点:UISearchController
, NSPredicate
(https://www.ioscreator.com/tutorials/move-view-behind-keyboard-ios8-swift)
UIScrollView
的简单使用
状态栏中的菊花转
TouchID的简单使用
类似2
长按手势
UICollectionViewController的简单使用
调用信息APP发送短信。知识点:MessageUI
MFMessageComposeViewControllerDelegate
MFMessageComposeViewController
。
UISwipeGestureRecognizer
(某个方向上的滑动)手势使用
模糊效果。知识点:UIBlurEffect
,UIVisualEffectView
。
UISnapBehavior
效果。
画圆
检测震动事件。知识点:UIEventSubtype
, UIEvent
.
用UIScrollView
做左右翻页效果。
TableView添加行。
- 参考
- https://developer.apple.com/library/content/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/BezierPaths/BezierPaths.html
- 知识点
UIBezierPath
create vector-based pathsCGContext
CAShapeLayer
- goal in this tutorial is to give you practical guidelines on how to create bezier paths and how to use shape layer objects along with them
Building a Custom Content View with UITableView and MapKit
- https://www.appcoda.com/custom-content-view/
- 以 Cureo(http://curetoapp.com/) 应用的为例来展示
- FirebaseTutorial
- Introducing Firebase with Swift 3: Login and Sign Up
- AdMob notifications cloud messaging and storage
- 步骤
- 设计UI
- 在Firebase中创建项目
- 在iOS项目中添加
GoogleService-Info.plist
文件 - install pod
- 在iOS项目中添加
《Intermediate iOS 10 Programming with Swift》
- appcoda 网站书籍Intermediate iOS 10 Programming with Swift的学习笔记。Intermediate每一节是一个项目
SpriteKit学习
CALayer学习
QuickLook
的使用
本地化
IBDesignable和IBInspectable的使用
本地视频播放
用UICollectionView
实现照片横屏滑动
视频背景
使用gif作为背景。但大小不好控制!!
Twitter开启动画
手势处理集合
CoreML的简单使用
http://www.appcoda.com/google-street-view-ios/
与86类似,只是model用的是识别花的Flowers.mlmodel
CABasic Animation clock 基础动画
- OCJS1 使用URL拦截的方式进行JS与OC互相调用
- OCJSMessageHandler SwiftJSMessageHandler
NSURLSession(delegate) NSURLSession(block)
https://yq.aliyun.com/articles/39473?spm=5176.8091938.0.0.YHIb2U
https://www.kancloud.cn/digest/data/106700
参考:深入浅出-iOS的TCP/IP协议族剖析&&Socket
用UIWebView
加载gif图片。
简单的滑动菜单(NSLayoutConstraint)
WKWebView
播放在线视频
定制CustomTableViewCell
简单的下拉菜单
Masonry实现一个计算器界面
通过UIScrollView
实现Snap聊天页面左右滑动
Quora启动的加载动画
Tumblr添加操作时的动画
tab bar controller, navigation controller, scoll view, table view and storyboard的使用
UILabel, UITextField, UISegmentedControl, UIDatePicker, UISlider, UISwitch, UIButton and UITextView等UIKit controls的使用
tableview add, edit and delete
set up height for table view cells dynamica lly based on its content
UISearchController和UISplitViewController的使用 https://www.raywenderlich.com/157864/uisearchcontroller-tutorial-getting-started
模仿fb的个人页面
Operation 和 OperationQueue 使用
UICollectionViewController学习
SnapKit实现一个计算器界面
数据持久化的几个例子