Iphone uiscrollview+;uiviewcontroller+;行动单
我根据以下教程创建了一个应用程序。 我添加了一个按钮,按下该按钮时会显示UIActionSheet。它在第一页上工作得很好,但在其他页面上不显示工作表。我认为这是因为图纸显示在(0,0)处,所以我尝试使用视图的框架初始化图纸。不走运Iphone uiscrollview+;uiviewcontroller+;行动单,iphone,uiviewcontroller,uiscrollview,uiactionsheet,Iphone,Uiviewcontroller,Uiscrollview,Uiactionsheet,我根据以下教程创建了一个应用程序。 我添加了一个按钮,按下该按钮时会显示UIActionSheet。它在第一页上工作得很好,但在其他页面上不显示工作表。我认为这是因为图纸显示在(0,0)处,所以我尝试使用视图的框架初始化图纸。不走运 UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithFrame:self.view.frame]; [actionSheet setTitle:NSLocalizedString(@"Create
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithFrame:self.view.frame];
[actionSheet setTitle:NSLocalizedString(@"Create Event", @"Create Event")];
[actionSheet setDelegate:self];
[actionSheet addButtonWithTitle:NSLocalizedString(@"Cancel", @"Cancel")];
[actionSheet addButtonWithTitle:NSLocalizedString(@"Save", @"Save")];
[actionSheet addButtonWithTitle:NSLocalizedString(@"Discard", @"Discard")];
[actionSheet setDestructiveButtonIndex:2];[actionSheet showInView:self.view];
[actionSheet release];
有人知道这里发生了什么吗?我能做些什么来纠正这个问题呢?尝试使用这些函数,而不是自己设置帧 UIActionSheet*popupQuery=[[UIActionSheet alloc] initWithTitle:无 代表:赛尔夫 取消按钮:@“取消” 破坏性按钮:无 其他按钮提示:@“确定”,无] 并使用此功能显示警报 [popupQuery showInView:self.view]
祝你好运。我试过这个,但运气不好。还有其他建议吗?是否有办法让我的viewcontroller“知道”它们在scoll视图中的位置?