CFShow 打印核心基础对象的内容
来源:互联网 发布:淘宝店铺上传宝贝技巧 编辑:程序博客网 时间:2024/05/19 00:56
~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS8.1.iOSLibrary.docset/Contents/Resources/Documents/documentation/CoreFoundation/Reference/CFTypeRef/index.html
CFShow
Prints a description of a Core Foundation object to stderr.
Declaration
SWIFT
func CFShow(_ obj: AnyObject!)
OBJECTIVE-C
void CFShow ( CFTypeRef obj );
Parameters
obj
A Core Foundation object derived from CFType. If obj is not a Core Foundation object, an assertion is raised.
Discussion
The output is printed to the standard I/O standard error (stderr).
This function is useful as a debugging aid for Core Foundation objects. Because these objects are based on opaque types, it is difficult to examine their contents directly. However, the opaque types implement description function callbacks that return descriptions of their objects. This function invokes these callbacks.
Special Considerations
You can use CFShow in one of two general ways. If your debugger supports function calls (such as gdb does), call CFShow in the debugger:
(gdb) call (void) CFShow(string)
Hello World
You can also incorporate calls to CFShow in a test version of your code to print out "snapshots" of Core Foundation objects to the console.
Import Statement
import CoreFoundation
Availability
Available in iOS 2.0 and later.
- CFShow 打印核心基础对象的内容
- JavaScript开发: 打印json对象的内容
- java reflect:打印对象内容 很好的调试工具
- java reflect:打印对象属性内容 很好的调试工具
- 在控制台打印QString对象内容的简单办法
- TreeView 内容的打印
- 打印canvas的内容
- 打印 Model 的内容
- reflect:打印对象属性内容---调试工具
- Windows的核心对象
- C#控制台基础 stringbuilder类的对象追加新内容
- DataSet对象一些基础内容
- 指定页面内容的打印
- C# 打印groupbox的内容
- 打印easyui的datagrid内容
- 打印DataGridView内容的类
- 打印指定区域的内容
- linux下GDB调试C++标准库STL,打印STL对象的内容
- Oracle通过sqlplus spool导出数据时异常
- 解读NoSQL数据库的四大家族
- 快速排序Quick_Sort
- Android开发环境搭建--新手必看
- IOS学习内功心法-初学者1
- CFShow 打印核心基础对象的内容
- MongoDB命令行操作指定命令和指定文件
- NSPredicate的用法
- 从sqlserver中导入数据到matlab。
- 浅论Android网络请求库——android-async-http
- Android ActionBar完全解析,使用官方推荐的最佳导航栏(上)
- root后还是打不开data/data
- adb 打印指定进程的log信息
- eclipse解压后无法启动