3 small images over big image with resizing enabled for all? Iphone
i have to make an offline map with icons but i will use images instead of maps because I don't know if there's any offline map code i can use available ?
Anyway, I wil use background image which is image of the map. Then I wanna add small ballon images over it.开发者_开发问答 the Question is How can I apply scroll view or any code you know for applying maximize and minimize for all of them at the same time ??? or if you have a better idea can you please suggest it?
Thanks, Dalal
Check out this post for tiling images efficiently on an iOS device.
Also see the Scrolling sample from Apple.
My guess is that you'd have the balloons be subviews of the map's UIImageView, then subclass the UIImageView for the map and implement your own layoutSubviews method (layoutSubviews being a method of superclass UIView). In that method you read the map view's size and resize/relocate the balloons accordingly.
精彩评论