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
{{ message }}
This repository was archived by the owner on Sep 6, 2022. It is now read-only.
there is an error comming while after somethime the project have runned. i am using the LIHImage slider inside the tableview of every cell present in home viewcontroller present in tabbar. after running the project when i shifted to another item in tabbar the error was occuring "unexpectedly found nil while unwrapping the value" in @objc func pageSwitchTimer(_ sender: AnyObject) {
if currentIndex == self.slider.sliderImages.count - 1 {
self.pageController.setViewControllers([self.contentViewController(atIndex: 0)], direction: UIPageViewControllerNavigationDirection.forward, animated: true, completion: { (complete) -> Void in
self.currentIndex = 0
})
} else {
**/* here unexpectedly found nil while unwrapping the value. */** self.pageController.setViewControllers([self.contentViewController(atIndex: self.currentIndex+1)], direction: UIPageViewControllerNavigationDirection.forward, animated: true, completion: { (complete) -> Void in
self.currentIndex = self.currentIndex + 1
})
}
}