UA-17470720-3

Jump to content


Photo
- - - - -

SCInputAccessoryView Prev/Next


  • Please log in to reply
4 replies to this topic

#1 Tommy Wild

Tommy Wild

    Advanced Member

  • STV 3.0 Pro
  • PipPipPipPipPip
  • 175 posts
Reputation: 12
Good

Posted 07 October 2012 - 06:01 AM

I really need a way to show/hide the Prev/Next segmented control on the SCInputAccessoryView! I've noticed that there is a way to show/hide the clear button.

#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 08 October 2012 - 07:23 PM

Hi Tommy,

You can hide the accessory view by setting the model's 'inputAccessoryView' property to nil.

self.tableViewModel.inputAccessoryView = nil;


#3 Tommy Wild

Tommy Wild

    Advanced Member

  • STV 3.0 Pro
  • PipPipPipPipPip
  • 175 posts
Reputation: 12
Good

Posted 10 October 2012 - 06:05 PM

Hi Tommy,

You can hide the accessory view by setting the model's 'inputAccessoryView' property to nil.

self.tableViewModel.inputAccessoryView = nil;


Thanks Tarek - but I actually wanted to be able to keep the Clear button, just not the prev/next.

*edit - And keep the Done button

Edited by Tommy Wild, 10 October 2012 - 06:06 PM.


#4 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 12 October 2012 - 05:32 AM

Hey Tommy,

For some super strange reason, UIToolbar doesn't like:

self.tableViewModel.inputAccessoryView.previousNextSegmentedControl.hidden = TRUE;

It just dims the control instead of hiding it! Even removing the whole segmented control from the UIToolBar still shows it dimmed :) Anyways, we'll research this some more and probably add a new property called 'showPrevNextButtons'. (of course if you have any idea why UIToolbar is behaving this way we'd love to hear it)

#5 Sebastian Roth

Sebastian Roth

    Jr. Member

  • STV 3.0 Pro
  • PipPip
  • 20 posts
  • LocationTaipei, Taiwan
Reputation: 1
Good

Posted 05 August 2013 - 06:01 AM

Did you find a way to do this yet? I have a similar issue (want to hide the Done button).






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users