1.MBProgressHUD

GitHub地址:https://github.com/jdg/MBProgressHUD
大抵看到的主流iOS应用都集成了这个,Star
7k了,如今见到不少施用HUD隐藏时,有一个动画过程,我还觉得是友好壮大的,后来琢磨才发觉,有这么些特性animationType:

@property (assign) MBProgressHUDAnimation animationType;

typedef NS_ENUM(NSInteger, MBProgressHUDAnimation) {
    /** Opacity animation */
    MBProgressHUDAnimationFade,
    /** Opacity + scale animation */
    MBProgressHUDAnimationZoom,
    MBProgressHUDAnimationZoomOut = MBProgressHUDAnimationZoom,
    MBProgressHUDAnimationZoomIn
};

Loading效果

还足以显示1行或2行文字

圆形进度圆

条形进度条

透过自定义图片形成的效用

可以假如文字指示

2. SVProgressHUD

GitHub地址:https://github.com/TransitApp/SVProgressHUD
SVProgressHUD和MBProgressHUD效果差不多,特点就是不需要利用协议,同时也不需要注脚实例。直接通过类形式就足以调用:
[SVProgressHUD method]
[SVProgressHUD dismiss]

效果图.gif

3. JGProgressHUD

GitHub地址:https://github.com/JonasGessner/JGProgressHUD
JGProgressHUD和MBProgressHUD效果差不多,作为后起之秀,特点就是假若有键盘时,HUD可以活动进化,效果特别棒!此外自定义定制也很利索。

JGProgressHUD效果图

4. Toast

GitHub地址:https://github.com/scalessec/Toast
这多少个Toast十分经典。

// basic usage
[self.view makeToast:@"This is a piece of toast."];

// toast with duration, title, and position
[self.view makeToast:@"This is a piece of toast with a title." 
            duration:3.0
            position:CSToastPositionTop
               title:@"Toast Title"];

// toast with an image
[self.view makeToast:@"This is a piece of toast with an image." 
            duration:3.0
            position:[NSValue valueWithCGPoint:CGPointMake(110, 110)]
               image:[UIImage imageNamed:@"toast.png"]];

// display toast with an activity spinner
[self.view makeToastActivity];

Toast部分功能

当前以来,以前4种HUD就能满意基本需要,实际付出中,集成到一个Utility中就更有利于,等自我完善了在放出去分享啦

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图