मेरा UITableView EXEC_BAD_ACCESS
लौटा रहा है, लेकिन क्यों!UITableView सेल में EXEC_BAD_ACCESS सेलफोररएट इंडेक्सपैथ
इस कोड को स्निपेट देखें!
UITableView लोड हो रहा है ठीक है, तो allXYZArray != nil
और आबादी है!
फिर नीचे करने के लिए tableview स्क्रॉल और कारणों यह दुर्घटना का बैक अप, के रूप में यह विधि cellForRowAtIndexPath
यह लाइन पर विफल रहता है फिर से लोड करने चला जाता है:
"NSLog(@"allXYZArray::count: %i", [allXYZArray count]);"
(UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAt
IndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CellIdentifier";
UITableViewCell *cell = [theTableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
@try
{
if (allXYZArray == nil) {
NSLog(@"nil");
allXYZArray = [ToolBox getMergedSortedDictionaries:allXYZGiven SecondDictionary:allXYZSought];
}
NSLog(@"%i", [indexPath row]);
NSLog(@"allXYZArray::count: %i", [allXYZArray count]);
क्या आप बाकी विधि के लिए कोड पोस्ट कर सकते हैं [ToolBox getMergedSortedDaries: SecondDictionary:] के लिए कोड? – MrHen