English 中文(简体)
价值见可兑换货币。 之后的意见
原标题:Value is shown in UITableView after it is scrolled

我在我的“iPad”申请中,在标签上插入一些价值。 这种价值也应出现在另一类可转让的意见中。 当我把标签和航海中的价值插入另一个观点时,表格中没有任何价值,但当我浏览表格时,就原位置而言,价值就显现。 我怎么能加以纠正?

Thanks and regards

PC.2/

最佳回答

当你上表时,随着情况的可见度,你最终将数据重载。 如果您打电话[tableView reloadData] on viewillAppear,那就应当重新贴上标签,并正确向您展示。

Good Luck!

问题回答

卸载 文件中的数据方法。 贵方在改变价值后,将需要使用这种方法,以便表格知道目前所展示的电池将重载。 当你 s上囚室时,你正在重新开车,这就是为什么在开车后看到新的价值。

Just to clarify, the reloadData method will need to be called on the UITableView object.

[myTableView reloadData];

文件:

卸载接收器的浏览器和部件。

<编码>-(避免) 重荷/code>

讨论情况

要求这一方法重载用于编制表格的所有数据,包括细胞、科长和脚步、指数阵列等等。 为了提高效率,表格仅对可见的几行进行了重新展示。 如果该表由于重载而缩小,则予以调整。 表格认为,如果表格认为其数据完全重载,则该方法即指该方法。 不应在插入或删除行文的方法中加以呼吁,特别是在通过呼吁开始更新和结束日期而实施的动画栏内。





相关问题
Asynchronous request to the server from background thread

I ve got the problem when I tried to do asynchronous requests to server from background thread. I ve never got results of those requests. Simple example which shows the problem: @protocol ...

objective-c: Calling a void function from another controller

i have a void, like -(void) doSomething in a specific controller. i can call it in this controller via [self doSomething], but i don t know how to call this void from another .m file. I want to call ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

NSUndoManager and runModalForWindow:

I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be ...

NSMutableArray values becoming "invalid"

I m trying to show a database information in a tableview and then the detailed information in a view my problem is as follow: I created a NSMutableArray: NSMutableArray *myArray = [[NSMutableArray ...

iPhone numberpad with decimal point

I am writing an iPhone application which requires the user to enter several values that may contain a decimal point (currency values, percentages etc.). The number of decimal places in the values ...

热门标签