Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在开发一个应用程序,我需要将字符串值“0xE3413F”转换为具有相同值“0xE3413F”的 UInt32。原因是我在需要 UInt32 值的函数中使用该值。我已将字符串保存在 .plist 中。
但是,我发现这样做的唯一方法是首先将字符串转换为 Int 和 UInt32,但这并没有给我原始值。
有没有办法将字符串直接转换为 UInt32,或者有其他方法可以将 UInt32 保存在 .plist 中吗?