Whisper

加入收藏
已有 人收藏

介绍:
    打破你的UI的沉默,Whispers 窃窃私语,Shouts 喊叫或 Whistles 吹口哨。耳语是一个组件,这将使显示信息 (Alert)和应用内通知任务更加有趣,包含三种不同的视图。作者是撩妹高手,鉴定完毕。

    

    安装:

    1、CocoaPods. 在Podfile中添加:

    pod 'Whisper' 然后执行 pod install

    2、Carthage. 将以下语句写入Carthage

    github "hyperoslo/Whisper

    

    使用说明:

    For a Whisper:

    let message = Message(title: "Enter your message here.", backgroundColor: UIColor.redColor())

    Whisper(message, to: navigationController, action: .Present)

    For a Shout:

    let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar"))

    Shout(announcement, to: self)

    For a Whistle:

    let murmur = Murmur(title: "This is a small whistle...")

    Whistle(murmur)

测试环境:
  [Code4App]编译测试
效果图:
  • iOS / iPhone / iPad 打破你的UI的沉默,Whispers 窃窃私语,Shouts 喊叫或 Whistles 吹口哨。耳语是一个组件,这将使显示信息 (Alert)和应用内通知任务更加有趣,包含三种不同的视图。作者是撩妹高手,鉴定完毕。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;安装:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1、CocoaPods. 在Podfile中添加:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;pod 'Whisper' 然后执行 pod install<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2、Carthage. 将以下语句写入Carthage<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;github "hyperoslo/Whisper<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;使用说明:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whisper:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let message = Message(title: "Enter your message here.", backgroundColor: UIColor.redColor())<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whisper(message, to: navigationController, action: .Present)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Shout:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar"))<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Shout(announcement, to: self)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whistle:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let murmur = Murmur(title: "This is a small whistle...")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whistle(murmur)
  • iOS / iPhone / iPad 打破你的UI的沉默,Whispers 窃窃私语,Shouts 喊叫或 Whistles 吹口哨。耳语是一个组件,这将使显示信息 (Alert)和应用内通知任务更加有趣,包含三种不同的视图。作者是撩妹高手,鉴定完毕。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;安装:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1、CocoaPods. 在Podfile中添加:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;pod 'Whisper' 然后执行 pod install<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2、Carthage. 将以下语句写入Carthage<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;github "hyperoslo/Whisper<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;使用说明:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whisper:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let message = Message(title: "Enter your message here.", backgroundColor: UIColor.redColor())<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whisper(message, to: navigationController, action: .Present)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Shout:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar"))<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Shout(announcement, to: self)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whistle:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let murmur = Murmur(title: "This is a small whistle...")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whistle(murmur)
  • iOS / iPhone / iPad 打破你的UI的沉默,Whispers 窃窃私语,Shouts 喊叫或 Whistles 吹口哨。耳语是一个组件,这将使显示信息 (Alert)和应用内通知任务更加有趣,包含三种不同的视图。作者是撩妹高手,鉴定完毕。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;安装:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1、CocoaPods. 在Podfile中添加:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;pod 'Whisper' 然后执行 pod install<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2、Carthage. 将以下语句写入Carthage<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;github "hyperoslo/Whisper<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;使用说明:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whisper:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let message = Message(title: "Enter your message here.", backgroundColor: UIColor.redColor())<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whisper(message, to: navigationController, action: .Present)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Shout:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar"))<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Shout(announcement, to: self)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whistle:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let murmur = Murmur(title: "This is a small whistle...")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whistle(murmur)
  • iOS / iPhone / iPad 打破你的UI的沉默,Whispers 窃窃私语,Shouts 喊叫或 Whistles 吹口哨。耳语是一个组件,这将使显示信息 (Alert)和应用内通知任务更加有趣,包含三种不同的视图。作者是撩妹高手,鉴定完毕。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;安装:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1、CocoaPods. 在Podfile中添加:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;pod 'Whisper' 然后执行 pod install<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;2、Carthage. 将以下语句写入Carthage<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;github "hyperoslo/Whisper<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;使用说明:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whisper:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let message = Message(title: "Enter your message here.", backgroundColor: UIColor.redColor())<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whisper(message, to: navigationController, action: .Present)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Shout:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar"))<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Shout(announcement, to: self)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For a Whistle:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let murmur = Murmur(title: "This is a small whistle...")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Whistle(murmur)
代码评论:
登录后方可评论

  
  • 暂无评论