ITWLoadingPanel 是一个用于添加下载信息面板的类,由 Intotheweb 创建
ITWLoadingPanel 适用于 iPad 和 iPhone 的任意方向
显示它
[ITWLoadingPanel showPanelInView:self.view title:@"Title" cancelTitle:@"Cancel"];
隐藏它
[ITWLoadingPanel hidePanel];
从 ITWLoadingPanel 继承子类并在 awakeFromNib 中进行自定义
- (void)awakeFromNib {
[super awakeFromNib];
self.backgroundColor = [UIColor redColor];
[self.cancelBtn setBackgroundImage:image forState:state];
self.cancelLabel.textColor = [UIColor yellowColor];
self.titleLabel.textColor = [UIColor blackColor];
}
ITWLoadingPanel 与 ARC 和非 ARC 项目完全兼容