One tip: be lazy!
if you want to present many views in scrollView, do not load all of them. Best practice for this is to use a UITableView . If you know the height of each cell before you draw it on the screen, you can implement this method
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
in your tableview data source. If you want to use UIScrollView, add your child objects as requested when the user scrolls. The best approach is to implement the delegate method:
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
source share