小编Cle*_* J.的帖子

日历已弃用

if ([eventStore.calendars count] == 0)   
    { 
        NSLog(@"No calendars are found.");
        return NO;
    }
 EKCalendar *targetCalendar = nil;
 /* Try to find the calendar that the user asked for */
 for (EKCalendar *thisCalendar in eventStore.calendars){ line2
     if ([thisCalendar.title isEqualToString:paramCalendarTitle] &&
         thisCalendar.type == paramCalendarType){
        targetCalendar = thisCalendar;
        break;
     }
}
Run Code Online (Sandbox Code Playgroud)

第1行和第2行收到错误:"不推荐使用的日历:在IOS 6中首先弃用"
如何解决?

calendar ios6

4
推荐指数
1
解决办法
1485
查看次数

在榆树的桌子上使用colspan

我有以下(简化)代码,我希望标题的每个单元格跨越第二行(正文)的两个单元格,但它们不是(有对齐的).

> import Html exposing (..) 
> import Html.Attributes exposing (..) 
> import Array exposing (..)
> 
> main =
>     Html.program
>         { init = init
>         , view = view
>         , update = update
>         , subscriptions = subscriptions
>         }
> 
> type alias Model =
>     { test : Int
>     }
> 
> 
> init : ( Model, Cmd Msg ) 
> init =
>         ( Model 1
>         , Cmd.none
>         )
> …
Run Code Online (Sandbox Code Playgroud)

html-table elm

1
推荐指数
1
解决办法
170
查看次数

标签 统计

calendar ×1

elm ×1

html-table ×1

ios6 ×1