     public var releaseResourcesWhenAlertDismissed: Bool = true
     
     private var alertController: UIAlertController!
-    private var alertView: UIAlertView!
+    private var alertView: BPAlertView!
     private var actions: [String : BPCompatibleAlertAction]
     private var actionObservers: Array<NSObjectProtocol> = []
     public var resourcesHaveBeenReleased: Bool = false

        // Clean up any other objects that may be containining references to self and prevent self from being deallocated
        actions.removeAll(keepCapacity: false)
        textFieldConfigurations.removeAll(keepCapacity: false)
        //alertView.delegate = nil
        alertController = nil
        
        resourcesHaveBeenReleased = true
    }
    

        }
        self.actionObservers.removeAll(keepCapacity: false)
    }
}
