UIScrollView

From $1
    Table of contents

    Here is a simple example to create a UIScrollView in code.

    UIScrollView scroller = new UIScrollView (new System.Drawing.Rectangle (0, 0, 120, 200));
    scroller.ScrollEnabled = true;
    System.Drawing.RectangleF contentRect = new System.Drawing.RectangleF (0, 0, 240, 400);
    scroller.ContentSize = new System.Drawing.SizeF (contentRect.Width, contentRect.Height);
    UIView content = new UIView (contentRect);
    content.BackgroundColor = UIColor.Blue;
    scroller.AddSubview (content);

     

    Tag page
    • No tags

    Files (0)

     
    Page last modified 19:55, 16 Apr 2010 by mikebluestein