运行启动页
来源:互联网 发布:芝华仕沙发 知乎 编辑:程序博客网 时间:2024/04/29 11:48
- (void)initGuide
{
UIScrollView *scrollView = [[UIScrollViewalloc] initWithFrame:CGRectMake(0,0, ScreenWidth,ScreenHeight)];
scrollView.Delegate=self;
[scrollView setContentSize:CGSizeMake(1280,0)];
[scrollViewsetPagingEnabled:YES]; //视图整页显示
UIImageView *imageview = [[UIImageViewalloc] initWithFrame:CGRectMake(0,0, ScreenWidth,ScreenHeight)];
[imageviewsetImage:[UIImageimageNamed:@"guide1.png"]];
[scrollViewaddSubview:imageview];
[imageviewrelease];
UIImageView *imageview1 = [[UIImageViewalloc] initWithFrame:CGRectMake(320,0, ScreenWidth,ScreenHeight)];
[imageview1setImage:[UIImageimageNamed:@"guide2.png"]];
[scrollViewaddSubview:imageview1];
[imageview1release];
UIImageView *imageview2 = [[UIImageViewalloc] initWithFrame:CGRectMake(640,0, ScreenWidth,ScreenHeight)];
[imageview2setImage:[UIImageimageNamed:@"guide3.png"]];
[scrollViewaddSubview:imageview2];
[imageview2release];
UIImageView *imageview3 = [[UIImageViewalloc] initWithFrame:CGRectMake(960,0, ScreenWidth,ScreenHeight)];
[imageview3setImage:[UIImageimageNamed:@"guide4.png"]];
[scrollViewaddSubview:imageview3];
//给最后一张图片设点击事件
imageview3.userInteractionEnabled=YES;
UITapGestureRecognizer *singleTap =[[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(firstpressed)];
[imageview3addGestureRecognizer:singleTap];
[singleTaprelease];
[imageview3release];
[self.viewaddSubview:scrollView];
[scrollViewrelease];
}
- (void)firstpressed
{
[selfpresentModalViewController:[[[ViewControlleralloc] init]autorelease] animated:YES];
}
@end
- 运行启动页
- Eclipse启动运行加速
- Eclipse启动运行加速
- /etc启动运行脚本
- 开始运行启动命令
- 运行期启动函数
- 程序随机启动运行
- 自启动隐藏运行
- 运行启动命令
- 项目启动和运行
- vnc 启动运行
- ubuntu 启动运行脚本
- 开始运行启动命令
- eclipse启动运行优化
- 程序启动与运行
- Linux启动运行流程
- VirtualBox启动运行错误
- MongoDB安装启动运行
- ACM经典算法之字符串处理:字符串查找
- 向目标前进,加油
- Dance Dance Revolution - UVa 1291 dp
- 凌晨,太阳的金粉平均地洒在颗颗点缀在树叶上的露珠上,
- Sins ofa Solar Empire
- 运行启动页
- Maven使用本地jar包并打包进war包里面的方法
- XAF框架简介-C#语言
- javascript 反射
- Android(开发):自带分享图片、文本等
- 贪心算法
- 简单的神经网络模型java版本
- 枯竭时,父爱是一湾生命之水;
- 判断是否第一次进入程序