ios - zoom with taps on scrollView -


i trying remake (mostly) same sample example provided apple called taptozoom.

the difference using storyboard instead of classic nib file example shows, set image inside scrollview.

the problem zoom don't work e.g. here:

//set initial zoom scale  float minimumscale = [myscroll frame].size.width  / [myimage frame].size.width;  nslog(@"%f",minimumscale);  [myscroll setminimumzoomscale:minimumscale]; [myscroll setzoomscale:minimumscale];  nslog()@"%f",[myscroll zoomscale]; 

the logs return 0.6 first 1 , 1.0 second supposed 0.6. got problem before?

[edit]: previous lines viewdidload method.

i think should implement

- (uiview *)viewforzoominginscrollview:(uiscrollview *)scrollview; 

try delegate method.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -