(void)viewDidLoad { super viewDidLoad; UIImage *theImage = UIImage imageNamed:@"Image600x600. Png"; UIImageView *vwImage = UIImageView alloc initWithImage:theImage; theScrollView addSubview:vwImage; theScrollView setContentSize:CGSizeMake(vwImage.bounds.size. Width, vwImage.bounds.size.
Height); theScrollView setBounces:NO; vwImage release; theScrollView setMaximumZoomScale:5.0; theScrollView setMinimumZoomScale:0.5; } – That Don Guy Sep 16 at 19:08 @that: Put your code into your question please. Who is supposed to read this here? – sjngm Sep 16 at 22:38.
Up vote 1 down vote favorite share g+ share fb share tw.
I have a UIScrollView that takes up the entire size of the main View Controller's view. In viewDidLoad, I add a UIView with a 600 x 600 image (note this is on an iPhone, not an iPad) to the UIScrollView, and set the UIScrollView's content size to 600 x 600 and the minimum zoom scale to 0.5. However, when I zoom out (with a pinch gesture), the view zooms out, but only the part of the image that was initially visible (320 x 430) appears; the rest of the view is blank.
How can I get the image to fill the view (or, if it's zoomed out far enough, get the entire image to appear) when I zoom out? Code is: - (void)viewDidLoad { super viewDidLoad; UIImage *theImage = UIImage imageNamed:@"Image600x600. Png"; UIImageView *vwImage = UIImageView alloc initWithImage:theImage; theScrollView addSubview:vwImage; theScrollView setContentSize:CGSizeMake(vwImage.bounds.size.
Width, vwImage.bounds.size. Height); theScrollView setBounces:NO; vwImage release; theScrollView setMaximumZoomScale:5.0; theScrollView setMinimumZoomScale:0.5; } iphone ios uiscrollview zoom link|improve this question edited Dec 29 '11 at 8:14John726 asked Sep 16 '11 at 14:53That Don Guy162.
(void)viewDidLoad { super viewDidLoad; UIImage *theImage = UIImage imageNamed:@"Image600x600. Png"; UIImageView *vwImage = UIImageView alloc initWithImage:theImage; theScrollView addSubview:vwImage; theScrollView setContentSize:CGSizeMake(vwImage.bounds.size. Width, vwImage.bounds.size.
Height); theScrollView setBounces:NO; vwImage release; theScrollView setMaximumZoomScale:5.0; theScrollView setMinimumZoomScale:0.5; } – That Don Guy Sep 16 '11 at 19:08 @that: Put your code into your question please. Who is supposed to read this here? – sjngm Sep 16 '11 at 22:38.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.