Objective-c UIScrollView now scrolling nor vertically nor horizontally
i don't understand because my project don't work. I can open the window,
but the scrollview wont scroll, so i can't see the bottom side of my UI.
Why? I read other answers to similar posts but they didn't help me fix my
issue.
THIS IS THE DETAILVC.H
@interface DetailVC : UIViewController {
IBOutlet UIImageView *iv_main, *iv_ratings;
IBOutlet UITextField *tf_name, *tf_dob, *tf_age, *tf_weight, *tf_height,
*tf_birthplace;
IBOutlet UITextView *tv_description;
IBOutlet UIButton *but_movies, *but_edit;
IBOutlet UINavigationBar *navbar;
IBOutlet UIScrollView *scrollView;
}
@property (nonatomic, retain) IBOutlet UIImageView *iv_main, *iv_ratings;
@property (nonatomic, retain) IBOutlet UITextField *tf_name, *tf_dob,
*tf_age, *tf_weight, *tf_height, *tf_birthplace;
@property (nonatomic, retain) IBOutlet UITextView *tv_description;
@property (nonatomic, retain) IBOutlet UIButton *but_movies, *but_edit;
@property (nonatomic, retain) IBOutlet UINavigationBar *navbar;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@end
THIS IS THE DETAILVC.M
#import "DetailVC.h"
@interface DetailVC ()
@end
@implementation DetailVC
@synthesize iv_main, iv_ratings, tf_age, tf_birthplace, tf_dob,
tf_height, tf_name, tf_weight, tv_description, but_edit,
but_movies,navbar, scrollView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle
*)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
scrollView.contentSize = CGSizeMake(320, 1000);
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
------Connection Inspector
http://s18.postimg.org/qjzrdz9a1/Schermata_2013_08_07_alle_16_47_19.png
------Scroll View attributed Inspector
http://s8.postimg.org/5eniaq8r9/Schermata_2013_08_07_alle_17_35_04.png
No comments:
Post a Comment