You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! In my project I'm using displayActivityIndicator() in order to wait during a sync/download. I would like to avoid that the user can dismiss the download and close the activity indicator.
My idea was to insert self.view.isUserInteractionEnabled = false like the example below. However it doesn't work I can dismiss the item. Any idea ? Thanks a lot in advance!
self.page.actionHandler = { (item: PageBulletinItem) in
item.manager?.displayActivityIndicator()
self.view.isUserInteractionEnabled = false
iControl.ICSes.login(user: "xxxx", pass: "xxx") { (loginStatus) in
switch loginStatus {
case .online:
iControl.ICSes.synchronize { (synchronizeStatus, error) in
if synchronizeStatus {
//Two next lines avoid to have multiple refresh buttons iterations
self.refreshMode.removeFromSuperview()
self.collectionView?.reloadSections(IndexSet(0 ..< 1))
self.collectionView.reloadData()
self.page.nextItem = BulletinDataSource.makeCompletionPage()
item.manager?.displayNextItem()
self.view.isUserInteractionEnabled = true
self.tipView?.dismiss()
self.refreshMode.stop()
} else { NSLog("Error: \(error!.stringValue)") }
}
case .local: break
case .none: break
}
}
}
The text was updated successfully, but these errors were encountered:
Hi! In my project I'm using displayActivityIndicator() in order to wait during a sync/download. I would like to avoid that the user can dismiss the download and close the activity indicator.
My idea was to insert self.view.isUserInteractionEnabled = false like the example below. However it doesn't work I can dismiss the item. Any idea ? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: