0

如何滚动到UIActionSheet标题等于某个NSString值的单元格?(我确信 tableview 会更好等等......但这是我目前所拥有的,需要一个解决我当前困境的解决方案)。

NSString当操作表进入视图时,我可以使用以下内容根据某个值向下滚动到该行吗?如果是这样,我该如何编码NSIndexPath indexPathForRow:row?我现在得到未声明的标识符行。

[actionSheet scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:row inSection:0] atScrollPosition:UITableViewScrollPositionMiddle animated:YES];

我可以通过以下方式获取操作表行的标题文本:

    actionSheetSelectedCity = [NSString stringWithFormat:@"%@",[actionSheet buttonTitleAtIndex: buttonIndex]];
4

0 回答 0