Friday, May 14, 2010

How to Zoom In & Out image in IPhone

  • Select 'View based application' ->Name as 'ZoomDemo'
  • open ZoomDemoViewController.h file.and write the below code:
  • @interface ZoomViewController : UIViewController {
    IBOutlet UIScrollView *scrollView;
    IBOutlet UIImageView *imgView;
    @property(nonatomic,retain) IBOutlet UIScrollView *scrollView;
    @property(nonatomic,retain) IBOutlet UIImageView *imgView;
  • Open ZoomDemoViewController.m file and synthesize the scrollView and imgView properties.
  • @synthesize scrollView,imgView;

    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
    [super viewDidLoad];
    UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SplashScreen.png"]];//WithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@""]]]];
    [self setImgView:tempImageView];
    [tempImageView release];

    [scrollView addSubview:imgView];

    - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
    return imgView;}
  • OPen IB and ZoomDemoViewController.xib file and add one UIScrollview from library
    and map it with 'file'sowner' .
  • Add one UIImageView on the UIScrollView and map the imgView to File'sOwner
  • Now build and run the app.

Wednesday, May 5, 2010

Darling Movie

It is nice and funny movie

Monday, May 3, 2010

welcome to iPhone world.......

share ur knowledge here .......

welcome to apple Eaters

Taste Apple's iPhone...........