Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7672511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:18:09+00:00 2026-05-31T16:18:09+00:00

I am displaying a MFMessageComposeViewController in my app, and all is fine, on iOS

  • 0

I am displaying a MFMessageComposeViewController in my app, and all is fine, on iOS 5, but some users testing are complaining about iOS 4, it seems the view controller that appears as a result of my code below is displaying an empty SMS compose and in addition there are no Top Navigation items such as the cancel button or even the title “New Message”.

I don’t have any iOS 4 device to hand (very bad I know), and so I cannot jump into the issue and debug it.

Can anyone see if I’m doing something wrong ? I’ve attached the problem screenshot I was sent, it’s very strange.

BOOL canText = [MFMessageComposeViewController canSendText];

if(canText){
    MFMessageComposeViewController * smsViewController = [[MFMessageComposeViewController alloc] init];
    if(smsViewController){

        smsViewController.body = @"test message";
        smsViewController.messageComposeDelegate = self;

        [self presentModalViewController:smsViewController animated:YES];
        [smsViewController release];

    }else{
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"SMS" 
                                                        message:@"Your cannot send SMS on this device." 
                                                       delegate:nil 
                                              cancelButtonTitle:@"ok" 
                                              otherButtonTitles:nil];

        [alert show];
        [alert release];

    }
}else{
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"SMS" 
                                                    message:@"Your cannot send SMS on this device." 
                                                   delegate:nil 
                                          cancelButtonTitle:@"ok" 
                                          otherButtonTitles:nil];

    [alert show];
    [alert release];

}

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:18:10+00:00Added an answer on May 31, 2026 at 4:18 pm

    I had a category for UINavigationBar to add a shadow under the bar by overriding viewWillAppear, this corrupted the view. This is what happened.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Displaying a View inside a Region is about 5-10 seconds slow for the first
Before displaying user posts I run them though Sanitize::html() to escape all html. But
When displaying all articles of a specific month (given through the urls like this
When displaying a confirm box in javascript, there seems to be a delay after
I am displaying a fixed sequence in the tree list along with some values
While displaying a popover controller for a second time (after dismissing it and then
I'm displaying a dynamic list of names in a table view, and I'm trying
Displaying a rectangle and binding Width, Height, Angle to a view model class works
Displaying content’s based on category and tags criteria works well but how should we
When displaying the body of some articles in my site in an rss reader,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.