我想追加兩個字符串。但它產生的錯誤 - [CFString stringByAppendingString:]:發送到釋放實例0x5db1310的消息是什麼意思?我無法解決這個錯誤。請告訴我我做錯了什麼。追加兩個字符串的問題
非常感謝。
- (void)updatestatus:(id)sender event:(UIEvent *)event {
NSIndexPath *indexPath = [alarmtimetable indexPathForRowAtPoint:[[[event touchesForView:sender] anyObject] locationInView:alarmtimetable]];
timeselect = [rangetime objectAtIndex:indexPath.row];
datetimeselected = [todaydate stringByAppendingString:timeselect];
NSLog(@"datetimeselected:%@",datetimeselected); [self onButtonClick:(id)sender];
}
對象已在某處發佈。後的一些代碼 – Bourne
- (無效)updatestatus:(ID)發送事件:(的UIEvent *)事件 { \t \t NSIndexPath * indexPath = [alarmtimetable indexPathForRowAtPoint:[[[事件 \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t touchesForView:寄件人] anyObject] locationInView:alarmtimetable]]; \t timeselect = [rangetime objectAtIndex:indexPath.row]; \t datetimeselected = [todaydate stringByAppendingString:timeselect]; NSLog(@「datetimeselected:%@」,datetimeselected); \t [self onButtonClick:(id)sender]; \t \t } –