UA-17470720-3

Jump to content


Photo
- - - - -

Add New on top rather than bottom

cells sections general

  • Please log in to reply
2 replies to this topic

#1 Vince

Vince

    Jr. Member

  • STV 4.0 Std
  • PipPip
  • 23 posts
Reputation: 0
Neutral

Posted 30 May 2014 - 11:42 AM

Dear All

 

I have a tableview and when the user selects Edit it allows him to add new items to the list. The "add new items" cell comes at the bottom of the list, if the the list is long the user got to scroll completely down. How is it possible to have this "Add New Item" on top of the list rather than at the bottom?

 

Cheers

 

Vince 



#2 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 30 May 2014 - 06:59 PM

This is the natural way that a UITableView works

 

If you want to reverse it, then you have to do the coding yourself.. you would have to test if the table was in edit mode and if so insert a custom cell in row 0.. when when leaving edit mode, remove the top row

I don't think I have seen a built in feature of STV that does it for you


P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#3 Vince

Vince

    Jr. Member

  • STV 4.0 Std
  • PipPip
  • 23 posts
Reputation: 0
Neutral

Posted 31 May 2014 - 03:27 AM

Thank you Ozie, I was afraid that this is the answer ;-) 


Edited by Vince, 01 June 2014 - 02:38 PM.






Also tagged with one or more of these keywords: cells, sections, general

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users