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



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
//! UI initialization
//! event is executed after UI initialization

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

2. Setting method


This is relatively simple. That’s all.