Note that there are some explanatory texts on larger screens.

plurals
  1. POUIScrollView does not scroll when an object is inside
    primarykey
    data
    text
    <p>I made a <code>UIScrollView</code> inside a <code>UIViewController</code> <strong>I have like 5 ViewControllers</strong> my <code>problem is in the 4th one</code>.</p> <p>The <code>UIScrollView</code> I made does scroll when I put notting it it (so no label no button, no objects at all) but when I put even a label (or anything) in the <code>UIScrollView</code> it stops working.</p> <p>Edit:</p> <p>I have try'd making the same thing in a new project, for some reason it does work I think it has something to do with the fact that it is <strong>in the 4th ViewController</strong> and the new one I made, was made, <strong>in the First automatically made viewcontroller</strong>. I do not yet have a answer please help.</p> <p>My code: viewcontroller.h</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; @interface viewcontroller : UIViewController @property (weak, nonatomic) IBOutlet UIScrollView *ScrollerMdon; @end </code></pre> <p>viewcontroller.m</p> <pre><code>@synthesize ScrollerMdon; - (id)initWithNibName:(NSString *) nibNameOrNil bundle:(NSBundle *) nibBundleOrNil { self = [super initWithNibName: nibNameOrNil bundle:nibBundleOrNil]; if(self) { } return self; } -(void)viewDidLoad { [ScrollerMdon setScrollEnabled:YES]; [ScrollerMdon setContentSize:CGSizeMake(320,1000)]; [super viewDidLoad]; } @end </code></pre> <p>In xcode viewcontroller connection inspector my outlet <code>ScrollerMdon</code> is connected with *<em>Scroll View(</em>*which I inserted in my viewcontroller)</p> <p>In xcode <code>UIScrollView</code> connection inspector my Referencing outlet <code>ScrollerMdon</code> is connected with viewcontroller.</p> <p>Please help me I have been trying to solve this for 5 hours.. I can't stand it anymore.</p> <p>Edit:</p> <p>I try to make it possible for a single viewcontroller to hold like 17 textboxes I see no other way than doing it with a <code>UIScrollView</code> if there are any suggestions I would be really happy.</p> <p>Edit2:</p> <p>I have try'd to make it all aggain putting the same class on a different view controller and the other way around, I kinda rewrote the code and everything it's exactly the same as what I made in the other project but it does not work.(when an object is inside..)</p> <p>2 foto's of my program. Srry for the small and bad images, for some reason they moved without my permision but it is enough information I guess.(I use VMWare 8 with os x leopard on it)</p> <p><a href="http://imgur.com/kG6h7,cDdj3#0" rel="nofollow">foto 1</a></p> <p><a href="http://imgur.com/kG6h7,cDdj3#1" rel="nofollow">foto 2</a></p> <p>Me Scrolling without items: imgur.com/cd16I</p> <p>Me desperately Scrolling with items: imgur.com/hNUl1</p> <p>Since I can only post 2 hyperlinks you have to open these yourself. PS. please upvote this if you do not know the answer for I need a answer and there will probably be more viewers if it gets upvoted, ty.</p> <p>Edit3:</p> <p>I am now copying my entire code and build of the app in a different project hope this wil work :S.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload