I am developing a game app in which a curve(Bezier) is required on the basis of theta provided by user and this will be in animated format. But i am not aware of openGL. Then how can i do it programatically?
Have a look at UIBezierPath
Have a look at the Quartz drawing guide.
Related
i want to draw curve with user touches two points perfectly...!but,no idea for this implementation for this functionality...!
Help with me any code or tutorial with greatly appreciated....!
Thanks...!
Look at apple's 'Drawing Shapes Using Bezier Paths' guid.
I have task to develop an application like iDesk. i have already post a question
on stackoverflow i have find a way how to recognize user draw a circle detecting circle
now i want to gesture all geometric like ellipse,rectangle or others.
i have not any idea about it please help me.
You need to be very familiar with "Core Graphics" framework for drawing .
Drawing Guide for iOS
Quartz 2D Programming Guide
Core Animation Programming Guide
For shape recognition you need some math master or some C library (if there is such library) , that is really difficult task .
in my app I have 49 points with x,y and I wnat to display them on the screen. I've seen a lot of library that can help me (core plot, s7graphview, etc.). But since I'm doing very basic stuff (just draw points), what is the simplest way do to that ?
Thanks !
Its basic core graphics. Plenty of examples on the developer.apple.com site or just google for Core Graphics iPhone Tutorial.
You could use this Quartz2d method to draw a small circle:
CGContextFillEllipseInRect
Maybe is there a way to do animation only on one image?
So if I have an UIImage and I want to animate it like a wave. Is this possible? And if yes, can you give me some examples or a link to start or something like this? (I used google but didn't find any good start link...)
OpenGL ES is another possibility. Apple provide all the code to set up a rendering context.
From there you just need to get your image into a texture, define some vertices (more than just four), and move each vertex on a sine wave.
Yes - you may want to look into cocos2d - http://www.cocos2d-iphone.org
or OpenGL ES as mentioned above
or Quartz
It all depends on what this 'Wave' effect needs to look like, if it's what i think, you couldn't achieve that by using Core Animation, you would need to look in to these suggestions.
I am trying to draw circles around the current location on MKMapview.I tryied many codes but however no success. can any one suggest any links which should I refer. I am new to Iphone so dont have much knowledge about Quartz 2D.
I would think the simplest method to achieve your goal would be to use a custom PNG image with transparency and set the image property of a MKAnnotationView that you add to your current MKMapView.