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中首先弃用"
如何解决?
我有以下(简化)代码,我希望标题的每个单元格跨越第二行(正文)的两个单元格,但它们不是(有对齐的).
> 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)