Hi,
I use IB.
First i create a view and add some controls in the top and bottom.
I change the view to scrollview.
I need to display some labels in the middle of the view.
so i add a new view.
I need to scroll the view.
Here my code
My problem is the view is not scrolled.
I could not see any scrollbar indicator.
What is the mistake i done?
Can anybody please tell me the solution?
Thanks
judy
I use IB.
First i create a view and add some controls in the top and bottom.
I change the view to scrollview.
I need to display some labels in the middle of the view.
so i add a new view.
I need to scroll the view.
Here my code
HTML:
IBOutlet UIScrollView *scroll;
IBOutlet UIView *view1;
@property(nonatomic,retain) UIScrollView *scroll;
@property(nonatomic,retain) UIView *view1;
[scroll addSubview:view1];
[scroll setScrollEnabled:YES];
[scroll setContentSize:CGSizeMake(200,200)];
scroll.showsVerticalScrollIndicator=YES;
scroll.showsHorizontalScrollIndicator=YES;
My problem is the view is not scrolled.
I could not see any scrollbar indicator.
What is the mistake i done?
Can anybody please tell me the solution?
Thanks
judy