     public func noticeInfo(text: String, autoClear: Bool = true, autoClearTime: Int = 0) {
         SwiftNotice.showNoticeWithText(NoticeType.info, text: text, autoClear: autoClear, autoClearTime: autoClearTime)
     }
-    public func pleaseWait() {
-        SwiftNotice.wait()
+    public func pleaseWait(text: String = "") {
+        SwiftNotice.wait(text)
     }
     public func noticeOnlyText(text: String) {
         SwiftNotice.showText(text)


extension UIViewController {
    /// wait with your own animated images
    public func pleaseWaitWithImages(imageNames: Array<UIImage>, timeInterval: Int) {
        SwiftNotice.wait(imageNames, timeInterval: timeInterval)
    }
    // api changed from v3.3
    public func noticeTop(text: String, autoClear: Bool = true, autoClearTime: Int = 0) {

            ai.startAnimating()
            mainView.addSubview(ai)
        }
        if text.length > 0 {
            let label = UILabel()
            label.text = text
            label.numberOfLines = 0
            label.font = UIFont.systemFontOfSize(13)
            label.textAlignment = NSTextAlignment.Center
            label.textColor = UIColor.whiteColor()
            mainView.addSubview(label)
            let size = label.sizeThatFits(CGSizeMake(UIScreen.mainScreen().bounds.width-frame.width-31, UIScreen.mainScreen().bounds.height))
            label.ks_size = size
            label.ks_left = frame.width
            frame.size.width = label.ks_right + 21
            if size.height > frame.height {
                frame.size.height = size.height
            }
            label.ks_centerY = frame.height/2
        }
        window.frame = frame
        mainView.frame = frame
        
