Reading call history in iPhone OS

前端 未结 5 1365
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 05:35

I\'m doing some research on the feasibility of an iPhone application, and can\'t find any indication in Apple\'s documentation that an iPhone app can read the call history o

5条回答
  •  半阙折子戏
    2020-12-05 06:31

    I did some reading in which states that you can access the call history on the iphone. It may be dated but worth a shot. Apparently the history is/was held in just a sqlite db on a table called call. The db is/was located at /private/var/mobile/library/CallHistory/call_history.db

    If you use FMDB, you can simply do something like this.

    FMResultSet *rs = [db executeQuery:@"Select * from Call"];

    to get the call history

提交回复
热议问题