Blocking incoming sms in iOS 7
问题 I want to write a tweak for jailbroken devices that blocks messages from a phone number(in iOS 7). First I used the second answer of creker in this link for writing the tweak. Here is my code: #import <substrate.h> #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import "CTMessage.h" #import "CTMessageCenter.h" id(*_processReceivedMessage_orig)(id, SEL, CTMessage*) = NULL; id _processReceivedMessage_hooked(id self, SEL _cmd, CTMessage* msg); %hook