如何在Objective-C中将uint16_t转换为int?

时间:2017-12-05 14:03:10

标签: objective-c

enter image description here如何将hexValue转换为int数据类型?

1 个答案:

答案 0 :(得分:1)

试试这个,

uint16_t var = 65535;

int variable = var;