情况:
我在
netty4 套接字上运行
class MainTabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
navigationController?.isNavigationBarHidden = true
tabBar.isTranslucent = false
tabBar.barTintColor = UIColor.hexStringToUIColor(hex: "EFF4EF")
viewControllers = [
generateNavigationController(with: ChatBotController(), image: #imageLiteral(resourceName: "tabBar_bot_head").withRenderingMode(.alwaysOriginal)),
]
}
fileprivate func generateNavigationController(with rootViewController: UIViewController, image: UIImage) -> UIViewController {
let navController = UINavigationController(rootViewController: rootViewController)
navController.tabBarItem.image = image
return navController
}
}
..,并希望使用一些客户端代码将数据发送到此套接字。
问题:
我该怎么做?我想一个普通创建的套接字将无法工作。