Suppose I have used the following code in my objective c iphone programming,
[scrollView setContentSize:CGSizeMake(51200, 400)];
where 51200 is supposed to be a large valued width for the scrollview and 400 its height.
Would this statement increase the allocations in an iphone device? Or would that cause any other related problems getting it to run on the device?
Assigning a larger size won’t increase allocations itself. However, putting lots of content inside that scrollview will.
What you should do is check the contentOffset of the scrollview and add/remove content (scrollview subviews) based upon what is actually visible in the scrollview (perhaps inside scrollViewDidScroll).