ios - Copy and paste storyboard controller into xib file. Supported or not? -
i want refactor out storyboard controller separate xib, better reusablity. controller extends uitableviewcontroller.
i can select controller in storyboard, hit cmd-c, create empty xib file using new file wizard, , paste controller xib.
it seems work ok. ui elements there, outlets there, etc. forgets orientation , size (portrait, retina 4-inch), can set in properties pane right in xcode.
however when trying use xib crash error message:
loaded "mycontroller" nib view outlet not set.
when try connect files owner table view (which top view in controller extended uitableviewcontroller), xcode won't let me connect them.
my question: is unsupported copy-paste controller storyboard xib?
you jamming tableviewcontroller nib , there no outlet hook view to. when ctl-c in storyboard make sure copy uitable not uitableviewcontroller. if not can try manually create outlet in controller might have jump through hoops make work.
Comments
Post a Comment