Welcome, Guest
Username Password: Remember me

Phone Call Cell, Email Cell, Web Cell
(1 viewing) (1) Guest

TOPIC: Phone Call Cell, Email Cell, Web Cell

Phone Call Cell, Email Cell, Web Cell 1 year, 7 months ago #1

Hi,

I have three small feature requests. These are actually things which can be done by us (the users of Sensible TableView) very easily, but it would be a small time saver if Sensible TableView would include this features directly:

When there is a email address or a phone number in the textLabel of a cell, STV could link them automatically to open a mail composer view controller or to show an alert (call number x, yes or no — Safari shows such an alert when the user taps on a phone number on a website).
I guess a phone number is not easy to detect programmatically, so there might could just be a property set to YES in order to activate these feature(s).

If a cell contains a web address it could automatically be linked to a (modal) view controller which shows up an UIWebView which loads the linked website and three or four buttons to navigate back, forward, to reload and to stop reloading the page. These basic things, you know.

Well, just some ideas to make this awesome product even better. Maybe you want to put that on your todo list — or, if you think that this doesn't need to be in STV, just forget my requests.

Cheers,
Patrick
  • Patrick
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 3

Re: Phone Call Cell, Email Cell, Web Cell 1 year, 7 months ago #2

I'm not sure about the textView inside the SCTextViewCell but in a normal textView you can set these features in IB or programatically; you can also set which of the several keyboard styles is shown when it's First Responder. I wonder if the property settings for the textView of the SC cell already support this.

But if not, hat you suggest would be an interesting feature -- I'm all for more and different cells with deeper feature sets that can easily be implemented with a line of code, that's what's so great about STV.
  • Geoffrey
  • OFFLINE
  • Senior Boarder
  • Posts: 48
  • Karma: 3

Re: Phone Call Cell, Email Cell, Web Cell 1 year, 7 months ago #3

Thanks a lot Patrick for all your ideas, I think they're all valid and will serve a lot of our users' needs. This will definitely go on our to do list.

Geoffrey: An SCTextViewCell has a normal UITextView that is accessible using the "textView" property, and which you can configure in the same way you configure any other UITextView (so yes you can do that). The same is also true for all other STV control cells.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Phone Call Cell, Email Cell, Web Cell 7 months, 3 weeks ago #4

Is there a way to do the phone number / e-mail address yet for SCClassDefinition?
  • bradvandyk
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0

Re: Phone Call Cell, Email Cell, Web Cell 7 months, 3 weeks ago #5

As far as I know - no.
  • Patrick
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 3

Re: Phone Call Cell, Email Cell, Web Cell 7 months, 3 weeks ago #6

Were you able to get this to work then?

I tried implementing SCTableViewModelDelegate but that seems to only be the delegate for my actual model (not the details model generated by my SCClassDefinition). I tried interrupting the detailModelWillAppear to set the delegate of the SCTableViewCell for my e-mail address cell, but that delegate's didSelectCell method doesn't seem to be called when you click the e-mail address, but just other parts of the cell.

Any help would be appreciated, thanks.
  • bradvandyk
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
Time to create page: 3.41 seconds