相关疑难解决方法(0)

在导航栏下添加进度条

我是iOS开发的新手.

我想知道在iOS 7中发送消息时UINavigationBar是否有一个名为"发送"的标题,有一个进度条正在加载,直到消息成功发送.

我的问题是:

  1. 这个酒吧是进度条吗?

  2. 在iOS 6中,进度条位于UINavigationBar

有人可以给我一些关于如何在iOS 7和iOS6上创建它的想法吗?

我还没有尝试过任何东西.我想阅读一些有关此类问题的教程或示例.

这是我的代码:

int progress = 50;

    CGRect navframe = [[self.navigationController navigationBar] frame];
    int height= navframe.size.height;
    sendView = [[UIView alloc] init];
    sendView.frame = CGRectMake(0, 0, 200, 30);
    sendView.backgroundColor = [UIColor clearColor];
    UILabel* lbl = [[UILabel alloc] init];
    lbl.frame = CGRectMake(0,0, 200, 15);
    lbl.backgroundColor = [UIColor clearColor];
    lbl.textColor = [UIColor whiteColor];
    lbl.shadowColor = [UIColor colorWithWhite:0 alpha:0.3];
    lbl.shadowOffset = CGSizeMake(0, -1);
    lbl.font = [UIFont boldSystemFontOfSize:12];
    lbl.text = @"";
    lbl.textAlignment = …
Run Code Online (Sandbox Code Playgroud)

uinavigationbar uiprogressview ios

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

ios ×1

uinavigationbar ×1

uiprogressview ×1