gpt4 book ai didi

iphone - 应用设计-菜单系统

转载 作者:行者123 更新时间:2023-11-29 03:43:09 25 4
gpt4 key购买 nike

我有一个 UIViewcontroller,它有一个 UITableView 和几个按钮,(添加并完成)

当用户单击“添加”时,我需要获取一些详细信息(代表他们在应用程序中设置的通知)。

通知名称、号码、目标分数等详细信息...

获取此信息的最佳方式是什么?使用 UIView 并通过一些文本字段或类似内容将其动画到屏幕上是一个好主意吗?

有什么好的 cocoa 对照可以推荐吗?

问题是我的应用程序已经从 rootview Controller 模态转换到通知输入 Controller ,我试图获得一个简单的 UI 来输入数据,我可以使用 UIAlertViews 但它们太丑了......

最佳答案

根据您上面的评论:

    CustomUIView *inputView = [UIView alloc]initWithFrame:CGRectMake(offscreenRect)];
inputView.alpha = 0;
self.notificationInputController.userInactionEnabled = NO;


[UIView animateWithDuration:.5
animations:^{
inputView.alpha = 1;
inputView.rect = CGRectMake(onScreenRect);
}
completion:^(BOOL finished) {
[self.notificationInputController addSubView:inputView];
self.notificationInputController.userInactionEnabled = YES;
}];

关于iphone - 应用设计-菜单系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18089138/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com