C 如何打印 CFNumberRef
C how to print CFNumberRef
我想知道如何打印 CFNumberRef 的快速问题。
我目前正在开发一个与移动设备框架(Apple)通信的程序,该程序将打印 iDevice 的 ecid。我目前有一个问题,我在这里阅读 link
为了获得您拥有的 ECID "Call the AMDeviceCopyValue function in the MobileDevice Framework " 并且在之前的一些帮助之后(
) 现在我有最后一个问题,在 theiphonewiki 上它说 "It returns the ECID as a CFNumber(kCFNumberSInt64Type) object. ",我现在的问题是如何打印到控制台 CFNumber(kCFNumberSInt64Type) 对象??? (我在 c 中工作)
您可以使用 CFShow()
将核心基础类型打印到控制台。
CFShow(yourCFNumberInstance);
如果你想格式化也可以使用NSLog()
:
NSLog(CFSTR("Number is %@"), yourCFNumberInstance);
我想知道如何打印 CFNumberRef 的快速问题。
我目前正在开发一个与移动设备框架(Apple)通信的程序,该程序将打印 iDevice 的 ecid。我目前有一个问题,我在这里阅读 link
为了获得您拥有的 ECID "Call the AMDeviceCopyValue function in the MobileDevice Framework " 并且在之前的一些帮助之后(
您可以使用 CFShow()
将核心基础类型打印到控制台。
CFShow(yourCFNumberInstance);
如果你想格式化也可以使用NSLog()
:
NSLog(CFSTR("Number is %@"), yourCFNumberInstance);