So I'm trying to put an image in my UI, and I've tried setting the content size.
- (void)viewDidLoad{
//[super viewDidLoad];
_trendingImageView.image = [UIImage imageNamed:@"trending.png"];
[self.scrollView setContentSize:CGSizeMake(2000, 2000)];
}
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear: animated];
NSLog(@"VIEW WILL APPEAR BEING CALLED");
self.rateView.notSelectedStar =[UIImage imageNamed:@"star-off.png"];
self.rateView.fullSelectedStar = [UIImage imageNamed:@"star-on.png"];
self.rateView.rating = self.rating;
self.rateView.editable = YES;
self.rateView.maxRating = 5;
self.rateView.delegate = self;
_pageTitleLabel.text = _pageTitle;
//_pageScoreLabel.text = _pageScore;
_trendingImageView.image = [UIImage imageNamed:@"trending.png"];
_restaurantImageView.image = _restaurantImage;
_descriptionView.text = _description;
[self.scrollView setContentSize:CGSizeMake(2000,2000)];
}
The scrollView var is connected to a scroll view in the interface builder. This scroll view is inside another view, and it has subviews.
Why is this not scrolling?
This is the scrollView-
SCROLL VIEW : <UIScrollView: 0xac73010; frame = (0 -108; 320 676); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0xac73bd0>; layer = <CALayer: 0xac731e0>; contentOffset: {0, 0}>