Iphone-How to send SMS without a message navigation window in ios [not duplicated]

I need to send an SMS to a click button automatically without navigating the message composer in iOS. Please help me. My script

1. I want to send a confirmation code to the user during registration.

I import and use the CTMessageCenter.h file, but it gives an error because the NSObject.h file was not found. Help me solve this problem. I am stuck with so many days.

+3
source share
2 answers

Only one solution is that we used the API service to send SMS, like another application. If we used private frameworks, the application is definitely rejected from the application store

+1
source

iOS 7 https://github.com/nst/iOS-Runtime-Headers. , .. NSObject.h CTMessageCenter.h, CDStructure.h. RuntimeBrowser -.

.

EDIT: , , sendSMSWithText:serviceCenter:toAddress: from CTMessageCenter iOS 7, . SMS CTMessageCenter (iOS 7).

0

All Articles