ios - How do I make a swift file with prewritten suggested methods? -


i've made new swift file named "customsearchbar" inherits uisearchbar,

import uikit  class customsearchbar : uisearchbar {  } 

my question is, how fill .swift file nice, pre-made suggested functions apple's included comments , such. i've seen done before can't quite remember.

thanks help.

when add new file choose cocoa touch class not swift file. there, can choose new file subclass of uisearchbar. xcode generate nice suggested functions , comment you.


Comments

Popular posts from this blog

amazon web services - S3 and apache mod_proxy with basic authentication -

How to install ruby on rails -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -