I am new to iPhone,
I want to repeat my PatternImage in ScrollView.
Logic: 768bg.gif is my image and this image i added to UIImageView and then Imageview is added to UIScrollView, but image is not getting repeated.
Here is my code snippet,
CGRect scrollViewFrame = CGRectMake(0, 0, 1000, 600);
UIScrollView *scrollVw = [[UIScrollView alloc] initWithFrame:scrollViewFrame];
[self.view addSubview:scrollVw];
[scrollVw release];
UIImage *image1 = [UIImage imageNamed:@"768bg.gif"];
self.imageView = [[UIImageView alloc] initWithImage:image1];
[scrollVw addSubview:self.imageView];
scrollVw.contentSize = CGSizeMake(image1.size.width+100, image1.size.height+100);
Any help will be appriciated.
You can use
[UIColor colorWithPatternImage:], from memory.