Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

UITableView and NSMutableArray

User Post

11:53 am
December 10, 2008


piku9000

iCoder

posts 11

1

Hello,

i have a NSMutableArray that holds like 45 elements loaded from a sqlite database, i give this array to a TableViewController that i've implemented, i only intend to make one section, so i only overwrote the numbersOfRowsInSection: method, so naturally i used the property NSMutableArray.count to do this… which gives a whopping 45 :D anyway, when it's the time to load the cells, it only shows 10 cells duplicated in all the 45 rows… when i scroll down and then up again… then it loads some more, but it replaces what it had shown.. why does this happen?? is this the normal behaviour of the UITableViewDataSource?

12:07 pm
December 10, 2008


piku9000

iCoder

posts 11

2

sorry i found out why… i configured the cell within the constructor area… dumb idea :)

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

3 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.