And also how to solve an "expected ';' before '{' token? code below (from xcode 3.2.3)
- (void)viewDidUnload {
self.cheatName = nil;
self.description = nil;
}
Both errors are in the first line
- (void)viewDidLoad {
[super viewDidLoad];
[self.titleLabel setText:self.title];
[self.descriptionLabel setText:self.description];
float textHeight = [MLUtils calculateHeightOfTextFromWidth:self.description : descriptionLabel.font :descriptionLabel.frame.size.width :UILineBreakModeWordWrap];
CGRect frame = descriptionLabel.frame;
frame.size.height = textHeight;
descriptionLabel.frame = frame;
CGSize contentSize = descriptionScrollView.contentSize;
contentSize.height = textHeight;
descriptionScrollView.contentSize = contentSize;
- (void)viewDidUnload {
self.cheatName = nil;
self.description = nil;
}