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

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -