IOS开发 开机动画

本文小白 仅供提醒.

IOS开发 开机动画

1)        程序内部开机动画

          Lanuch Image存放


2)       接口程序的开机动画  使用AFNetWorking解析 添加UIImageView在UITabBar上

// 大小

    UIImageView *picImageView = [[UIImageView alloc] initWithFrame:tab.view.bounds];

    picImageView.image = [UIImage imageNamed:@"Default2.png"];

    [tab.view addSubview:picImageView];


    // 开机动画的创作

    AFHTTPRequestOperationManager *manger = [[AFHTTPRequestOperationManager alloc] init];

    manger.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];

    NSString *string = [NSString stringWithFormat:@"http://mapi.4399api.net/app/iphone/v2.1/index-startAd.html?version=38"];

    [manger GET:string parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {

        NSString *picString = [[responseObject objectForKey:@"result"] objectForKey:@"adimage"];

        NSLog(@"000000000000000%@", picString);

        [picImageView setImageWithURL:[NSURL URLWithString:picString]];

        NSLog(@"0000000000000000001");

        [UIView animateWithDuration:2 animations:^{

            picImageView.alpha = 0;

        }];

      

        

    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {

        NSLog(@"%@", error);

    }];

    [manger release];

    //释放

    [view release];



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值