iOS引导页动效OC版

iOS 项目的引导页动画效果,Objective-C 写的那种,最近看到一个挺清爽的实现,分享给你。

UIView 的动画块做滑动、淡入淡出这些效果,配合UIPageViewController或滚动视图切页,响应也快,体验还不错。

项目叫ios-引导页动效 OC 版.zip,代码不复杂,目录清晰,guideDemo应该是主入口,里面的ViewController引导逻辑。动画主要靠animateWithDuration:,也有些地方用了CAKeyframeAnimation搞点花样。

布局这块,基本靠Auto Layout,适配不同尺寸屏幕问题不大。支持跳过引导页这种常规交互,通过NSUserDefaults记录用户行为,这点还挺实用。

项目没有太花哨的封装,适合初学者上手看看,也方便你根据自己需求改造。如果你做 OC 项目,还想给新用户一个顺滑的欢迎体验,可以试试套上这套逻辑。

动效相关的知识想拓展一下,可以看看Core Animation(二)动画基础,讲得还挺通俗。

zip
ios-引导页动效OC版.zip 预估大小:200个文件
file
.DS_Store 6KB
file
Info.plist 680B
file
guideDemoTests.m 897B
file
HEAD 163B
file
master 163B
file
exclude 40B
file
index 10KB
file
COMMIT_EDITMSG 15B
file
bf75e989331ba6badf2bbf91fdcdd389e50789 3KB
file
0314a2a0a95c53db1a2c0825c7199dba4fb9e9 907B
file
e66867ff7e963f40964522430fd5558f02d87e 147B
file
9fe21d181dd5287551257ff445f670f58a7cef 40KB
file
236c65348164bf01a6f5e909f07ea57ade94ce 171B
file
b70f9dbdf67bbe26690dabcffd51d649eb8d1e 3KB
file
14e0b013b6c644f5b46cf99255bc4597473075 146B
file
19f6f1765c225a3e2ed3445157b5e8299965cf 147B
file
d09cae9abe858a068aa43ff5e903d365593fb0 147B
file
7163abf3f21541508ef8ce07a084869d019fe0 210B
file
6c23c43adc88621ce3abfbd1585c8792bd165c 339B
file
b13783f84fefc72bfafedd69ec829ed18c9526 146B
file
e77ff067ab0c1424a5a3652d0f9433f952e929 2KB
file
ad432651a0cd33b851a0616a6f600a6b65b2c9 148B
file
a09d1e02de4a72382d45bd6cf54b92b3a659c6 12KB
file
0279b2b2237a4d37e297af38c4800e3dbcc82f 169KB
file
21921f6e182b19117694ccef2fe8cc53015d8f 218B
file
1dc3294ab680c56c801e16252597478ce60bc1 69B
file
8d3dd4f30b9c3d3f2c133b39421601310fb691 147B
file
43a3f1230d8ede892e205fc7c3b73b512269ec 173B
file
6f018087dce3a7057d47646f2899fb20a0ee82 147B
file
f761a90cb7d67fdb1c60ac1962d5bda561cc8d 8KB
file
f07eb6219224081be4b911c8d1deccbb98fc59 286B
file
45950c05f330648ee4c8d71f39b411990eca93 131B
file
eab2ce39ace669e38967b0b7baec33f18b59eb 94B
file
f8869dea97ea8febb592395cd5618a3f9d4800 256B
file
ee1a8cf54b5827d7e27e33f7ca5af9d2f5b607 16KB
file
4a164c918651cdd1e11dca5cc62c333f097601 65B
file
dfa57537670c499e310512c1ee3a2f7d195ca1 104B
file
5dc4fee4670f79ac5aaea2bd0c520a72214b80 482B
file
71292575aa3496cc3553e2bab51d9732c722dd 10KB
file
bbe9214dc5c8d0b9d318083603617bbe1bb031 171B
file
8c98f7461bf98b2bc7e061150d8021121ad277 161B
file
3c72cccc36238ce16941b94f50f72688a45e8a 146B
file
9b584a60578d0b62c25cc170169711d74e63cc 146B
file
c303257407911334f8b72db5691bf1048b3b99 100KB
file
a2f2531d7bef161d4fd4c7e952bf690ee644dd 147B
file
a81fc1e70414e515f1a1681ba750b606e63f92 15KB
file
9a234ec2679305e0c445581dd6d566a3506fab 97B
file
833f024c6f9c9f346c4df456f1118de923f58d 5KB
file
e2ac3be9ca64424c22a8401661f4803671023c 59KB
file
64b195d2cfa0b7649dea6442bfcd2206ac9792 11KB
file
5de185bfbd63062a60c078b906f3648213a301 4KB
file
3c1b27e2745d25256f4e72b661a1884079f548 147B
file
4c4d8ae492253a4f08b57e473c05e2bf178916 146B
file
a152683c3c3dd4d19a2ab6983d0a619ec30aef 452B
file
2f4916d481dd3b2f8ce61993026e9a2ef7cb7b 147B
file
3894515c7c7622ac5ec2719f13b2d6b9c5206a 135B
file
29698c4c56ae1c65c132f2754a23d888259a74 781B
file
131211f3c3bee1ed9acdc83f63355f05fb56e5 4KB
file
5baf008e1d88ed4ea0a97684156a9a00ccae6b 103B
file
9725310942d1d4083b5d03e3e2229d978f0afe 147B
file
be8dd71ed0cca861c69bc37d76e4e08ece47eb 33KB
file
620d2ca4a048563ccc9cfabf673652bd1fbb0c 323B
file
15f90058b27d23bcd62fa654e231683ab8f1a5 147B
file
bf7f42b7757b3076a7d2f5afc476488f6613e0 59B
file
b404a29fe80a441f4f0a1eb39a42abfeb1b3af 440B
file
f3f97d1b6e9d8d29bb69a88c4d89ca752bd937 807B
file
fdf6394c97f842f64266dbd9dd73e83e7a54e4 147B
file
ab50310f7a25477d1e95903185a83ff4a276aa 44KB
file
6a650da79ea4cfe51d614e81218d63278cff57 946B
file
e67c4dfe6d34a6dfe38dc931235334f126c1ad 10KB
file
e68ddcea712df47160a898bae2bb72083af84a 2KB
file
434f22ac262898996afbe935f58c7bc9123aeb 146B
file
415836dfcba4ab675baefd2d4ac15a1143288e 51B
file
0eafedf00512da20327ea3c97fc086dcf2765a 3KB
file
1893e518ed78d4b152a3d00877d60765bbff6a 67KB
file
957cea6ca06157ea27b87e4b51cc2da1750610 631B
file
56f597685ccea94c2f13a76145345dd139a6db 166B
file
3e9dfc936bcdb38a0f43d8d19d652e91a481cd 147B
file
a56bad9072a2d5826def217da570c840071de1 147B
file
e98af23d391ddd93a0c47f4113cb2fb64606d5 494B
file
fb367e9bbdf10ab33117d3363bb44b735d319a 143B
file
94144b6a1450e628b56e8a92491d7467355aa3 147B
file
b41aea3ed8e32d24e15270083cccd97f12ea46 66KB
file
5c0e26198492243579240a0c6cb8b8a14ea4ad 146B
file
fe9f69d997ef96bb7d6a9379586f094b6a47a6 58B
file
9e86cb0ee8ef47b57a466920931e6fc8f86a5b 15KB
file
a007a80ac7969410e1a95ffe2da075b511b8fe 147B
file
72a33110890c4ea18501df738fa02e0ab618c0 685B
file
6afe6fab8420e827a82aea56a57c27610c6f13 63KB
file
51fddb6043ca04c516551704b2d36f7cfef673 83KB
file
393eba9d8d1cc5002c955db9af3c44c0c26af6 42KB
file
c15d3e5c53ff7912d84066815cabb15ec5ead4 146B
file
e30173344519cdbf0bd75b542c1f18470f7667 8KB
file
39c060a761265d6cb205b842bc3452871dcc37 147B
file
57115e8e08e84fd90f435202c05eaaa2f6f03f 3KB
file
21c654cec90a30013ba3c6bb6f0590ee0d4630 130B
file
b616f0e8f4487791d50e620e6df67037c621da 57B
file
1ef3660071a8f73e0cb9a532335a08e467d5d2 147B
file
7ea9b26e3d05946f392a4e7345af4b2751ea19 403B
file
64c0769ef1ddf383b0b61c727fcfea400e6263 14KB
file
7afdf67010a0ab49840f3269bb2e0f03cb6074 146B
file
85a186805a50205c9b5bc0b2281a898d6f8753 310B
file
c65914010972b1aebf7e4cea19913820affe23 95B
file
a0cfe7ff393833553c59b4911182a93a1d0c52 147B
file
d8d47a5590af5b16ed292478e2758e2f187101 151B
file
d90add06f76a38f19932bc1c5f7dfb4178b7ea 147B
file
3cd32f0c6e48573e23a9fa363ed0898db56b78 5KB
file
e8c1dfb4f61b0017b3fd283547a4f9b4ad6970 14KB
file
f79be2db0cbe82ca08403e72eec08c9432dc1f 59KB
file
d953d1c5d9962535bd68ccae9734dbf8f35bfd 3KB
file
d722e5f00de9b26ab60ea09f890cdd90f0054d 595B
file
HEAD 23B
file
config 137B
file
master 41B
file
README.sample 177B
file
description 73B
file
YLImageView.m 5KB
file
5_run.gif 5KB
file
YLImageView.h 253B
file
YLGIFImage.h 744B
file
YLGIFImage.m 9KB
file
.DS_Store 6KB
file
Info.plist 1KB
file
main.m 326B
file
LaunchScreen.storyboard 2KB
file
Main.storyboard 2KB
file
2_04.png 44KB
file
Contents.json 301B
file
3_05.png 16KB
file
Contents.json 301B
file
3_09.png 7KB
file
Contents.json 301B
file
2_02.png 12KB
file
Contents.json 301B
file
Contents.json 301B
file
4_02.png 67KB
file
5_01.png 42KB
file
Contents.json 301B
file
3_02.png 2KB
file
Contents.json 301B
file
1_04.png 9KB
file
Contents.json 301B
file
2_03.png 15KB
file
Contents.json 301B
file
3_06.png 10KB
file
Contents.json 301B
file
1_03.png 33KB
file
Contents.json 301B
file
Contents.json 301B
file
5_05.png 175KB
file
1_02.png 61KB
file
Contents.json 301B
file
3_07.png 40KB
file
Contents.json 301B
file
3_01.png 3KB
file
Contents.json 301B
file
4_01.png 100KB
file
Contents.json 301B
file
2_05.png 67KB
file
Contents.json 301B
file
1_01.png 3KB
file
Contents.json 301B
file
5_02.png 6KB
file
Contents.json 301B
file
3_03.png 13KB
file
Contents.json 301B
file
4_03.png 11KB
file
Contents.json 301B
file
1_03(1).png 63KB
file
Contents.json 304B
file
4_04.png 6KB
file
Contents.json 301B
file
3_04.png 14KB
file
Contents.json 301B
file
2_01.png 83KB
file
Contents.json 301B
file
5_04.png 4KB
file
Contents.json 301B
file
1_05.png 10KB
file
Contents.json 301B
file
5_03.png 15KB
file
Contents.json 301B
file
Contents.json 301B
file
3_08.png 60KB
file
Contents.json 62B
file
1_07.png 15KB
file
Contents.json 301B
file
GuideViewController.m 13KB
file
GuideViewController.h 215B
file
AppDelegate.h 269B
file
GuideViewController.xib 44KB
file
AppDelegate.m 2KB
file
Info.plist 680B
file
guideDemoUITests.m 1KB
file
guideDemo.xcscmblueprint 1KB
file
contents.xcworkspacedata 154B
file
UserInterfaceState.xcuserstate 26KB
file
xcschememanagement.plist 661B
file
guideDemo.xcscheme 4KB
file
project.pbxproj 23KB
...
zip 文件大小:2.11MB