因为开发中用到FMDatabase 所以需要手动开启和关闭数据库,遇到上述情况是因为在使用fmdb时有时候一不小心没写好代码就会这样子啦,为什么呢,其实呢,应该是在前面代码中有调用数据库而且并没有调用[db close]就直接跳出结果来了,所以在前面的数据库操作中先运行[db close]再返回数据即可;
davresponse libxml/parser.h file not found解决
Add ${SDKROOT}/usr/include/libxml2
as a header search path
Undefined symbols for architecture i386: "_xmlFreeDoc", referenced from:
Go to Target -> Build Phases -> Link Binary with Library, click the plus sign and add "libxml2.dylib"