RegularLogin.swift
发生此错误。我不知道为什么Xcode说使用未声明类型TransmissionProtocol
这是我在TransmissionProtocol.swift
import Foundation
import UIKit
var TransmissionProtocolConfiguration = [String: Int]()
public class TransmissionProtocol{
func setUpTransitPorotocol()
{
/*------------client send to server---------------*/
//first step
TransmissionProtocolConfiguration["login"] = 1
TransmissionProtocolConfiguration["register"] = 2
/*------------sever send to client-----------------*/
//login error
TransmissionProtocolConfiguration["errLoginUsernameNotExist"] = -1
TransmissionProtocolConfiguration["errLoginUsernameAlreadyOnline"] = -2
TransmissionProtocolConfiguration["errLoginPassword"] = -3
//register error
TransmissionProtocolConfiguration["errRegisterUsernameExist"] = -4
}
}