#import <UIKit/UIKit.h>
@interface ProfileViewController : UIViewController {
UIImageView *profPic;
UILabel *name;
UILabel *hosted;
UILabel *points;
UILabel *attended:
UITableView *tableView;
}
@property (nonatomic, retain) IBOutlet UIImageView profPic;
@property (nonatomic, retain) IBOutlet UILabel name;
@property (nonatomic, retain) IBOutlet UILabel hosted;
@property (nonatomic, retain) IBOutlet UILabel points;
@property (nonatomic, retain) IBOutlet UILabel attended:
@property (nonatomic, retain) IBOutlet UITableView tableView;
@end
views:
21answers:
3
+2
A:
Although you have not posted what exactly errors you get there're 2 obvious problems in your code:
Colon in the end of the line should be semicolon:
@property (nonatomic, retain) IBOutlet UILabel attended: ^^^
Types of properties should be pointers ('*' missed in property declarations)
@property (nonatomic, retain) IBOutlet UILabel* attended;
Vladimir
2010-10-27 06:00:42
+2
A:
those UI* objects should be pointers:
IBOutlet UIImageView * profPic;
Justin
2010-10-27 06:01:07
+1
A:
@property (nonatomic, retain) IBOutlet UIImageView *profPic;
Add the Asterisk(*) before the name of the object.
tadej5553
2010-10-27 06:02:02