ios - A Framework of subclasses -


in project have subclass of uiview lets call mainview. create many subclasses of mainview, call "components". need other developers able create own components (with assets) can link them project. similar effect of plugins. copyright reasons source code needs hidden, believe framework best method, have issues this.

all new components in framework need subclass of mainview. have create different 'framework x' contains mainview , link both 'new components framework' , main project? not ideal main project huge , 'framework x' need lot more classes mainview , messy. or there simpler way this?

i have never created framework before , needs not frameworks designed do, unclear on best way go , use advice.

thanks

you can supply static library (.a) , public headers... sort of mac framework (that uses dynamic library, library headers.) ...

mainview.h

@interface mainview : uiview -(void) somemethods; @property int someproperty; @end 

then supply them compiled version of mainview.o packaged yourlib.a , header...

they implement interface like:

#import "mainview.h"  @interface sometypeofview : mainview @end 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -