cocoa touch - iOS 4 SMS composer not working correctly -


i displaying mfmessagecomposeviewcontroller in app, , fine, on ios 5, users testing complaining ios 4, seems view controller appears result of code below displaying empty sms compose , in addition there no top navigation items such cancel button or title "new message".

i don't have ios 4 device hand (very bad know), , cannot jump issue , debug it.

can see if i'm doing wrong ? i've attached problem screenshot sent, it's 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 device."                                                         delegate:nil                                                cancelbuttontitle:@"ok"                                                otherbuttontitles:nil];          [alert show];         [alert release];      } }else{     uialertview *alert = [[uialertview alloc] initwithtitle:@"sms"                                                      message:@"your cannot send sms on device."                                                     delegate:nil                                            cancelbuttontitle:@"ok"                                            otherbuttontitles:nil];      [alert show];     [alert release];  } 

enter image description here

i had category uinavigationbar add shadow under bar overriding viewwillappear, corrupted view. happened.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -