fguchelaar
fguchelaar

Reputation: 4909

UISlider in Today View Extension (Widget)

I'm having troubles using a UISlider in an iOS8 Today Extension. When you start sliding the slider to the right, everything works fine. You can keep on sliding from left to right and the other way around.

However, if you start sliding to the left, the Notification Center will scroll/slide away from the 'Today' view into the 'Notifications' view.

Who can help me figure out, how to disable this behavior?

Upvotes: 6

Views: 1275

Answers (2)

user4034301
user4034301

Reputation:

Apple doesn't recommend to use slider and scroll view in widget section because there are already a swipe gesture by default (on swiping right,user moves to notification section).So replace you slider with buttons.

Upvotes: 4

DevGW
DevGW

Reputation: 703

The use of sliders and scrollviews in a today widget cause conflict on touch with built in touch gesture recognizers that apple has built into the today view.

The solution to this (as we implemented in our app) was to create a button that could be tapped and then the image of this button would change to show current state.

Upvotes: 1

Related Questions