I am calling data from xml to tableview
I table view
After the first line of data, my second line is empty in tableView
, and the third line is available from the data. But due to the second line, my last data for the row is missing from tableview
how can I fill this second line
This is my code:
< Code> - (UITableViewCell *) Table view: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath {static NSString * CellIdentifier = @ "cell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[[UTitleViews alloc] initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: cell identifier] autorelease]; } [[Cell Text Labels] Settextualment: UITXelment Left]; Cell.selectionStyle = UITableViewCellSelectionStyleGray; Cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; Book * aBook = [App Delegate.books ObjectAntindex: IndexPath.ro]; NSString * string1 = aBook.Latitude; NSString * trimmedString = [string1 stringbittramckingcarsats: [NSCharacterSet whitespaceAndNewlineCharacterSet]]; Double myDouble = [trimmedString doubleValue]; NSLog (@ "This is trim% F tested", myDouble); NSString * string2 = aBook.Longitude; NSString * trimmedString1 = [string 2 stringbittramingcasterSetset: [NSCR Actorset Whitespace and NewlineSetset]]; Double handle = [trimid string 1 double value]; NSLog (@ "This test result is% F", mDouble); If (((myDouble & LT; (A + 5.022)) & amp; amp; (myDouble> (one-10)) || ((mDouble <= (B + 10)) & amp; ; & Amp; (mDouble & gt; = (b-10))))) {NSString * a1 = aBook.AreaName; NSString * b1 = [a1 stringbapping string: @ ","]; NSString * s = aBook.STREET_NAME; NSString * c = [b1 stringbapping string; s]; Cell.textLabel.font = [UIFont fontWithName: @ "helvetia" size: 15.0]; Cell.textLabel.text = c; Cell.detailTextLabel.text = aBook.ActualCity; // cellcount ++; NSLog (@ "This test result is% @% F.", aBook.STREET_NAME, myDouble); } Return cell; }
I'm getting row count 5 but the value of the second row has been moved to the third line and the second row is empty, due to the last data in this row is missing.
Comments
Post a Comment