Question

I'm developing a very simple app for iOS and I have a view with text and an image. When I simulate the app, vertical scrolling does not show all picture. Is it possible to get unlimited scrolling? If yes, could you explain me step-by-step how to obtain it?

Thanks in advance!

Était-ce utile?

La solution

What I want you to try is:

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
    return 20.0f;
}

Add this code along with other table view functions and see if it resolves.

EDIT

As I understood you can adjust the UIScrollView's content offset, like this (any where probably in viewDidLoad):

CGRect rect = [[UIScreen mainScreen] bounds];
[yourScrollViewInstance setContentSize:CGSizeMake(rect.size.width, rect.size.height * 2)];

Here rect.size.height * 2 will be adjusted in a way that shows the content perfectly.

Hope it helps!

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top