Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in ConnectionObject.h
- @property (nonatomic, strong) NSString *address
- ...
- -(id)initWithAddress:(NSString *)address hostName:(NSString *)hostname port:(NSString *)port socket:(NSString *)socket;
- in ConnectionObject.m
- -(id)initWithAddress:(NSString *)address hostName:(NSString *)hostname port:(NSString *)port socket:(NSString *)socket {
- if (self = [super init]) {
- self.address = address;
- ...
- }
- return self;
- }
- in place where your data coming to you...
- ConnectionObject *object = [ConnectionObject alloc] initWithAddress:address hostName:hostname port:port socket: socket];
- [connectionArray insertObject:object];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement