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
Post a Comment