ios - UITableView Not Updating On Insert/Scroll -


I have a UITableViewController, and in the controller I have the following code:

  / See the table / NSINandApath * New IndexPath = [NSINXAP IndexPathForRO: ([Self Transport Counting] - 1) Insight: 0]; [Self.tableView insertRowsAtIndexPaths: [NSArray arrayWithObject: newIndexPath] withRow animation: UITableViewRowAnimationFade]; // Scroll down so that we can focus on the latest copy of NSUInteger numberOfRows = [self.tableView numberOfRowsInSection: 0]; If (for the numbers) {[self.tableView scrollToRowAtIndexPath: [NSIndexPath indexPathForRow: (topicOfRows - 1) in the topic: 0] atScrollPosition: Animated UITableViewScrollPositionBottom: Yes]; }   

The problem I am facing is that the UITWVU is never updated. I have verified that my tape is growing in size, and that is called cellForRowAtIndexPath: I am confused. What am I missing?

Edit: This is my IB table view definition, if it helps.

  & lt; tableView key = "view" clipsSub visible = "yes" contentMode = "scaleToFill" alwaysBounceVertical = "yes" dataMode = "prototype" style = "plain" separatorStyle = "default" allowSelection = "no" rowHeight = "44" sectionHeaderHeight = " 22 "sectionFooterHeight =" 22 "id =" MXJ-GP-L47 "& gt; & Lt; Rect key = "frame" x = "0.0" y = "0.0" width = "600" height = "600" /> & Lt; autoresizingMask key = "autoresizingMask" widthSizable = "yes" height = "yes" /> & lt; color key = "backgroundcolor" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; Color key = "separator color" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; Color key = "sectionIndexTrackingBackgroundColor" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; Prototype & gt; & Lt; Table view group content mode = "scale tofil" selectionSilit = "none" indentation width = "10" re-useindifiers = "messagecall" id = "sdu-af-zase" & gt; & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; tableViewCellContentView key = "contentView" opaque = "no" clipsSubviews = "yes" multipleTouchEnabled = "yes" contentMode = "center" tableViewCell = "SDU-AF-ZZy" id = "7IE-XS-UAL" & gt; & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; / TableViewCellContentView & gt; & Lt; color key = "backgroundcolor" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; / tableViewCell & gt; & Lt; Table view group content mode = "scale toflill" selectionwith substitute = "none" Indentation Width = "10" reuseIdentifier = "ImageCell" id = "Lac-k8-MMs" & gt; & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; TableViewCellContentView key = "contentView" opaque = "no" clipsSubviews = "yes" multipleTouchEnabled = "yes" contentMode = "center" tableViewCell = "million-k8-mms" id = "IVD-DR-AZV" & gt; & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; / TableViewCellContentView & gt; & Lt; color key = "backgroundcolor" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; / tableViewCell & gt; & Lt; Table view group content mode = "scale tofill" selectionSilit = "none" indentation width = "10" re-useUserifier = "AdvancedCell" id = "FC-VO-XZU" & gt; & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; tableViewCellContentView key = "contentView" opaque = "no" clipsSubviews = "yes" multipleTouchEnabled = "yes" contentMode = "center" tableViewCell = "EFC- wo-Xpu" id = "7j1-rg rHz" & gt; & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; / TableViewCellContentView & gt; & Lt; color key = "backgroundcolor" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; / tableViewCell & gt; & Lt; / Prototype & gt; & Lt; Connection & gt; & Lt; Outlet Properties = "Data Source" Destination = "I-TC-JyD" id = "AM2-Xx-Xsd" / & gt; & Lt; Outlet Property = "Rep" Destination = "I-TC-GID" ID = "Tkb-ac-NHB" /> & Lt; / Connection & gt; & Lt; / Tableview & gt;    

You must call before entering

  - (zero) startUpdates; // Allow multiple insert / delete rows and sections to be animated simultaneously Nested   

and is called after insert

  - (zero) endupdates; // Call / Delete / Reload call, call or change the editing status within the update block. Otherwise things such as line count, etc. may be invalid.    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -