i am new to iphone SDK.i am getting image like
UIImage *image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com/1.jpg"]]];
but how can i reduce height and width without using UIImageview?
i am new to iphone SDK.i am getting image like
UIImage *image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com/1.jpg"]]];
but how can i reduce height and width without using UIImageview?
You mean without having to use a user visible component, ie using code only? Take a look at this entry which talks a lot about resizing UIImages.
This question is very close to yours and either my answer or lostInTransit's there should do what you want.