Add UIImageView on UIScrollView while UITapGestureRecognizer?

I may be missing something, but your imageView is nil You add pagingScrollView addSubview:imageView however imageView is not instantiated at this point Since you're always assigning the same image, you should just do: imageView = UIImageView alloc initWithImage:UIImage imageNamed:@"image. Png" inside of 'loadView' and imageView release; imageView = nil inside of 'viewDidUnload.

I may be missing something, but your imageView is nil. You add pagingScrollView addSubview:imageView however imageView is not instantiated at this point. Since you're always assigning the same image, you should just do: imageView = UIImageView alloc initWithImage:UIImage imageNamed:@"image.

Png"; inside of 'loadView' and imageView release; imageView = nil; inside of 'viewDidUnload.

I did try to create an instance of UIImageView but did not help. I have added more code so that it makes more sense I hope. – lifemoveson Aug 9 at 16:10.

I have UIViewController which has UIScrollView on it. The UIScrollView has various tile Images like Apple Developer tile image layer program. I am trying to use UITapGestureRecognizer to know the location and place a uiimageview with uiimage on top of it.

But somehow it never places the image file. I am not sure what I am doing wrong here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions