Tag: 事件事件

在IOS中检查事件存储中的所有事件而不检查重复事件

我正在向IOS日历中添加事件数组,因为它必须单击一个button。因此,所有事件都会被重复添加。因此,我使用NSPredicate来获取所有事件并进行validation下面 NSDate *edate=[formatter dateFromString:startDateString]; NSDate *fdate=[formatter dateFromString:endDateString]; NSLog(@"Start Date is %@",edate); NSLog(@"End Date is %@",fdate); event1.startDate =edate; event1.endDate=fdate; NSArray *caleandarsArray = [[NSArray alloc] init]; caleandarsArray = [eventStore calendars] ; NSPredicate *predicateForEvents = [eventStore predicateForEventsWithStartDate:edate endDate:fdate calendars:caleandarsArray]; // nil will search through all calendars NSArray *eventsOnDate = [eventStore eventsMatchingPredicate:predicateForEvents]; NSLog(@"Events on holday date is %@",eventsOnDate); BOOL […]

乱舞事件根本没有出现

我想添加一些分析function到我的应用程序,所以我在Flurry上创build了一个帐户,并将他们的SDK添加到我的项目中。 然后我logging了一些事件,正常事件和定时事件。 直到这里没有什么特别的:)但即使在2天后,我看不到在Flurry的仪表板中的任何这些事件。 我可以看到会议的数量,所以我猜我的应用程序实际上是发送一些东西。 但没有事件。 任何想法? 我没有做任何关于代码的奇特的事情,我用我的ID注册(根据我之前说的,这是正确的) [FlurryAnalytics startSession:flurryKey]; 和logging事件使用: [FlurryAnalytics logEvent:@"MyEvent"];