Oscar Apeland
Oscar Apeland

Reputation: 6662

Thread 1:EXC_BAD_ACCESS error in Xcode iOS

I get a error here. Can someone tell me what i am doing wrong? By the way, this is just a learning project for me, so nothing top secret or something. Just trying to make a simple converter.

If the whole project could help: http://www.mediafire.com/download.php?iccgq9iclapado5

#import "MainViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController
@synthesize picker, lngConvertFrom, lngRates;           
@synthesize resultLabel,lngInput;                      
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.lngConvertFrom = [[NSArray alloc] initWithObjects:  <-Thread 1: ExC_bad_Access

Upvotes: 0

Views: 786

Answers (1)

leo
leo

Reputation: 7656

You're missing an '@' there. "LNG HepatittB" is not an object but a C string.

Upvotes: 1

Related Questions