我正在使用 FBFriendPickerViewController 来显示 facebook 朋友。在 Facebook SDK 3.1 中它工作正常,但最近我升级到 Facebook SDK 3.2 现在,当添加 UISearchBar 作为画布视图的子视图时,您无法再滚动到最后一个单元格
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 用于在您自己的墙上或朋友的墙上发布消息。