ios引导页简单易用(可满足一般设计的需求)
2017-01-22 16:18
337 查看
先看下效果(图片是在网上随便找的)
Untitled.gif
把指导页图片传入guideImages中
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSArray* guideImages = @[@"welcomePage_1",@"welcomePage_2",@"welcomePage_3"]; AppInstructionView* guide = [[AppInstructionView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)]; guide.guideImages = guideImages; [guide rewritePageControl]; [self.window.rootViewController.view addSubview:guide]; return YES; }
如果小圆点不符合需求则在下面修改
currentColor传入当前圆点的颜色,nextColor传入其他的颜色,size表示大小
#pragma mark - 重写pageControl方法 -(void)rewritePageControl{ _pc = [[CHPageControl alloc]initWithFrame:CGRectMake(_pageSize.width * 0.5, _pageSize.height - 50, 0,0) currentColor:COLOR(72.0, 160.0, 220.0, 1) nextColor:COLOR(99.0, 99.0, 99.0, 1) size:8]; [_pc setBackgroundColor:[UIColor clearColor]]; _pc.userInteractionEnabled=NO; [_pc setCurrentPage:0]; [_pc setNumberOfPages:_guideImages.count]; [self addSubview:_pc]; }
相关文章推荐
- C++中提供了多种基本的数据类型。实际上,这些远不能满足我们的需求,如复数(第10章的例子大多是处理虚数的),再如分数。本任务将设计一个简单的分数类,完成对分数的几个运算。一则巩固基于对象编程的方法,
- 简单权限系统设计需求
- ORCL数据库中进行一些相应的操作 基本上就满足的了一般的需求 ,以下是详细步骤>>
- H.264视频编解码SoC满足高清DVR设计需求
- ios APP几个简单设计原则
- ios开发中的基本设计模式 (简单归类)
- Vs2005之简单日志工具的制作--1.需求分析与功能设计
- iOS常用设计模式——简单工厂设计模式
- 网站如何做到完全不需要jQuery也可以满足简单需求
- 网站如何做到完全不需要jQuery也可以满足简单需求
- 【原】iOS 设计中 图片后期简单处理的完美组合
- 设计满足用户需求的搜索引擎 类化搜索结果
- 如何设计满足用户需求的产品界面?
- 不要盲目满足用户需求,造成过度设计
- 产品经理的四点思考:不该简单满足用户需求
- [PowerDesign]数据库设计:需求模型(RQM)的简单介绍与案例教程(二)
- 要保持设计的一致性还是满足用户需求?
- 不要盲目满足用户需求,造成过度设计
- [PowerDesign]数据库设计:需求模型(RQM)的简单介绍与案例教程(一)
- 02 vim 配置文件的简单修改方法(满足C语言编程需求)