您的位置:首页 > 大数据 > 人工智能

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)}

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: