ios - Some troubles with UIScrollView -


I have just started working with XCode 5.1 and IOS 7.1.
I have some problems with partial visuals with a scrollview. I have it. screen] (! [ Http: //imgur.com/n5KHXgF ) I should take a place on the scrollview, but the location should be marked in red, but instead it should be taken more vertically and horizontally. View controller and view are defined as 500x500 free forms in the storyboard and defined as scrollviews:

  scroll = [[UIScrollView alloc] initWithFrame: CGRectMake (0, 0, self.view.frame .ize.width, rowHeight * [lstMatches count])]; Scroll.contentSize = CGSizeMake (self.view.frame.size.width, rowHyight * [lstMatches count]); // Here. More elements were added as scrollviewviews [self.view addSubview: scroll];  

The problem is next:

1) Scrollview is more comprehensive than its container so I can not click on the right button. I tried to change the width of the controller and To see 800 (maximum width is about 750), but I can not click them.

Thanks for your help

Try:

  scroll = [[UIScrollView alloc] initWithFrame: CGRectMake (0, 0, self.view.frame.size .width, self .view.fr.image.height])]; Scroll.contentSize = CGSizeMake (5000, linewit * [lstMatches count]); [Self.view addSubview: scroll];  

PS: Change contentSize.width to 5000 something according to your needs


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -