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

后端 未结 6 657
轮回少年
轮回少年 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

    What about if you have functions that you only want to include conditionally.

    - (void)messageComposeViewController:(MFMessageComposeViewController *)controller   
                     didFinishWithResult:(MessageComposeResult)result {
        [self dismissModalViewControllerAnimated:YES];
    }
    

    For example, if the function definition contained MFMessageViewController, how do you make this part conditional (that is, not cause a problem with OS 3.x). Or is it not a problem at all?

提交回复
热议问题