IOS inherit a UIViewController with xib file

2019-08-22 03:09发布

I have this problem:

in my VCTemplate class ( with .h, .m and .xib file) I created my base template class (in my project are many viewcontroller that are similar, only some content is different.

After this I've insered in the .xib file a UIWebView, a UITabBar...

after this i've created my new viewcontroller that inherit from VCTemplate:

#import "VCTemplate.h"

@interface VCFirstView : VCTemplate

and the code works fine (some functions written i the VCTemplate are good, but the interface doesn't mantain the interface I've created in the VCTemplate, considering that my VCFirstView contains only .h and .m, no .xib file

thanks in advance

0条回答
登录 后发表回答