iphone-common-codes-ccteam源代码 CCUIActivityIndicatorView.m

//  
// CCUIActivityIndicatorView.m
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//


#import "CCUIActivityIndicatorView.h"




@implementation UIActivityIndicatorView(cc)


//创建系统等待状态图标
+ (UIActivityIndicatorView *)createActivityIndicatorView:(CGRect)rect
{
UIActivityIndicatorView *waitingIcon = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
waitingIcon.frame = rect;

return [waitingIcon autorelease];
}


//显示系统的昂带状态图标
- (void)show
{
self.hidden = NO;
[self startAnimating];
}


//隐藏系统的昂带状态图标
- (void)hide
{
self.hidden = YES;
[self stopAnimating];
}


@end

 

可能有更新:

googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIActivityIndicatorView.m

github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIActivityIndicatorView.m

 

你可能感兴趣的:(Activity)