Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-27-2010, 08:39 PM   #1 (permalink)
http://app-apps.com
 
Join Date: Jun 2009
Location: Los Angeles, CA
Posts: 446
Default How to prevent UITableView updates firing?

I have a UITableViewController from which I am pushing a modal view controller (to add a new row to the table). While the modalViewController is up I want disable all UI updates on the UITableViewController. How do you disable view updates?

The reason I'm looking for this is because I'm noticing some odd behavior. In my modal view whenever I move from one textfield to another, updates fire on the table view that I pushed from. I'm logging the various table view delegate methods and I see:

Code:
2010-01-27 17:27:13.037 Contacts[873:207] numberOfSectionsInTableView
2010-01-27 17:27:13.037 Contacts[873:207] titleForHeaderInSection
2010-01-27 17:27:13.038 Contacts[873:207] numberOfRowsInSection
While this is not a huge deal, it is unnecessary UI processing and could become rather expensive if there are a lot of rows in the table and the UI keeps updating. I'm guessing there is a way to disable updates until my modalViewController is dismissed?
__________________
Michael Emmons
Founder, App Apps, LLC
http://app-apps.com



VideoBot | Audiotorium Notes | Thought Bubbles
MichaelE is offline   Reply With Quote
Reply

Bookmarks

Tags
ui updates, uitableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:33 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0