需要一点帮助。如何将文本字段中的数字保存到 NSInteger 变量中?
我得到了这个属性:
@property(weak, nonatomic) IBOutlet UITextField *textFieldPort;
@property NSInteger *portTemp;
我想要这样的东西:
_portTemp = _textFieldPort.text;
我需要变量通过
CFStreamCreatePairWithSocketToHost(NULL, (__bridge CFStringRef)address, port, NULL, &writeStream);
有人知道吗?