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

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -