I'm a total beginner at iPhone development so I have a little question:
This is my viewcontroller.m
//
// ViewController.m
// Conversie talstelsels
//
// Created by Stijn Hoste on 16/11/12.
// Copyright (c) 2012 Stijn Hoste. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@synthesize lblOct;
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)txtGetal:(id)sender {
lblOct.text = @"derp";
}
@end
This is my viewcontroller.h
//
// ViewController.h
// Conversie talstelsels
//
// Created by Stijn Hoste on 16/11/12.
// Copyright (c) 2012 Stijn Hoste. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
- (IBAction)txtGetal:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *lblDec;
@property (weak, nonatomic) IBOutlet UILabel *lblOct;
@property (weak, nonatomic) IBOutlet UILabel *lblHex;
@end
So when I try to do this: @synthesize lblOct; It gives me the following error: illegal interface qualifier When I try to do this: lblOct.text = @"derp"; It gives me this error: use of undeclared identifier 'lblOct', did you mean '_lblOct'?
Can somebody help me with this probably easy problem?
Thanks in advance!