is it possible to make custom gestures in iOS such as a zigzag, or a other lines types?
and can one link any action to a gesture. if you know an answer, or a link to an answer or exlanation, please share ... thanks
It is possible to create your own gesture recognizers. You can look at this section of the Event Handling Guide for iOS which gives information as to how you can build your own custom subclass.
Related
I found mixed answer to this question whether we should manually remove the gesture recogniser or not. Can anyone provide the better understanding on this?
This says Yes: https://forums.xamarin.com/discussion/16970/gesturerecognizer-should-manually-remove
This says No:Do I need to release a gesture recognizer?
Suggestions please.
If you are NOT talking about using Xamarin then:
No you don't, the answer on the second link you posted is right. The first link is talking about Xamarin, same rules don't apply.
This is how you attach a gesture recognizer.
https://developer.apple.com/documentation/uikit/uiview/1622496-addgesturerecognizer
Under the "Discussion" part you can see this statement:
The view establishes a strong reference to the gesture recognizer.
Whenever you see this kind of statements it can be implied that "This object will keep my added object alive since it will strongly reference it". Thus, once the object disappears my added object will go with it.
Is there a way to get custom callouts on a regular UIView in iOS?
What I am looking for is a solution similar to Quickactions in Android.
Has anyone tried to do this kind of implementation and been successful at it?
Short answer is NO, there is no built-in way to get something like this. However, you can build your own custom callout UIView and add it as a subview to the parent view.
My question is simple. Is it possible to change the gesture for selecting a cell to be a double-tap instead of the default? If so, what would be the general approach for doing so?
Thanks, in advance.
Regex.
You can use gesture recognizers to capture gesture events.
I've never seen it done in a main interface; I'd be concerned that Apple will reject it as being noncompliant to the HIG.
I want to implement a signature feature in my tabbar application. I want to add a subView to a UIScrollView or UIViewController (which ever is the more appropriate and easier). Which control should I use for it?
I want to pick the touch events on the signature view and draw on those points to get the signature. Any help would be highly appreciated.
You can use just a UIView for drawing points get touched. I needed to implement something like that and the following page was really helpful. It explains all with code. You may want to check it out.
http://www.effectiveui.com/blog/2011/12/02/how-to-build-a-simple-painting-app-for-ios/
First thing you need to read is this - http://developer.apple.com
and check this apple demo - GLPaint
after that you may check this - tutorial
I am new to Accessibility and i got a requirement to implement this feature on click of a UIButton. Can someone please help me out in providing any sample code on how to implement this?
most of the ui elements have a .accessibilityHint and .accessibilityLabel properties.
just name them appropriately and you are good to go.
if you want more detail, check this SO post: iOS accessibility: label vs hint