您的位置:首页 > 移动开发 > IOS开发

ios自定义hub指示器

2014-02-25 11:15 363 查看
UIView *loadingView
= [[UIView
alloc]
initWithFrame:CGRectMake((self.view.frame.size.width
- 80) /
2.0f, ([UIScreen
mainScreen].bounds.size.height
- 80.f)/
2.0f,
80.0f,
80.0f)];

    [loadingView
setBackgroundColor:[UIColor
grayColor]];

    [loadingView.layer
setCornerRadius:10.0f];

    [loadingView.layer
setMasksToBounds:YES];

    

   
UIActivityIndicatorView *loading = [[UIActivityIndicatorView
alloc]
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];

    [loading startAnimating];

    [loading setFrame:CGRectMake(30.f,
30.0f,
20.0f,
20.0f)];

    [loadingView
addSubview:loading];

    [self.view
addSubview:loadingView];

    [loadingView
setHidden:NO];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios hub 指示器