现在的位置: 首页 > 综合 > 正文

tabbar 添加图片

2018年08月22日 ⁄ 综合 ⁄ 共 1377字 ⁄ 字号 评论关闭

UIImageView *test=[[UIImageView alloc]initWithFrame:CGRectMake(10, 0, 20, 20)];
    test.image=[UIImage imageNamed:@"icon57.png"];
    [self.window addSubview:test];

    test.window.windowLevel=UIWindowLevelStatusBar;

UIApplication *app = [UIApplication sharedApplication];
    __block UIBackgroundTaskIdentifier bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
        dispatch_async(dispatch_get_main_queue(), ^{
            if (bgTask != UIBackgroundTaskInvalid) {
                [app endBackgroundTask:bgTask];
                bgTask = UIBackgroundTaskInvalid;
            }
        });
    }];
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        
        self.timer = [NSTimer scheduledTimerWithTimeInterval:(1.0) target:self selector:@selector(upload) userInfo:nil repeats:YES];
        [self.timer fire];
        [[NSRunLoop currentRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes];
        [[NSRunLoop currentRunLoop] run];
        
        dispatch_async(dispatch_get_main_queue(), ^{
            if (bgTask != UIBackgroundTaskInvalid) {
                [app endBackgroundTask:bgTask];
                bgTask = UIBackgroundTaskInvalid;
            }
        });
    });

定时器后台执行。

1、不能绕过苹果的付费渠道

2、不能用用到苹果的标志

3、图标不能点击,不能点击的图标要置灰,或者直接隐藏。

4、截屏功能要用iPhone自带的

5、简介不能提到Android

6、最好不要用积分墙

7、如果有登录功能,必须提供测试账户

8、涉及到抽奖活动,必须声明和苹果公司无关

9、不允许beta版

10、不能引导用户给好评

11、注意 “iPhone iPad ”的大小写问题

12、英文简介写得不好就直接用中文

13、不能出现 “越狱”

14、不能添加退出按键

15、不能使用私有API

抱歉!评论已关闭.