Many properties you set are the same as the default value. You'll find the default values here: UIScrollView Class Reference.
Up vote 0 down vote favorite share g+ share fb share tw.
I'm implementing a custom UIView with nested UIScrollView. Initialization looks like: - (id)initWithFrame:(CGRect)frame { self = super initWithFrame:frame; if (self) { scrollView = UIScrollView alloc initWithFrame:CGRectMake(10, 10, 252, 200); scrollView. BackgroundColor = UIColor clearColor; scrollView.
ContentSize = CGSizeMake(500, 400); scrollView. UserInteractionEnabled = YES; scrollView. PagingEnabled = NO; scrollView.
ScrollEnabled = YES; scrollView. ClipsToBounds = YES; scrollView setAutoresizesSubviews:YES; scrollView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; scrollView setDirectionalLockEnabled:NO; scrollView setDelegate:self; scrollView setShowsHorizontalScrollIndicator:YES; scrollView setShowsVerticalScrollIndicator:YES; scrollView setBounces:YES; scrollView setAlwaysBounceHorizontal:NO; scrollView setAlwaysBounceVertical:NO; scrollView setBouncesZoom:YES; scrollView setDelaysContentTouches:YES; scrollView setCanCancelContentTouches:YES; scrollView setMaximumZoomScale:1; scrollView setMinimumZoomScale:1; scrollView setOpaque:YES; self addSubview:scrollView; } return self; } in controller: CustomView *customView = CustomView alloc initWithFrame:CGRectMake(0, 100, 320, 200); self. View addSubview:cut; Problem: scroll view scroll only in up direction (when I drag finger down), when I try to scroll left, right or down there is no action what I am doing wrong?
Iphone objective-c ios uiscrollview uikit link|improve this question edited Aug 3 '11 at 16:51 asked Aug 3 '11 at 16:31unkm132 20% accept rate.
Many properties you set are the same as the default value. You'll find the default values here: UIScrollView Class Reference My suggestion would be to delete the properties which have already the default value. Especially the properties for scrolling.
(scrollView setShowsHorizontalScrollIndicator:YES; scrollView setShowsVerticalScrollIndicator:YES; scrollView setBounces:YES; scrollView setAlwaysBounceHorizontal:NO; scrollView setAlwaysBounceVertical:NO; scrollView setBouncesZoom:YES; scrollView setDelaysContentTouches:YES; scrollView setCanCancelContentTouches:YES;).
First init was like: scrollView = UIScrollView alloc initWithFrame:CGRectMake(10, 10, 252, 200); scrollView. BackgroundColor = UIColor clearColor; scrollView. ContentSize = CGSizeMake(500, 400); scrollView.
UserInteractionEnabled = YES; scrollView. PagingEnabled = NO; scrollView. ScrollEnabled = YES; and behaviour was the same – unkm Aug 3 '11 at 17:55.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.