zoom out is not working on pictures !
Hi, i have a small problem with zoom out (with pictures jpg)
i will put a button code here, maybe is there some suggestion to fix it please.
i need help with this please.
i will put a button code here, maybe is there some suggestion to fix it please.
i need help with this please.
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after application launch
VISTA1.contentSize = CGSizeMake(405, 605);
VISTA1.maximumZoomScale = 3.0;
VISTA1.minimumZoomScale = 1.0;
VISTA1.clipsToBounds = YES;
VISTA1.delegate = self;
// [VISTA1 addSubview:IMAGENZOOM];
[window makeKeyAndVisible];
[window addSubview:PANTALLA];
// [PANTALLA addSubview:VISTA1];
}
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
[IMAGENZOOM center];
return IMAGENZOOM;
}
-(IBAction) PULSAR_BOTON1: (id) sender
{
[IMAGENZOOM removeFromSuperview];
[VISTA1 setBouncesZoom:NO];
VISTA1.contentSize = CGSizeMake(1.0f, 1.0f);
VISTA1.contentSize = CGSizeMake(320.0, 380.0);
IMAGENZOOM.image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image2" ofType:@"jpg"]];
// VISTA1.contentSize = CGSizeMake(IMAGENZOOM.image.size.width*0.5,
// IMAGENZOOM.image.size.height*0.5);
IMAGENZOOM.frame = CGRectMake(IMAGENZOOM.frame.origin.x,
IMAGENZOOM.frame.origin.y,
320.0,
380.0);
[VISTA1 addSubview:IMAGENZOOM];
}
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Taking Pictures of Game State inside an app | Bersaelor | 7 | 4,586 |
Nov 3, 2009 05:07 AM Last Post: Bersaelor |
|
| [iPhone/OpenGL-ES] Loading/Drawing Pictures & Main Loop, where is it? | jAuriya | 6 | 6,016 |
Feb 2, 2009 10:12 AM Last Post: longjumper |
|
| zoom (in/out) a UIImageView | imaumac | 2 | 3,835 |
Dec 27, 2008 07:03 AM Last Post: imaumac |
|
| 4 pictures = 4 diferents sound | imaumac | 4 | 2,946 |
Oct 7, 2008 04:10 PM Last Post: imaumac |
|

