0

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

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

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

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

你可以推荐任何好的可可控制吗?

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

4

1 回答 1

1

根据您上面的评论:

    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;
                                 }];
于 2013-08-06T20:02:11.240 回答