繁体   English   中英

telprompt的结果:

[英]result of telprompt:

有没有办法确定用户何时从telprompt回到应用程序? 如果他们点击取消我不想做任何事情,但如果他们回到应用程序时打电话我想采取行动。 谢谢。

NSNotificationCenter * center =
    [NSNotificationCenter defaultCenter];

    [center addObserverForName:UIApplicationDidBecomeActiveNotification
                        object:nil
                         queue:[NSOperationQueue mainQueue]
                    usingBlock:^(NSNotification *note)
    {
        // use instance flag to know
        if (self.isBackfromCalling)
        {
            // do some stuff
        }
    }];

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM