标签:uilabel details 相等 get 1.0 view rem style oid
1 // 使用UIActivityIndicatorView来显示进度,这是默认值 2 MBProgressHUDModeIndeterminate, 3 // 使用一个圆形饼图来作为进度视图 4 MBProgressHUDModeDeterminate, 5 // 使用一个水平进度条 6 MBProgressHUDModeDeterminateHorizontalBar, 7 // 使用圆环作为进度条 8 MBProgressHUDModeAnnularDeterminate, 9 // 显示一个自定义视图,通过这种方式,可以显示一个正确或错误的提示图 10 MBProgressHUDModeCustomView, 11 // 只显示文本 12 MBProgressHUDModeText
1 //标题文本 2 3 @property (strong, nonatomic, readonly) UILabel *label; 4 5 //详情文本 6 7 @property (strong, nonatomic, readonly) UILabel *detailsLabel; 8 9 //loading动画视图 10 11 @property (strong, nonatomic, nullable) UIView *customView; 12 13 //HUD背景框 14 15 @property (strong, nonatomic, readonly) MBBackgroundView *bezelView;
设置颜色 默认为半半透明的黑色和白色的iOS 7和早iOS版本
1 @property (strong, nonatomic, nullable) UIColor *contentColor UI_APPEARANCE_SELECTOR; 2 3 //设置显示大小 4 5 @property (assign, nonatomic) CGSize minSize UI_APPEARANCE_SELECTOR; 6 7 //隐藏后从父视图中移除 8 9 @property (assign, nonatomic) BOOL removeFromSuperViewOnHide; 10 11 12 //是否显示蒙版,不过1.0.0版本被弃用了 13 @property (assign) BOOL dimBackground;
- (id)initWithView:(UIView *)view;
控制布局的属性
1 // HUD相对于父视图中心点的x轴偏移量和y轴偏移量 2 3 @property (assign) float xOffset; 4 5 @property (assign) float yOffset; 6 7 8 9 // HUD各元素与HUD边缘的间距 10 11 @property (assign) float margin; 12 13 14 15 // HUD背景框的最小大小 16 17 @property (assign) CGSize minSize; 18 19 20 21 // HUD的实际大小 22 23 @property (atomic, assign, readonly) CGSize size; 24 25 26 27 // 是否强制HUD背景框宽高相等 28 29 @property (assign, getter = isSquare) BOOL square;
1 - (void)showAnimated:(BOOL)animated; 2 - (void)hideAnimated:(BOOL)animated;
标签:uilabel details 相等 get 1.0 view rem style oid
原文地址:https://www.cnblogs.com/EchoHG/p/9298329.html