How do I read data using CocoaAsyncSocket?
问题 I have created a TCP Socket connection in my appDelegate didFinishLaunchingWithOptions method. That was the easy part, and I have successfully connected to my server. I am having great difficulty with reading the data from the server in my View. I have been looking through tutorials on how to appropriately (step by step) read data using CocoaAsyncSocket , but I haven't come across anything useful. This is my code from my appDelegate: -(BOOL)application:(UIApplication *)application