ios6下, 怎样取掉 xib 中的 Group Table View Background Color is deprecated warning

76次阅读

ios6中,Group UITableView 的背景颜色已经无效。在代码中删除就好了,但之前xib设置了颜色,所以在xib里面会有warning。请问有人知道怎么取掉吗?

请输入图片描述

tstyle11

可以在出错的那行上忽略之

#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

或者直接在GCC的编译参数里加上

-Wno-deprecated

Pinocchio

正文完