Ios 如何显示“播放音乐”应用程序之类的弹出消息

Ios 如何显示“播放音乐”应用程序之类的弹出消息,ios,iphone,objective-c,cocoa-touch,uiview,Ios,Iphone,Objective C,Cocoa Touch,Uiview,我想在google shows的应用程序中添加类似于播放音乐的应用程序。我想使用和他们一样的动画效果。因此,任何人都可以指导我,是否有任何开源代码在应用程序中添加此功能,或者我需要手动编写所有代码,任何指导都会有帮助,我搜索了网络,但我没有找到任何 @interface ViewController () @property (nonatomic, weak) UILabel *popupLabel; @end @implementation ViewController - (UILabe

我想在google shows的应用程序中添加类似于播放音乐的应用程序。我想使用和他们一样的动画效果。因此,任何人都可以指导我,是否有任何开源代码在应用程序中添加此功能,或者我需要手动编写所有代码,任何指导都会有帮助,我搜索了网络,但我没有找到任何

@interface ViewController ()
@property (nonatomic, weak) UILabel *popupLabel;
@end

@implementation ViewController

- (UILabel *)popupLabel
{
    if( !_popupLabel ) {
        CGFloat height = 44.0;
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0,
                                                                   self.view.bounds.size.height - height,
                                                                   self.view.bounds.size.width,
                                                                   height)];
        label.backgroundColor = [UIColor colorWithWhite:0.0 alpha:0.5];
        label.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
        label.textAlignment = NSTextAlignmentCenter;
        label.textColor = [UIColor whiteColor];
        label.alpha = 0.0;
        [self.view addSubview:label];

        _popupLabel = label;
    }
    [self.view bringSubviewToFront:_popupLabel];
    return _popupLabel;
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    [self performSelector:@selector(showWithMessage:) withObject:@"1 song added to playlist" afterDelay:2.0];

}

- (void)showWithMessage:(NSString *)message
{
    self.popupLabel.text = message;
    [UIView animateWithDuration:1.0 animations:^{
        self.popupLabel.alpha = 1.0;
    }];
}

- (void)hide
{
    [UIView animateWithDuration:1.0 animations:^{
        self.popupLabel.alpha = 0.0;
    }];
}

照片中的弹出消息在哪里?在底部,被图像中的红色矩形涂成红色。我知道它是视图上方添加的UIView