iOS Question Button Down and Up Event?

techknight

Well-Known Member
Licensed User
Longtime User
Is there a way to get a Button Down, and Up event like android?

I need something so while I am pressing a button, the app is performing a function, but stops as soon as I release it.

Works in android, but not sure how to do this in iOS?
 

techknight

Well-Known Member
Licensed User
Longtime User
Actually just bumped into SwiftButton for XUI, Maybe I can make that work with some code mods?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
can't you use the touch method?

it has press, move, release of which you can use press & release for you down and up events

Edit: sorry, I just saw 'button'... I tend to create my own 'buttons' by just using labels or images.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Darn. SwiftButton isnt going to work because the compiler is complaining that it is declared twice! so it must be bundled in some other library. This is preventing me from modifying the class to suit what I need.

And Swiftbutton isnt showing up in the designer customview either.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Nevermind I found it. it was in XUI Views. I just removed it out of that library. I could just simply copy it in but eh.

I modified the code a tiny bit to include an Up event. Nothing major. Working fine for me.
 
Upvote 0
Top