线程1:Xcode iOS中的EXC_BAD_ACCESS错误

时间:2012-09-26 20:44:41

标签: ios xcode4 exc-bad-access

我在这里收到错误。有人能告诉我我做错了什么吗? 顺便说一句,这对我来说只是一个学习项目,所以没什么绝密或者其他什么。只是想做一个简单的转换器。

如果整个项目可以提供帮助: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

1 个答案:

答案 0 :(得分:1)

你错过了'@'。 "LNG HepatittB"不是对象,而是C字符串。