Hi,
When we swipe pages, HMSegmentedControl's UIControlEventValueChanged event is not getting triggered.
I've added an action to pageControl which listens to UIControlEventValueChanged event. which is not getting called on page swipe. Any help?
I tried adding an observer to selectedSegmentIndex property of pageControl, but this is not working on right swipe gesture.
I even tried finding swipe gesture of pageViewController but that property is nil.
The solution I see is to expose - (void)setSelectedSegmentIndex:(NSUInteger)index animated:(BOOL)animated notify:(BOOL)notify function from HMSegmentedControl class and call it on didFinishAnimating of UIPageViewController with notify=true.
@hons82 Please let me know, if you have anything in mind. Thanks :)
Hi,
When we swipe pages,
HMSegmentedControl'sUIControlEventValueChangedevent is not getting triggered.I've added an action to
pageControlwhich listens toUIControlEventValueChangedevent. which is not getting called on page swipe. Any help?I tried adding an observer to
selectedSegmentIndexproperty ofpageControl, but this is not working on right swipe gesture.I even tried finding swipe gesture of
pageViewControllerbut that property is nil.The solution I see is to expose
- (void)setSelectedSegmentIndex:(NSUInteger)index animated:(BOOL)animated notify:(BOOL)notifyfunction fromHMSegmentedControlclass and call it ondidFinishAnimatingofUIPageViewControllerwithnotify=true.@hons82 Please let me know, if you have anything in mind. Thanks :)