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
I'm having a problem when using MRoundedButton in an iOS8 today extension. Sometimes the button would immediately deselect itself upon selection. I found that setSelected being called twice, is what's causing it. It's set to "YES" when beginTrackingWithTouch is called and then set to "NO" when endTrackingWithTouch is called. Additionally I found that sometimes beginTrackingWithTouch is called twice. I'm assuming this is an iOS8 bug. For now I commented out the code that performs the selection in the methods:
and I'm performing the selection manually in my action method by calling [sender setSelected:YES] or NO depending on the situation and it seems to be working fine.
The text was updated successfully, but these errors were encountered:
Hi @jtoronto , I think you can try to set restoreSelectedState to NO first, this is used to disable the selected state been restored when endTrackingWithTouch finished
I'm having a problem when using MRoundedButton in an iOS8 today extension. Sometimes the button would immediately deselect itself upon selection. I found that
setSelected
being called twice, is what's causing it. It's set to "YES" whenbeginTrackingWithTouch
is called and then set to "NO" whenendTrackingWithTouch
is called. Additionally I found that sometimesbeginTrackingWithTouch
is called twice. I'm assuming this is an iOS8 bug. For now I commented out the code that performs the selection in the methods:beginTrackingWithTouch
continueTrackingWithTouch
endTrackingWithTouch
and I'm performing the selection manually in my action method by calling
[sender setSelected:YES]
or NO depending on the situation and it seems to be working fine.The text was updated successfully, but these errors were encountered: