Implement Scroll in ViewController

Hello Guys,
I have deploy an ios app already and published on Appstore for review and got rejected due to "2.10 - iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution"

Because my application was screen cannot view fully on IPAD, so want to implement Scroll bar to my viewcontroller since the resolution on ipad not showing the actuall full screen, but in my iphone looks good since i developed in iphone.
so i want to implement a scrollbar to avoid difficulties on different size, If i have a scroll bar my app wont fail still able to go through

I have tried UIScrollView controller on storyboard(Scrollable property Enbled already)but while running on device dont have scrollable bar on UIScrollView ,I tried for bouncing property, Bouncing works fine from UI Property, but dont have scroll bar

So i have implemented the same UIScreenView using code behind C#. But still same, cannot find the scrollbar even i implement controls dynamically from the Codebehind, But still not able to see scroll bar on UIScrollView.

How to implement UIScrollview controller on existing Viewcontroller?


scrollview = new UIScrollView
{
Frame = new CGRect(0,0,View.Frame.Width,View.Frame.Height),ScrollEnabled = true
};
scrollview.ContentSize = new CGSize (200f, 200f);
for (int i = 1; i < 20; i++)
{
btn = new UIButton();
btn = UIButton.FromType(UIButtonType.RoundedRect);
btn.Frame = new CGRect(30, 20 + 30 * i, View.Frame.Width - 60, 30);
btn.SetTitle("Button " + i.ToString(), UIControlState.Normal);
scrollview.AddSubview(btn);
}
View.AddSubview(scrollview);


Sign In or Register to comment.