0

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?

2 Answers2

0

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.

Community
  • 1
  • 1
Martin Wickman
  • 19,662
  • 12
  • 82
  • 106
0

This question is very close to yours and either my answer or lostInTransit's there should do what you want.

Community
  • 1
  • 1
Brad Larson
  • 170,088
  • 45
  • 397
  • 571