Sagit.Framework Introduction to for IOS development framework 13: tab interface controller base class sttabcontroller

Time:2020-10-31

preface:

In SAGIT framework, all new controllers and UI views need to inherit from the base class of the framework. This paper introduces the base class of controller: sttabcontroller.

Sttabcontroller: basic definition

@interface STTabController : UITabBarController
//! event is executed before UI initialization
-(void)onInit;
//! UI initialization
-(void)initUI;
//! event is executed after UI initialization
-(void)initData;
@end

There are fewer definitions than the stview base class.

The core of this method is to rewrite some basic methods

2. Examples of basic usage:

A. Inherit base class

@interface MainController : STTabController
@end

2. Setting method

 

This is relatively simple. That’s all.