ios - textField Input String convert into UINT32 -


need little bit help. how save number textfield nsinteger variable?

i got propertys:

@property(weak, nonatomic) iboutlet uitextfield *textfieldport; @property nsinteger *porttemp; 

and want this:

_porttemp = _textfieldport.text; 

i need variable pass through

cfstreamcreatepairwithsockettohost(null, (__bridge cfstringref)address, port, null, &writestream); 

anyone idea?

it's easy mate, try this

_porttemp = [_textfieldport.text integervalue]; 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -