Latest 0.1.5
License MIT
Platforms ios 9.0
Dependencies AFNetworking, HTMLKit

CI Status

SUAISchedule is a lightweight and very simple library for load schedule of groups or teachers studying in Saint Petersburg State University of Aerospace Instrumentation.
Current version is beta, it doesn’t obtain status of internet connection and not return adequate error codes.


To run the example project, clone the repo, and run pod install from the Example directory first.


SUAISchedule is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SUAISchedule'


Library contains SUAIManager class, which is a singleton, it means that during all program execution you will have only one instance of this class (it’s necessary to load entity codes once and store it in instance).

SUAIManager have one delegate method:

- (void)didChangeStatus:(Status)status;

Where Status is a structure which means current status of SUAIManager:

  1. Ok (i.e all codes is loaded and SUAIManager can load any schedule you need);
  2. Error (i.e. SUAIManager doesn’t contain codes or it have problems with internet connection).

Full description of Status below:

typedef enum Status {

Step by step

  1. Import SUAIManager.h to your class:
    #import "SUAIManager.h"
  2. Set delegate if you want to obtain status of SUAIManager and of course implement method in class:
    [SUAIManager instance].delegate = self;
  3. Use method:
    - (void)loadScheduleFor:(NSString *)identificator
                success:(void (^) (SUAISchedule *schedule))schedule
                   fail:(void (^) (NSString *fail))fail;

    For getting schedule for teacher or group passed in first argument (for example, 1740M). Also you need to pass entity. In next releases may be entity will be deprecated.


Don’t forget to allow arbitrary loads!
It’s pretty easy:

  1. Go to plist file;
  2. In information property list add new key "App Transport Security Settings";
  3. In added dictionary add key "Allow Arbitrary Loads" and set value to YES.


    • Xcode
    • Objective-C
    • iOS 9.0 or higher


Victor Volkov, [email protected]


SUAISchedule is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "SUAISchedule",
    "version": "0.1.5",
    "summary": "Library for working with SUAI schedule",
    "description": "SUAISchedule is a lightweight and simple library for loading and parsing schedule for students and teachers studying in Saint Petersburg State Unversity of Aerospace Instrumentation. It includes both session and semester schedule.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Victor Volkov": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.5"
    "platforms": {
        "ios": "9.0"
    "source_files": "SUAISchedule/Classes/**/*",
    "dependencies": {
        "AFNetworking": [],
        "HTMLKit": []

Pin It on Pinterest

Share This