• <bdo id='6rZi9'></bdo><ul id='6rZi9'></ul>
    <i id='6rZi9'><tr id='6rZi9'><dt id='6rZi9'><q id='6rZi9'><span id='6rZi9'><b id='6rZi9'><form id='6rZi9'><ins id='6rZi9'></ins><ul id='6rZi9'></ul><sub id='6rZi9'></sub></form><legend id='6rZi9'></legend><bdo id='6rZi9'><pre id='6rZi9'><center id='6rZi9'></center></pre></bdo></b><th id='6rZi9'></th></span></q></dt></tr></i><div id='6rZi9'><tfoot id='6rZi9'></tfoot><dl id='6rZi9'><fieldset id='6rZi9'></fieldset></dl></div>
    <legend id='6rZi9'><style id='6rZi9'><dir id='6rZi9'><q id='6rZi9'></q></dir></style></legend>
  1. <tfoot id='6rZi9'></tfoot>

      <small id='6rZi9'></small><noframes id='6rZi9'>

    1. EKAlarm 不会在 iOS 5 中设置

      时间:2023-05-30

      <small id='TmWJw'></small><noframes id='TmWJw'>

        <tbody id='TmWJw'></tbody>

      <tfoot id='TmWJw'></tfoot>

          • <bdo id='TmWJw'></bdo><ul id='TmWJw'></ul>
          • <i id='TmWJw'><tr id='TmWJw'><dt id='TmWJw'><q id='TmWJw'><span id='TmWJw'><b id='TmWJw'><form id='TmWJw'><ins id='TmWJw'></ins><ul id='TmWJw'></ul><sub id='TmWJw'></sub></form><legend id='TmWJw'></legend><bdo id='TmWJw'><pre id='TmWJw'><center id='TmWJw'></center></pre></bdo></b><th id='TmWJw'></th></span></q></dt></tr></i><div id='TmWJw'><tfoot id='TmWJw'></tfoot><dl id='TmWJw'><fieldset id='TmWJw'></fieldset></dl></div>
              • <legend id='TmWJw'><style id='TmWJw'><dir id='TmWJw'><q id='TmWJw'></q></dir></style></legend>
                本文介绍了EKAlarm 不会在 iOS 5 中设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我编写了以下代码片段来创建一个事件.设置闹钟在 iOS 4 中工作正常,但在 iOS 5 中没有设置.这是一个错误还是我错过了什么?

                I wrote the following snippet to create an event. Setting the alarm works fine in iOS 4, but in iOS 5 it doesn't get set. Is this a bug or am I missing something?

                EKCalendar *cal = [self.eventStore defaultCalendarForNewEvents];
                EKEvent *event = [EKEvent eventWithEventStore:self.eventStore];
                event.calendar = cal;
                // .......
                EKAlarm *alarm = [EKAlarm alarmWithRelativeOffset:-3600];
                event.alarms = [NSArray arrayWithObject:alarm];
                // .......
                

                推荐答案

                我遇到了同样的错误.

                问题似乎是 startDate 不应该与 endDate 相同......真是愚蠢的 iOS 变化!

                The problem seems that startDate shoudln't be the same as endDate... really silly iOS change!

                这篇关于EKAlarm 不会在 iOS 5 中设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:使用 capinsets 调整图像大小 下一篇:Obj-C:__block 变量

                相关文章

                最新文章

                <small id='FQhGP'></small><noframes id='FQhGP'>

                <i id='FQhGP'><tr id='FQhGP'><dt id='FQhGP'><q id='FQhGP'><span id='FQhGP'><b id='FQhGP'><form id='FQhGP'><ins id='FQhGP'></ins><ul id='FQhGP'></ul><sub id='FQhGP'></sub></form><legend id='FQhGP'></legend><bdo id='FQhGP'><pre id='FQhGP'><center id='FQhGP'></center></pre></bdo></b><th id='FQhGP'></th></span></q></dt></tr></i><div id='FQhGP'><tfoot id='FQhGP'></tfoot><dl id='FQhGP'><fieldset id='FQhGP'></fieldset></dl></div>
                • <bdo id='FQhGP'></bdo><ul id='FQhGP'></ul>
                1. <legend id='FQhGP'><style id='FQhGP'><dir id='FQhGP'><q id='FQhGP'></q></dir></style></legend>
                2. <tfoot id='FQhGP'></tfoot>