//// WelcomeViewController.swift// APIExample//// Created by 张乾泽 on 2020年7月22日.// Copyright © 2020 Agora Corp. All rights reserved.//import Foundationimport UIKitclass EntryViewController : UIViewController{@IBOutlet weak var joinButton: AGButton!@IBOutlet weak var channelTextField: AGTextField!@IBOutlet weak var noteLabel: UILabel!var note: String = ""//identifer of next view controller after press join buttonvar nextVCIdentifier: String = ""override func viewDidLoad() {super.viewDidLoad()noteLabel.text = note}@IBAction func doJoinPressed(sender: AGButton) {guard let channelName = channelTextField.text else {return}//resign channel text fieldchannelTextField.resignFirstResponder()let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)// create new view controller every time to ensure we get a clean vcguard let newViewController = storyBoard.instantiateViewController(withIdentifier: nextVCIdentifier) as? BaseViewController else {return}newViewController.title = channelNamenewViewController.configs = ["channelName":channelName]self.navigationController?.pushViewController(newViewController, animated: true)}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。