SEARU.ORG
当前位置:SEARU.ORG > Linux 软件 > 正文

iOS 消息通知栏 GSMessages

GSMessages 是一款简单易用的iOS 消息通知栏控件。

主要功能特性:

  • 四种消息类型:成功、警告、失败、提示

  • 支持各种参数控制样式、动画、位置、点击等

  • 支持在任意控制器或view中显示

  • 兼容横竖屏,状态栏、导航栏透明、隐藏等

  • 纯Swift编写,兼容OC,最低支持iOS7

效果图:

示例代码:

// Type          : Success / Error / Warning / Info
// Animation     : Slide / Fade
// Position      : Top / Bottom
// TextAlignment : Left / Center / Right
self.showMessage("Some Text...", type: .Success, options: [.Animation(.Slide),
                                                           .AnimationDuration(0.3),
                                                           .AutoHide(true),
                                                           .AutoHideDelay(3.0),
                                                           .Height(44.0),
                                                           .HideOnTap(true)
                                                           .Position(.Top),
                                                           .TextAlignment(.Center),
                                                           .TextColor(UIColor.whiteColor()),
                                                           .TextNumberOfLines(1),
                                                           .TextPadding(30.0)]

未经允许不得转载:SEARU.ORG » iOS 消息通知栏 GSMessages

赞 (0)
分享到:更多 ()

评论 0