EventLoggeriOS 事件記錄框架
EventLogger 是 iOS 開發(fā)中事件記錄框架,方便進(jìn)行事件統(tǒng)計(jì),包括計(jì)數(shù)事件與計(jì)時(shí)事件,如:統(tǒng)計(jì)某按鈕的點(diǎn)擊次數(shù),兩個(gè)事件發(fā)生的時(shí)間差等,使用簡(jiǎn)單。
計(jì)數(shù)事件:
[[EventLogger sharedInstance] addCountEventWithTag:@"click_clean"];
計(jì)時(shí)事件:
// 開始事件 EventCount2; [[EventLogger sharedInstance] addCountEventWithTag:@"EventCount2"]; // 記錄 EventCount2 從開始至今的時(shí)間; [[EventLogger sharedInstance] addTimeEventPoint:@"e12" withTag:@"TimeEven1" andInfo:nil timeFromPoint:@nil]; // 記錄 EventCount2 從 e12 點(diǎn)至今的時(shí)間; [[EventLogger sharedInstance] addTimeEventPoint:@"e13" withTag:@"TimeEven1" andInfo:nil timeFromPoint:@"e12"];
評(píng)論
圖片
表情
