tirón rápido para actualizar
Yo tengo mirefreshcontroller
con unscrollview
..
self.refreshControl = UIRefreshControl()
self.refreshControl.attributedTitle = NSAttributedString(string: "Frissítéshez húzzad! :)")
self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
self.scrollView.addSubview(refreshControl)
func refresh(sender:AnyObject)
{
//my refresh code here..
self.refreshControl.endRefreshing()
}
Estoy agregando como unsubview
a unscrollView
. Funciona cuando el contenido de la página esoverflowing
la pantalla. pero el problema surge cuando no he recibido muchos datos y no esoverflowing
, elpull and refresh
La función no funciona. :(
No estoy usandotableview
.
¿Alguien puede ayudarme a resolver este problema?