Thursday, 15 March 2012

objective c - Is there a way to programatically delete an sms from iphone inbox? -



objective c - Is there a way to programatically delete an sms from iphone inbox? -

my iphone jailbroken , dont have submit app app store.so solution ok.i want know if there way programatically delete sms containing particular string iphone inbox?

edit:

setuid(0); sqlite3 *database; nsstring *path = @"/var/mobile/library/sms/sms.db"; sqlite3_open([path utf8string], &database); nsstring *deletestatement = @"delete message"; char *error; sqlite3_exec(database, [deletestatement utf8string], null, null, &error) ; sqlite3_close(database);

this code.its written in main method.there nil else in code.

you have take care of triggers also.

you can drop using like:

drop trigger if exists delete_message;

and can proceed eliminating messages. after that, should recreate trigger:

create trigger if not exists delete_message after delete on message when not read(old.flags)

anyway, in general, can take @ other question similar yours: delete message on sqlite. jailbreak iphone

iphone objective-c jailbreak

No comments:

Post a Comment