简易画板Demo UIKit绘图练习

iOS 开发的简易画板 Demo,挺适合拿来练手。核心功能就是让你在屏幕上用手指画画,响应也快,逻辑也清晰。用了UIPanGestureRecognizer来搞定拖动,用UIBezierPath来画线,配合UIGraphicsGetCurrentContext渲染,基本就是一个小型的“移动端画图”。如果你搞过“画图”App,就会觉得这玩意儿蛮眼熟。嗯,像是手指版的Mspaint。支持换颜色、调粗细,橡皮擦、清屏这些功能也都有,开发者自己加点逻辑就行。路径数据还能保存成 JSON,甚至导出图片,做个小画板 App 完全没问题。

zip
Mspaint.zip 预估大小:17个文件
folder
Mspaint 文件夹
folder
Mspaint 文件夹
file
MspaintAppDelegate.h 402B
file
main.m 360B
file
MspaintAppDelegate.m 4KB
file
ViewMode.h 288B
file
Mspaint-Info.plist 1KB
file
ViewMode.m 3KB
file
MspaintViewController.h 239B
file
Mspaint-Prefix.pch 317B
file
MspaintViewController.m 1KB
folder
en.lproj 文件夹
file
MspaintViewController.xib 5KB
file
InfoPlist.strings 45B
folder
Mspaint.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 152B
folder
xcuserdata 文件夹
folder
macbookpro.xcuserdatad 文件夹
file
UserInterfaceState.xcuserstate 18KB
file
project.pbxproj 12KB
folder
xcuserdata 文件夹
folder
macbookpro.xcuserdatad 文件夹
folder
xcschemes 文件夹
file
Mspaint.xcscheme 3KB
file
xcschememanagement.plist 479B
folder
xcdebugger 文件夹
file
Breakpoints.xcbkptlist 91B
zip 文件大小:27.83KB