It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am writing a writing app for Kids.
I need to enforce writing along a define path like in Dora ABC apps. For example, writing A.
When user touch and draw, it draw only when user finger are along the defined path and can detect whether user follow that path or not.
My path are defined in UIBezierpath.
I try to use CGRectContainsPoint but it seem to be too much code when I have so many alphabet.
Any suggestion is much appreciated.
Thanks!
you may try another approach-
Using Custom gestures in ios: Using this feature you can have predefined gestures for alphabets and you can use these gestures for detection. demo code available at https://github.com/britg/MultistrokeGestureRecognizer-iOS
Or if you want to implement it from scratch- http://blog.federicomestrone.com/2012/01/31/creating-custom-gesture-recognisers-for-ios/
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am planning to make a simple OSX drawing/painting app in objective-c/cocoa and thinking that the best approach is to (in a nutshell) use quartz in an NSView sub-class.
Question: should I look into using OPEN GL or will Quartz do the trick? Will using OPEN GL mean a big performance advantage?
The app would be very basic and should (for example) be able to:
-paint in color
-paint with bitmap textures
-use gradient fills
-programmatic paint brushes
There's already "an app for that" - it's the Sketch example available from Apple's developer site.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to process a markdown string to display it in either a scrollable UIView or NSView on iOS and OSX in Objective-C/Cocoa. Is there a library available to implement this?
I have had a quick look on Google and there doesn't seem to be any obvious library to use.
I'm not sure if there is a library out there for Markdown, but if I had to add support for it in my app I'd directly translate it to HTML markup and show that in a webview. Provided it doesn't have to be editable, of course.
Following up on what Lvsti said, if you make use of one of the many Javascript Markdown interpreters through a Webview, you wouldn't even need to do the translation yourself; just make sure the script is loaded in your Webview and fire the appropriate Javascript selector to feed in the Markup.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i am very new to objective-c, but i want to make some app that does the following:
1 It has object library (shapes, text fields and so on), i keep in on a panel on my app.
- the task is to drag a shape to the main form and place it somewhere where i like on my form: kind of same thing like in the Interface builder.
2 resize the shape (Actually an UIIMage).
It's pretty same with the Interface builder.
I would very appreciate for any example code that helps me to solve this task.
EDIT:
Exactly the same but for iOS exists here:
https://github.com/spoletto/SPUserResizableView
As i can see in the code it's not very easy task so this question is considered answered.
You can start by checking this out:
https://developer.apple.com/library/mac/#samplecode/DragItemAround/Introduction/Intro.html
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am working on app like on Pic Jointer / Diptic. I am successfully able to create two separate view which are re-sizable separately, but I want to implement an adjustable view like the Pic Jointer and Diptic apps.
I have tried lot to make a UIView similar to some example apps, however I've failed to implement this kind functionality. I have also successfully been able to create two separate UIViews which can be resized and dragged.
Can any one guide me how can I achieve this kind of functionality? Tutorials, links, explanations, open source libraries, anything?
What kind of functionality would this require, and how would one go about implementing that using UIImageView and / or UIView?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am trying to develop a drawing/painting app for my portfolio.
The functions I have now are "Write", "Change Size", and "Change Color".
Now, I am trying to implement an eraser tool that will totally erase what's written. What I did so far was copy the same code I used for writing, using white as the color, but instead of erasing what's written it just overwrites the first one. Is that the right way, or is there another way to implement this?
I don't honestly know too much about OpenGL as of this writing, but I suspect that painting over with white is the wrong thing to do. Consider what happens if you decide to allow users to change the background color. The your code gets a little more complicated. What if you decide to add support for gradients?
I suggest finding a way to simply clear the data at a given point, for example, where your brush is. You might want to look at an open source graphics program, like GIMP, to see how they do it.