Hello, I want create a UIImageView with a button press. I did this with:
- (IBAction) addPicture:(id)sender {
imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0, 45.0, 324, 52.0)];
imageView.image = [UIImage imageNamed:@"Picture.png"];
[self.view addSubview:imageView];
}
I "created" this imageView in the .h, because I want use the ImageView in other methods. How can I create unlimited UIImageViews in the methode with the IBAction which I can use all later for other methods and so on...Each imageView must get a name, or?
For example in my app-idea the user can create images with a button and then he select a picture with a touch and can move it and resize it.
I am familiar with the creating of UIImageViews, etc., because I've used so far only predefined UIImageViews (with IB) etc.. I hope for a helpful answer. Thanks