Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
HJälp?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mattias  
View profile   Translate to Translated (View Original)
 More options Mar 11 2012, 3:42 am
From: mattias <mattias.hed...@gmail.com>
Date: Sun, 11 Mar 2012 08:42:56 +0100
Local: Sun, Mar 11 2012 3:42 am
Subject: HJälp?
Hej på er!
Nu har det hänt något konstigt...

Jag har en UITableView som en del av en vy.
Jag matar den allt eftersom med NSDictionary.
När jag fyllt alla synliga rader på vyn och lägger till ett bytt byts alla rader ut mot det senaste värdet.

Jag ser 6 rader:
101
102
103
104
105
106

Sedan matar jag in värde 7 då blir det så här:
107
107
107
107
107
107
107

Vad händer?

Mattias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Wallenqvist  
View profile   Translate to Translated (View Original)
 More options Mar 11 2012, 4:12 am
From: Tobias Wallenqvist <herrom...@gmail.com>
Date: Sun, 11 Mar 2012 09:12:49 +0100
Local: Sun, Mar 11 2012 4:12 am
Subject: Re: HJälp?
Är det en custom cell?

Testa prepareForReuse

/T

11 mar 2012 kl. 08:42 skrev mattias:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattias Hedman  
View profile   Translate to Translated (View Original)
 More options Mar 11 2012, 4:16 am
From: Mattias Hedman <mattias.hed...@gmail.com>
Date: Sun, 11 Mar 2012 09:16:42 +0100
Local: Sun, Mar 11 2012 4:16 am
Subject: Re: HJälp?

Nej det är det inte bara en vanlig subtitle cell.

Var ska jag placera prepareforreuse?

Mattias
--
If you for some reason did not get this email, contact me immediately.

11 mar 2012 kl. 09:12 skrev Tobias Wallenqvist <herrom...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Wallenqvist  
View profile   Translate to Translated (View Original)
 More options Mar 11 2012, 4:19 am
From: Tobias Wallenqvist <herrom...@gmail.com>
Date: Sun, 11 Mar 2012 09:19:23 +0100
Local: Sun, Mar 11 2012 4:19 am
Subject: Re: HJälp?

Det är alltså en delegatefunktion för tableview

-(void) prepareForReuse

i den resettar du alla värden som du vill.. Antar att det inte är problemet dock, men du kan ju testa.

11 mar 2012 kl. 09:16 skrev Mattias Hedman:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattias Hedman  
View profile   Translate to Translated (View Original)
 More options Mar 11 2012, 4:43 am
From: Mattias Hedman <mattias.hed...@gmail.com>
Date: Sun, 11 Mar 2012 09:43:16 +0100
Local: Sun, Mar 11 2012 4:43 am
Subject: Re: HJälp?

Vet inte. Har aldrig råkat ut för detta.
I planen ingår att vända på hur nya celler ska läggas till.
Det ska läggas till från toppen och inte botten som är default.

Jag saknar release just nu.
Nil vill inte funka.

För i byggandet av cellerna läser jag ut en NSDictionary ur en NSMutableArray via objectAtIndex indexPath.row.
Här är problemet när jag sedan scrollar tabellen så återanvänds cellerna med senaste cellen.
Precis som det ska, jag behöver alltså overrida default funktionen att den inte ska återanvända celler.
Det får bli 30 situps på det.
Vacker svenska. ;)

Mattias
--
If you for some reason did not get this email, contact me immediately.

11 mar 2012 kl. 09:19 skrev Tobias Wallenqvist <herrom...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulf Urdén  
View profile   Translate to Translated (View Original)
 More options Mar 12 2012, 2:57 am
From: Ulf Urdén <ulf.ur...@gmail.com>
Date: Mon, 12 Mar 2012 07:57:47 +0100
Local: Mon, Mar 12 2012 2:57 am
Subject: Re: HJälp?
Du kan cacha celler med samma identifier i
dequeueReusableCellWithIdentifier även om de inte ska ha samma text.
Prova att sätta breakpoints i cellForRowAtIndexPath och kolla vad som
händer.

2012/3/11 Mattias Hedman <mattias.hed...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »