gpt4 book ai didi

iphone - 我怎样才能每 10 分钟使用一次重复间隔??

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:51:42 25 4
gpt4 key购买 nike

有没有办法每 10 分钟设置一次本地通知重复间隔。

我尝试使用

localnotification.repeatInterval = NSMinuteCalendarUnit*3;

localNotif.repeatInterval = 640;

而且它不起作用。

所以请你指导我。 :)

最佳答案

正如 Mundi 所说,repeatInterval 必须是 NSCalendarUnit,并且只能包含:NSWeekCalendarUnitNSMonthCalendarUnitNSDayCalendarUnit , NSHourCalendarUnit,..

因此每 10 分钟收到一次通知。使用每小时重复的 6 个通知,并在通知之间设置 10 分钟。

关于iphone - 我怎样才能每 10 分钟使用一次重复间隔??,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7024594/

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