需引入QuartzCore.framework, 并在相关文件中加入 #import "QuartzCore/QuartzCore.h"
self.tableView.layer.borderWidth = 1; self.tableView.layer.borderColor = [[UIColor blackColor] CGColor];
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>