-4

我需要一些关于如何在应用程序中提供指向 Facebook、我的网站等网站的链接的指示...如图所示,具有像“访问 somesite.com”这样的按钮看起来真的很丑陋和不专业。对于这个特定的项目,我希望链接显示在可滚动表视图的底部。但我不知道如何优雅地做到这一点。如果我只是链接到 Facebook/Twitter 等。我可以轻松地使用他们的徽标作为按钮,因为每个人都知道他们的徽标。但对于我自己的网站,我不知道。我可以得到一些建议吗?

在此处输入图像描述

4

2 回答 2

1

You could create a custom view in a XIB, with several UIButtons that serve as the links. And get some nice artwork for the UIButton's backgroundImage. Then, load that custom view from your nib in tableView:viewForFooterInSection:

Something like:

-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{

   NSArray *nibArray = [[NSBundle mainBundle] loadNibNamed:@"YourCustomNib" owner:self options:nil];
   UIView *footerView = [nibArray objectAtIndex:0];

   return footerView;

}

You'd probably need to implement tableView:heightForFooterInSection as well so that your entire custom view can be seen.

于 2013-07-30T14:50:50.223 回答
0

iOS 联系人应用程序仅在表格单元格中显示 URL 本身。那能行吗?

于 2013-07-30T14:44:24.763 回答