Welcome, Guest
Username Password: Remember me

Implementig returnButtonTappedForCell of SCTableViewCellDelegate
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Implementig returnButtonTappedForCell of SCTableViewCellDelegate

Implementig returnButtonTappedForCell of SCTableViewCellDelegate 1 year, 2 months ago #1

hi guys!

i'm implementing the returnButtonTappedForCell from the SCTableViewCellDelegate protocoll, in order to perform some custom handling.

if implementing returnButtonTappedForCell, the next SCTextFieldCell is not getting the becomeFirstResponder message, after tapping the keyboard return key!

=> why is this happening and how can i move to the next text field?

many thanks in advance!

nenad
  • cut2kill
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re: Implementig returnButtonTappedForCell of SCTableViewCellDelegate 1 year, 2 months ago #2

Hi Nenand,

STV automatically makes the next cell become the first responder only if STV is handling the return button itself. If you override this by implementing the returnButtonTappedForCell method, you'll have to do that yourself, as STV has no way of knowing if you actually require this behavior to happen. STV however provides methods that gives you a great deal of help with determining the next cell: please check the SCTableViewModel method called "cellAfterCell:rewindIfLastCell:".

Hope this helps!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Implementig returnButtonTappedForCell of SCTableViewCellDelegate 1 year, 2 months ago #3

hi Tarek!

excellent, this helped me out!

=> i'm resigning and setting the first responder status now manually and it work's!

thanks a lot!

best regards,
nenad
  • cut2kill
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
  • Page:
  • 1
Time to create page: 1.38 seconds