मैं कंसोल में त्रुटि संदेश निम्न है जब NSThread का उपयोग कर "मुख्य थ्रेड या वेब धागा के अलावा किसी अन्य धागे से वेब ताला प्राप्त करने के लिए कोशिश की। यह अब एक माध्यमिक धागा। क्रैश से UIKit बुला का एक परिणाम हो सकता है। .. "कैसे त्रुटि को हल करने के?
मैं अपने नमूना यहाँ कोड
- (void)viewDidLoad {
appDeleg = (NewAshley_MedisonAppDelegate *)[[UIApplication sharedApplication] delegate];
[[self tblView1] setRowHeight:80.0];
[super viewDidLoad];
self.title = @"Under Ground";
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
[NSThread detachNewThreadSelector:@selector(CallParser) toTarget:self withObject:nil];
}
-(void)CallParser {
Parsing *parsing = [[Parsing alloc] init];
[parsing DownloadAndParseUnderground];
[parsing release];
[self Update_View];
//[myIndicator stopAnimating];
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}
यहाँ
प्रस्तुत है" DownloadAndParseUnderground "आरएसएस फ़ीड से डेटा downloding की विधि और
-(void) Update_View{
[self.tblView1 reloadData];
}
क है एन Update_View विधि कहा जाता है tableView डाटा को फिर से लोड और cellForRowAtIndexPath में त्रुटि बनाने और कस्टम सेल
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
CustomTableviewCell *cell = (CustomTableviewCell *) [tblView1 dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"customCell"
owner:self
options:nil];
cell = objCustCell;
objCustCell = nil;
}
दोनों जवाब downvoted गया में जोड़ें, क्यों? – BoltClock
उत्तर पढ़ना, ऐसा इसलिए है क्योंकि दोनों गलत हैं (या अयोग्य - 'आप सब के साथ क्या है ??!?)। – bbum