2013-03-17 78 views
0

我正在使用FBFriendPickerViewController来显示Facebook好友。 在Facebook的SDK 3.1它工作正常,但最近我升级至Facebook SDK现在3.2 您不能滚动到最后细胞了,当已经加入一个UISearchBar作为画布视图的子视图FBFriendPickerViewController不滚动到最后一个单元格:Facebook SDK 3.2中的错误

CGFloat searchBarHeight = 44.0; 
FBsearchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0,0, 
      self.view.bounds.size.width, 
      searchBarHeight)]; 
FBsearchBar.autoresizingMask = FBsearchBar.autoresizingMask | UIViewAutoresizingFlexibleWidth; 
FBsearchBar.delegate = self; 
FBsearchBar.showsCancelButton = NO; 

[self.canvasView addSubview:FBsearchBar]; 
CGRect newFrame = self.view.bounds; 
newFrame.size.height -= searchBarHeight; 
newFrame.origin.y = searchBarHeight; 

self.tableView.frame = newFrame; 

有谁有这个解决方案吗?我升级到了Facebook SDK 3.2,因为FBWebDialogs是为了在你自己的墙上或朋友墙上张贴消息而引入的。

回答

0

我终于找到了窍门也可以选择最后一个条目:

newFrame.size.height - = 2 * searchBarHeight;

相关问题