Programmatically control iPhone OS versions to enable functions for both OS 3.x and 4 - MFMessageComposeViewController problem

后端 未结 6 742
轮回少年
轮回少年 2021-02-06 12:33

In order to support iPhone OS 3.x and 4.0 I programmatically control MFMessageComposeViewController functionality like this (use it only if the OS version is 4.0 or above):

6条回答
  •  广开言路
    2021-02-06 12:59

    I was having the same problem, and solved it a different way:

    On the Left hand-side of your XCode window,

    1. If you scroll down to the Bulls Eye with "Targets" and expand that

    2. Expand your

    3. < control > + < click > on "Link Binary With Libraries"

    4. Choose "Add" --> "Existing Frameworks"

    5. Choose "MessageUI.framework" and click on "Add"

    That should add the Message UI to your app, tell me if it works.

提交回复
热议问题