Differentiating between Siri remote D-pad taps and universal remote D-Pad presses

2018-01-25 Thread Ilia Katz
I am using the `pressesBegan(_ presses: Set, with event: UIPressesEvent?)` function in my view controller to capture universal remote's D-Pad's left & right arrows presses. That works fine. The problem is that taps on the Siri remote go through the same `pressesBegan` function as well (going throug

Re: Draw an arc given 2 angles.

2018-01-25 Thread Eric E. Dolecki
Thanks. I figured out things on this end. I have it now. It always seems to happen after I fire off an email :) Eric On Thu, Jan 25, 2018 at 12:57 PM Saagar Jha wrote: > > Saagar Jha > > On Jan 25, 2018, at 09:47, Eric E. Dolecki wrote: > > I've been googling without great success so far. > >

Re: Draw an arc given 2 angles.

2018-01-25 Thread Saagar Jha
Saagar Jha > On Jan 25, 2018, at 09:47, Eric E. Dolecki wrote: > > I've been googling without great success so far. > > I would like to draw a 6px thick red arc (not wedge), 0º at the top of the > screen, and from say 60° - 110º. Assume I have to create a UIBezierPath, > and then create a CASh

Draw an arc given 2 angles.

2018-01-25 Thread Eric E. Dolecki
I've been googling without great success so far. I would like to draw a 6px thick red arc (not wedge), 0º at the top of the screen, and from say 60° - 110º. Assume I have to create a UIBezierPath, and then create a CAShapeLayer with that bezier path? Then add the shape layer to a UIView that I hav