ios - How to separate classes? ios7 -
i using mvc , 1 of controllers have 1000 lines. in contain lot of delegates, ui in code , user actions vc. , more complex in future. want fix not know how. need advices.
you can extract subclasses viewcontroller. 1 way extract subclasses large class identify variables in vc tend used together. pull variables , functions operate on variables out own seperate class.
here references design rules in ios: design patterns
Comments
Post a Comment