             self.performSelector(selector, withObject: window, afterDelay: NSTimeInterval(getClearTime(text,autoClearTime: autoClearTime)))
         }
     }
-    static func wait(imageNames: Array<UIImage> = Array<UIImage>(), timeInterval: Int = 0) {
-        let frame = CGRectMake(0, 0, 78, 78)
+    static func wait(text: String = "", imageNames: Array<UIImage> = Array<UIImage>(), timeInterval: Int = 0) {
+        var frame = CGRectMake(0, 0, 78, 78)
         let window = UIWindow()
         window.backgroundColor = UIColor.clearColor()
         let mainView = UIView()

    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 noticeOnlyText(text: String) {
        SwiftNotice.showText(text)


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