Suggestions on how to implement a UI Element to display a long image in iPhone.

Posted by Tattat on Stack Overflow See other posts from Stack Overflow or by Tattat
Published on 2010-05-02T11:27:58Z Indexed on 2010/05/02 11:37 UTC
Read the original article Hit count: 185

Filed under:
|

I want to display a long image on iPhone. The user can swipe left or right to see difficult parts of the image. I want to spite the long image into different parts... for example, a long long image is 1000* 100; I want to display 100*100 for each time. When the image is loaded, it shows from x:0 to x:100. When user swipe right, it becomes x:101, x:200. When the user swipe left, it back to x:0, x:100, when the user continue to swipe right, it show x:201, x:300.

I am thinking how to implement this specified imageView. I have two ideas now. First, make my own imageView, which super class is UIImageView, and overriding the swipe left, swipe right method. Second, make my own UIView. just implement the user swipe left/right action.

Which way you think is better, or any better ideas on implement this? thz u.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk