ios - UIScrollView view bounces back and doesn't stay at bottom -


मेरे पास यह सेट है:

  UIScrollView * scroll = [[UIScrollView alloc] initWithFrame: सीजीआरएक्टमेक (0.0, 0.0, 320.0, 1000.0)]; Scroll.backgroundColor = [UIColor स्पष्ट कॉलर]; Scroll.contentSize = CGSizeMake (320.0, 1000.0); [Self.view addSubview: scroll]; UIView * pView = [[UIView alloc] initWithFrame: CGRectMake (10.0, 100.0, 300.0, 400.0)]; PView.backgroundColor = [UIColor whiteColor]; PView.layer.cornerRadius = 2.0; PView.layer.borderColor = [UIColor blueColor] .CGColor; PView.layer.borderWidth = 1.0f; [स्क्रॉल ऐड एस्यूब्यूव्यू: पीवीयूआई]; UIView * aView = [[UIView alloc] initWithFrame: CGRectMake (10.0, 500.0, 300.0, 20.0)]; AView.backgroundColor = [UIColor redColor]; [स्क्रॉल ऐड एस्यूब्यूव्यू: एवीयूआई];  

लेकिन हर बार जब मैं दृश्य पर नीचे स्क्रॉल करता हूं, तो स्क्रीन ऊपर की तरफ ऊपर उठाती है क्यों?

अपनी स्क्रीन आकार की ऊंचाई को अपने स्क्रीन आकार से अधिक सेट न करें - यह स्क्रॉल नहीं है जो स्क्रॉल करता है , यह स्क्रॉलव्यू में सामग्री है।


Comments

Popular posts from this blog

Python Equivalent for matlab cart2pol and pol2cart -

javascript - Render HTML after each iteration in loop -

sip - Call SipJs to Asterisk 12 -