swift - UITextView tap event to set an UITableView visible -


i'm working on swift application,

let's say, have simple uitextview , want, if user tap on it, open uitableview.

how imagine thing, make uitableview set invisible , when tap uitextview, uitableview becomes visible. , when tap button on custom cell of uitableview, uitableview becomes invisible again , uitextview text on cell.

is possible? mean, received actions available on uitextview copy, cut, paste... nothing touch down, on click or this..

i don't succeed find informations on swift, if tried this?

thanks in advance. regards,

fselva

you can set editing did began action shown in below image:

enter image description here

by creating method when user tap on textfield method call , method can show tableview shown below:

@ibaction func editingbegan(sender: anyobject) {     table.hidden = false } 

after if want hide tableview when user press button on custom cell create action button in custom cell class , can hide tableview.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -