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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 09-08-2011, 05:21 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 67
Penicillin is on a distinguished road
Default TableView reload issue

Each cell of my TableView contains UIImage, I made an action to change all images in UIImage in each cell, then reload the table.
The images didn't change until I scroll the table.
I know the TableView is loading cell during scrolling.
But is there a way to fix my issue?

Thanks
Penicillin is offline   Reply With Quote
Old 09-08-2011, 05:27 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by Penicillin View Post
Each cell of my TableView contains UIImage, I made an action to change all images in UIImage in each cell, then reload the table.
The images didn't change until I scroll the table.
I know the TableView is loading cell during scrolling.
But is there a way to fix my issue?

Thanks
Without posting your code, it's hard to tell, but you are definitely calling reloadData() on your UITableView... correct?

If yes, then put a breakpoint on your willDisplayCell() delegate function and make sure it's getting called. If it is, step through the function and make sure the images you expect to change are actually getting changed.
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Old 09-08-2011, 05:35 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 67
Penicillin is on a distinguished road
Default

Quote:
Originally Posted by MattW View Post
Without posting your code, it's hard to tell, but you are definitely calling reloadData() on your UITableView... correct?

If yes, then put a breakpoint on your willDisplayCell() delegate function and make sure it's getting called. If it is, step through the function and make sure the images you expect to change are actually getting changed.
Yes, reloadData in my TableView.
willDisplayCell and cellForRowAtIndexPath are called.
The images are changed but I have to scroll the table to apply the changes.
Penicillin is offline   Reply With Quote
Old 09-08-2011, 05:37 PM   #4 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by Penicillin View Post
Yes, reloadData in my TableView.
willDisplayCell and cellForRowAtIndexPath are called.
The images are changed but I have to scroll the table to apply the changes.
Then there's something funny going on in your code. Post it so we can have a look.
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Old 09-08-2011, 05:40 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 67
Penicillin is on a distinguished road
Default

Quote:
Originally Posted by MattW View Post
Then there's something funny going on in your code. Post it so we can have a look.
The problem is a little complicated and long code, contains multiple arrays and views.
Penicillin is offline   Reply With Quote
Old 09-08-2011, 05:44 PM   #6 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by Penicillin View Post
The problem is a little complicated and long code, contains multiple arrays and views.
Then you're going to have to debug it all by yourself. The question you're asking is like me saying to you: "My car isn't working. What's wrong with it?"
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Reply

Bookmarks

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
» Online Users: 388
9 members and 379 guests
apatsufas, Eclectic, JackReidy, jeroenkeij, Sami Gh, tim0504, UMAD, yomo710, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,904
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

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