I have an app that makes multiple connections to different servers at the same time. I want to record each connection in an array so I can display them in a tableview and use them in a different section of my app. This is what I get back from GCDAsyncSocket.

{
address = "127.0.0.1";
hostname = "127.0.0.1";
port = 52509;
socket = "<a0471600 01000000>"; }

Trying to figure out how to parse this into a mutable array or dictionary based on the address so I can display it in a tableview. This is coming from GCDAsyncSocket

有帮助吗?

解决方案

I don't know where is problem. if i would like to store this data I created a class which has parameters address, hostname, port and socket as NSString objects. And next insert this object class to NSMutableArray.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top