我得到程序上的main.m接收信號「SIGABRT」程序接收到的信號「SIGABRT」
- (IBAction)segmentControl:(id)sender {
NSTimeInterval oneUnit=(60*60*24*3);
//NSTimeInterval oneUnit1=(60*60*24*60);
switch (self.ydm.selectedSegmentIndex) {
case 0:
for (i=0; i<([forex count]); i++) { //It does not go next step
NSTimeInterval x=oneUnit*i/2;
i++;
id y=[NSNumber numberWithFloat:[[forex objectAtIndex:i] floatValue]];
[contentArray addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:[NSDecimalNumber numberWithFloat:x],@"x",y,@"y", nil]];
self.dataForPlot=contentArray;
}
break;
default:
break;
}
任何一個能幫助我嗎?
做你試圖設置斷點,並檢查其它獲得SIGBART嗎? – Shubhank
yes.for(i = 0; i <([forex count]); i ++)從它直接返回UIApplicationMain(argc,argv,nil,NSStringFromClass([AppDelegate class]))並顯示sigbrat錯誤 – Priya
@ Priya,你如何創建數組*外匯*? – EmptyStack