我正在尝试在ActionSheet
触摸屏幕时显示scrollview
. 操作表在第一页中弹出很好。但在随后的页面上,屏幕变暗并且不显示任何内容,就好像实际按钮显示在屏幕外一样。我已经测试了不同的框架定位,UIActionSheet
但它似乎不起作用。
self.view.frame.origin.x似乎有正确的 ScrollView 位置。
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Jump to First Page", @"Browse Pages",nil];
CGRect frame = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y, 480.0f, 320.0f);
[actionSheet setFrame:frame];
[actionSheet showInView:self.view];