EAintroPage的使用
2015-09-21 10:26
337 查看
//效果图//这个控件几行代码就可以设置一个很美观的ScrollView!func guideView(){//设置3个页面,分别设置背景和标题。 //代码实现:func guideView(){self.navigationController?.navigationBarHidden = truevar introPage1 = EAIntroPage()introPage1.bgImage = UIImage(named: "jay")introPage1.title = "晴天"introPage1.titleColor = UIColor.blackColor()introPage1.titlePositionY = 400introPage1.titleFont = UIFont.systemFontOfSize(40)var introPage2 = EAIntroPage()introPage2.bgImage = UIImage(named: "jay2")introPage2.title = "安静"introPage2.titleColor = UIColor.blackColor()introPage2.titlePositionY = 400introPage2.titleFont = UIFont.systemFontOfSize(40)var introPage3 = EAIntroPage()introPage3.bgImage = UIImage(named: "jay3")introPage3.title = "七里香"introPage3.titleColor = UIColor.blackColor()introPage3.titleFont = UIFont.systemFontOfSize(40)introPage3.titlePositionY = 400var introView = EAIntroView(frame: CGRect(x: 0, y: 0, width: 320, height: 568), andPages: [introPage1,introPage2,introPage3])introView.delegate = selfintroView.showInView(self.view)}
相关文章推荐
- rails 时间格式化
- 人类是否能够接受人工智能(AI)的存在?
- does not contain bitcode
- Xcode 添加 SVN 出现 nsurlerrordomain error 1012
- mail 发邮件
- 地址待验证----原创 【系统篇】PC 黑苹果破解版OS X Mountain Lion 10.8.X 系统大集合
- Sendmail+dovecot+saslauth+rainloop
- LeetCode Container With Most Water
- AIX nohup 不输出日志
- Failed to install xxxx.apk on device 'emulator-5554!
- 管道的应用(pipe)《深入分析Linux内核源码》 http://blog.csdn.net/wangpengqi/article/details/7996182
- hdu 1302 The Snail
- [LeetCode] Contains Duplicate
- tail -f log.txt命令的小技巧------观察日志log.txt的动态变化
- leetcode 217:Contains Duplicate
- 文字与图像的绘制
- ARC与非ARC的循环引用
- 关于AIDL进程间通信
- Codeforces 475C Kamal-ol-molk's Painting 模拟
- VS2010优化 http://blog.csdn.net/friendan/article/details/12390101