문제

I am using iPhone SDK 3.2. I have drawn some lines on an UIView like road on a small city and added that as subview to the main view window(controller view). Now I need to zoom it from different point of view like a more specific aria of that city.

FYI: I am a new programmer in Obj-C as well iPhone app development.

도움이 되었습니까?

해결책

thanks for the info. I guess the question that I need to ask is this: will the lines and background color be in an image or will they be drawn as lines and color. An images of lines and color would be one process and lines and color would be another process.

If you are going for the lines and color route then have a look into Core Graphics (CG). It will give you the tools to put lines on the screen and fill them with color. From there you will need to calculate the math to make them appear to zoom.

Alternatively look into OpenGL. It will provide you with the tools to create a 3D environment that will allow you to zoom. http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html

Good luck

다른 팁

I can't answer this one unfortunately but you will need a little more information to get an answer this one

1) do you need the image to stay sharp?

2) is the original image that you are zooming a photograph or shapes like circles, squares and type?

3) if it is a photograph then is the resolution higher then the resolution of the screen (hi res photo)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top