Phone Call Cell, Email Cell, Web Cell
Posted 18 October 2010 - 10:37 PM
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.
Posted 19 October 2010 - 04:47 AM
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.
Posted 19 October 2010 - 06:31 AM
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.
Posted 29 September 2011 - 08:41 PM
- carl grainger likes this
Posted 30 September 2011 - 09:07 AM
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.
Posted 01 October 2011 - 11:15 PM
You can now easily achieve these via implementing your own custom cells. For an example of a custom cell in action, please refer to our "Custom Cells App" (PickerCell in ObjectBindingViewController). Please tell me if you need any further help with this.
Posted 04 October 2011 - 01:22 PM
Are you saying I should implement a custom cell and label it say "EmailAddressCell.xib" and in that cell create a textLabel for "Email Address" and on the right side put a button that would hold the actual e-mail address? I'd then need to implement the tableModelDelegate to intercept the button click to open an e-mail address?
Well I've tried doing this and I'm closer, however, I can't seem to find a way to bind my object to the customcell. I have it appearing with static text. Any additional examples would help.
I'd also like to know if there's a different way of doing this as this seems very complicated just to get an e-mail address to become clickable. Thanks.
Posted 05 October 2011 - 11:33 AM
I am now thinking that we should develop this ourselves and add it to the standard STV cells. What's your deadline for having this cell? Thanks!
Posted 01 November 2011 - 11:41 AM
Any update on how this is shaping up?
Was the custom cell the best approached?
Posted 02 November 2011 - 03:49 AM
These cells are actually scheduled for our next STV 2.2 release. Thanks!
Posted 04 November 2011 - 04:46 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users