0

I'm implementing a gallery with a UIScrollView, and I've a problem if the picture haven't the same size as the UIScrollView. In this case, when the image is at normal size, there are borders as usual. But when I do zoom in the image, the borders makes bigger too.

I would like, if the image is zoomed and bigger than the UIScrollView, that the only visible part would be the image, not the borders.

And have no idea what to do.

enter image description here

enter image description here

4

1 回答 1

0

您应该UIImageView在背景中设置该图像,并在添加所有图标并且应该在滚动视图中放大的视图之上再添加一个视图。这样,图像将不会缩放,并且在缩放和正常状态下看起来也一样。

于 2012-08-31T11:46:59.290 回答